Brief: //dnl ch78

- Some mapeditor cosmetic and CTD fixes.
Details:
- Fix sticky tooltip if perform scroll or go to 'Sector Summary' window.
- Fix accidental mercid delete from textbox if press any key while in 'Profile ID mode'.
- Fix CTD from release if several time swap from RND to any other item button.
- Disable some enabled buttons and mouse area from taskbar when 'Sector Summary' windows is active.
- Checkbox toggles from Mercs bar now remember their state after switching to another taskbar option.


git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6657 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Kriplo
2013-11-27 21:05:12 +00:00
parent 8e2d59efca
commit f0c6b73e24
6 changed files with 37 additions and 12 deletions
+11
View File
@@ -40,6 +40,8 @@
#include "GameVersion.h"
#include "Campaign Types.h"
#include "GameSettings.h"
#include "EditorTerrain.h"//dnl ch78 261113
#include "Render Dirty.h"//dnl ch78 271113
#endif
#include <vfs/Core/vfs.h>
@@ -271,6 +273,10 @@ void CreateSummaryWindow()
DisableEditorTaskbar();
DisableAllTextFields();
//dnl ch78 261113
HideTerrainTileButtons();
DisableEditorRegion(ITEM_REGION_ID);
RestoreBackgroundRects();
GetCurrentWorldSector( &gsSectorX, &gsSectorY );
gsSelSectorX = gsSectorX;
@@ -480,6 +486,11 @@ void DestroySummaryWindow()
KillTextInputMode();
EnableEditorTaskbar();
EnableAllTextFields();
//dnl ch78 261113
if(iCurrentTaskbar == TASK_TERRAIN)
ShowTerrainTileButtons();
else if(iCurrentTaskbar == TASK_ITEMS)
EnableEditorRegion(ITEM_REGION_ID);
if( gpWorldItemsSummaryArray )
{