49
edits
No edit summary |
No edit summary |
||
| Line 6: | Line 6: | ||
Supposed to fire whenever the world map is closed/hidden, though it doesn't. A workaround for this is to use "WORLD_MAP_UPDATE" to set a global variable to use elsewhere with an OnUpdate function; e.g. | Supposed to fire whenever the world map is closed/hidden, though it doesn't. A workaround for this is to use "WORLD_MAP_UPDATE" to set a global variable to use elsewhere with an OnUpdate function; e.g. | ||
<pre> | |||
local Map_Changed = false; | local Map_Changed = false; | ||
| Line 21: | Line 21: | ||
end | end | ||
end | end | ||
</pre> | |||
When the second function is called, it checks to see if the map has been opened/closed (Map_Changed), then checks to see if the map is currently open (WorldMapFrame). | When the second function is called, it checks to see if the map has been opened/closed (Map_Changed), then checks to see if the map is currently open (WorldMapFrame). | ||
<br>The effect is a code that executes only when the map closes. | <br>The effect is a code that executes only when the map closes. | ||