diff options
| author | SushiTee <weichel.sascha@xxx.xx> | 2011-07-12 17:54:59 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2011-07-15 01:03:22 +0200 |
| commit | f7a9e80163af47ef4ad1bc9df1cf635610ebe2eb (patch) | |
| tree | 26507ec8cb18db9c1ea39d10deab54d6e6c19053 /src/game/editor/popups.cpp | |
| parent | ef881a532147c512b08faedf34b982ce6ebc1921 (diff) | |
| download | zcatch-f7a9e80163af47ef4ad1bc9df1cf635610ebe2eb.tar.gz zcatch-f7a9e80163af47ef4ad1bc9df1cf635610ebe2eb.zip | |
added possibility to collapse groups by double clicking them
Diffstat (limited to 'src/game/editor/popups.cpp')
| -rw-r--r-- | src/game/editor/popups.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/editor/popups.cpp b/src/game/editor/popups.cpp index 00c9f043..d8b8a91e 100644 --- a/src/game/editor/popups.cpp +++ b/src/game/editor/popups.cpp @@ -151,6 +151,7 @@ int CEditor::PopupGroup(CEditor *pEditor, CUIRect View) l->m_pEditor = pEditor; pEditor->m_Map.m_lGroups[pEditor->m_SelectedGroup]->AddLayer(l); pEditor->m_SelectedLayer = pEditor->m_Map.m_lGroups[pEditor->m_SelectedGroup]->m_lLayers.size()-1; + pEditor->m_Map.m_lGroups[pEditor->m_SelectedGroup]->m_Collapse = false; return 1; } @@ -164,6 +165,7 @@ int CEditor::PopupGroup(CEditor *pEditor, CUIRect View) l->m_pEditor = pEditor; pEditor->m_Map.m_lGroups[pEditor->m_SelectedGroup]->AddLayer(l); pEditor->m_SelectedLayer = pEditor->m_Map.m_lGroups[pEditor->m_SelectedGroup]->m_lLayers.size()-1; + pEditor->m_Map.m_lGroups[pEditor->m_SelectedGroup]->m_Collapse = false; return 1; } |