diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2009-03-29 16:20:08 -0400 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2009-03-29 16:20:08 -0400 |
commit | 3ce66c611c72184c01181f493d161c6118e7204a (patch) | |
tree | d38812ab5af22b45a698be30b642e6a0d3fd229b | |
parent | d9bcc05854ee15898b557d65c6868a0a13946423 (diff) | |
download | sigen-3ce66c611c72184c01181f493d161c6118e7204a.tar.gz sigen-3ce66c611c72184c01181f493d161c6118e7204a.tar.xz sigen-3ce66c611c72184c01181f493d161c6118e7204a.zip |
Enable the effect and warp items
-rw-r--r-- | sigmodr/widgets/mapeditor/MapScene.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/sigmodr/widgets/mapeditor/MapScene.cpp b/sigmodr/widgets/mapeditor/MapScene.cpp index 5b6e7aa7..5b2898c5 100644 --- a/sigmodr/widgets/mapeditor/MapScene.cpp +++ b/sigmodr/widgets/mapeditor/MapScene.cpp @@ -53,13 +53,13 @@ MapScene::MapScene(Map* map, QObject* parent) : m_map(map), m_tileBox(new KComboBox) { -// for (int i = 0; i < m_map->effectCount(); ++i) -// { -// MapEffect* effect = m_map->effect(i); -// EffectItem* item = new EffectItem(m_map, effect, this); -// m_effects[effect] = item; -// addItem(item); -// } + for (int i = 0; i < m_map->effectCount(); ++i) + { + MapEffect* effect = m_map->effect(i); + EffectItem* item = new EffectItem(m_map, effect, this); + m_effects[effect] = item; + addItem(item); + } for (int i = 0; i < m_map->tileCount(); ++i) { MapTile* tile = m_map->tile(i); @@ -74,13 +74,13 @@ MapScene::MapScene(Map* map, QObject* parent) : m_trainers[trainer] = item; addItem(item); } -// for (int i = 0; i < m_map->warpCount(); ++i) -// { -// MapWarp* warp = m_map->warp(i); -// WarpItem* item = new WarpItem(m_map, warp, this); -// m_warps[warp] = item; -// addItem(item); -// } + for (int i = 0; i < m_map->warpCount(); ++i) + { + MapWarp* warp = m_map->warp(i); + WarpItem* item = new WarpItem(m_map, warp, this); + m_warps[warp] = item; + addItem(item); + } int maxWidth = 0; int maxHeight = 0; for (int i = 0; i < m_map->game()->tileCount(); ++i) |