Display invisible overlays on main map in map editor

This commit is contained in:
Simon Forsyth 2012-02-23 00:31:17 +00:00
parent 7a12f685cc
commit 057a2e65a0
4 changed files with 24 additions and 0 deletions

View file

@ -54,6 +54,7 @@ Version 1.11.0-svn:
* Added a Reset All button to Hotkey Settings dialog in preferences
(feature/bug #3797)
* Fixed excessive idle CPU usage in story screens without story text
* Map editor now displays invisible overlay terrains on main map
* Whiteboard
* Fixed bug #19369: Using planning mode can cause losing ability to move my units
* Fixed bug #19408: Crash shortly after executing invalid multi-turn move

View file

@ -45,6 +45,11 @@
[/terrain_graphics]
{TRANSITION_COMPLETE_L (!,*^_fme) (*^_fme) 1000 off-map/border}
# Editor overlays - for overlays that should only be visible in the editor
{EDITOR_OVERLAY *^Xo impassable-editor}
{EDITOR_OVERLAY *^Vov village/village-overlay-editor}
{EDITOR_OVERLAY *^Cov castle/castle-overlay-editor}
{EDITOR_OVERLAY *^Kov castle/keep-overlay-editor}
# TRACK LAYOUT MUST STAY ON TOP
# they set flags that will be used by other macros later.

View file

@ -0,0 +1,17 @@
# Macros for terrains that appear differently (or only) in the editor
#define EDITOR_OVERLAY TYPE IMAGE
#ifdef EDITOR
[terrain_graphics]
[tile]
x,y=0,0
type={TYPE}
[image]
name={IMAGE}.png~O(0.5)
layer=1000
[/image]
[/tile]
[/terrain_graphics]
#endif
#enddef

View file

@ -41,6 +41,7 @@ Version 1.11.0-svn:
* Added tooltips to Load Game dialog (feature/bug #18249).
* Added a Reset All button to Hotkey Settings dialog in preferences
(feature/bug #3797)
* Map editor now displays invisible overlay terrains on main map.
* Whiteboard
* Fixed bug #19369 : Using planning mode can cause losing ability to move my units