about summary refs log tree commit diff
path: root/src/game/editor/popups.cpp
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2011-07-20 22:18:31 +0200
committeroy <Tom_Adams@web.de>2011-07-20 22:18:31 +0200
commit6312a2d71ca35cd925602bf978ef7c9483d6f78f (patch)
treeec23d05f5c3c84be5ce53b7aa1789d1def3a131c /src/game/editor/popups.cpp
parent84e5c534322940a696d9a915829a5e69e5679a28 (diff)
downloadzcatch-6312a2d71ca35cd925602bf978ef7c9483d6f78f.tar.gz
zcatch-6312a2d71ca35cd925602bf978ef7c9483d6f78f.zip
fixed few things in th editor
Diffstat (limited to 'src/game/editor/popups.cpp')
-rw-r--r--src/game/editor/popups.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/game/editor/popups.cpp b/src/game/editor/popups.cpp
index d8b8a91e..f29ae7e2 100644
--- a/src/game/editor/popups.cpp
+++ b/src/game/editor/popups.cpp
@@ -177,7 +177,8 @@ int CEditor::PopupGroup(CEditor *pEditor, CUIRect View)
 		static float s_Name = 0;
 		pEditor->UI()->DoLabel(&Button, "Name:", 10.0f, -1, -1);
 		Button.VSplitLeft(40.0f, 0, &Button);
-		pEditor->DoEditBox(&s_Name, &Button, pEditor->m_Map.m_lGroups[pEditor->m_SelectedGroup]->m_aName, sizeof(pEditor->m_Map.m_lGroups[pEditor->m_SelectedGroup]->m_aName), 10.0f, &s_Name);
+		if(pEditor->DoEditBox(&s_Name, &Button, pEditor->m_Map.m_lGroups[pEditor->m_SelectedGroup]->m_aName, sizeof(pEditor->m_Map.m_lGroups[pEditor->m_SelectedGroup]->m_aName), 10.0f, &s_Name))
+			pEditor->m_Map.m_Modified = true;
 	}
 
 	enum
@@ -264,7 +265,8 @@ int CEditor::PopupLayer(CEditor *pEditor, CUIRect View)
 		static float s_Name = 0;
 		pEditor->UI()->DoLabel(&Button, "Name:", 10.0f, -1, -1);
 		Button.VSplitLeft(40.0f, 0, &Button);
-		pEditor->DoEditBox(&s_Name, &Button, pEditor->GetSelectedLayer(0)->m_aName, sizeof(pEditor->GetSelectedLayer(0)->m_aName), 10.0f, &s_Name);
+		if(pEditor->DoEditBox(&s_Name, &Button, pEditor->GetSelectedLayer(0)->m_aName, sizeof(pEditor->GetSelectedLayer(0)->m_aName), 10.0f, &s_Name))
+			pEditor->m_Map.m_Modified = true;
 	}
 
 	View.HSplitBottom(10.0f, &View, 0);