Menu

#605 map rotation

open
nobody
None
5
2011-07-20
2011-07-20
No

This patch provides the interface to rotate the map, but does not implement it. The controls allows for cc/cw 30/90 rotation, and also provides setting the rotation directly to any multiple of 30. Instead of rotating the map, a g_warning is thrown stating the current direction, which will be changed when the implementation is written.

There are two ways I can see this implemented.
First: Rotate the hexes from the .png files.
Second: Make additional .png files that is rotated 30 degrees. and use the different .png file for the different hex orientation.

Discussion

  • Micah Bunting

    Micah Bunting - 2011-07-20

    Provides the interface to rotate the map.

     
  • Roland Clobus

    Roland Clobus - 2011-07-28

    In the theme definition file, each theme could be marked:
    - Tile: the provided image can be tiled to fit in the hex shape, the pattern does not need to be rotated
    - Scale: the provided image must be scaled and rotated to fix (because it has a hex shape)
    - NEW: Rotate: the provided image is a square (at least a circle), and can be scaled to fix the hex shape. When a rotation is needed, the hex shape can applied without rotating the image.

    I would prefer to have a simple UI: 0 and 90 degrees will be the most common choice.

     

Log in to post a comment.