...in relative positionning of theme elements (still one problem with
finding an id in grand-children of [resolution] blocks); converted
most of the 1024x768 theme to use them
...for the left mouse button.
Fixed a problem where the selected terrain and brush size was not
remembered through operations that affected the whole map, such as
flip and resize.
Two terrains may now be selected in the palette, one is used for
filling when moving selections and cutting/pasting and will be used
when drawing with the right button.
The context menu is removed, instead the function of the left button
is chosen in the right panel and operations that do not need a
location to work is chosen from an additional menu.
It is now possible to change resolution and toggle fullscreen in the editor.
Refactoring:
The palettes now inherit from the widget class.
The events are handled by the palettes themselves.
The terrain palette controls the scroll buttons by itself.
There are four parts to this patch:
1) add the action to the usual places 2) add a gamemap::location to class unit,
which stores the location we were trying to move to, 3) clear this
location on end-of-turn, or if the unit moves again this turn, and 4)
if a move is interrupted, reslect the unit's hex.
The new hotkey is 't'. To use this feature, select a unit that had its
move interrupted by seeing allies/enemies, and right click >> "Continue
Move", or press the 't' key.
* Added toggleable action support to hotkey.[c|h]pp & playturn.[c|h]pp.
* Actions can now have images associated with them.
* Toggleable menu items use the checkbox graphics.
* Fixed some of the trivial warnings (newlines, double 0.0 constants where integer 0 required)
...updating the fog/shroud, so the moves can be undone. The player can
commit the moves, forcing the fog/shroud to update, but then the moves
can no longer be undone. Useful to make fog/shroud maps behave more
like normal maps, with respect to move undoing.