diff options
author | Stefan Beller <stefanbeller@googlemail.com> | 2012-08-01 23:25:41 +0200 |
---|---|---|
committer | Stefan Beller <stefanbeller@googlemail.com> | 2012-08-05 13:44:04 +0200 |
commit | 46a6cee5e42c2be0d47e9048111eacd7ef929768 (patch) | |
tree | 919bfd25b39a3e9f6b8b185ba482fa8977278e3e /src/gui/debugwindow.cpp | |
parent | 11a46f3cfd3499bdfcec11f961ba917de32b5ba2 (diff) | |
download | mana-client-46a6cee5e42c2be0d47e9048111eacd7ef929768.tar.gz mana-client-46a6cee5e42c2be0d47e9048111eacd7ef929768.tar.bz2 mana-client-46a6cee5e42c2be0d47e9048111eacd7ef929768.tar.xz mana-client-46a6cee5e42c2be0d47e9048111eacd7ef929768.zip |
Add a checkbox to the debugging window to show being ids.
Reviewed-by: Ablu
Conflicts:
src/gui/viewport.cpp
Diffstat (limited to 'src/gui/debugwindow.cpp')
-rw-r--r-- | src/gui/debugwindow.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/gui/debugwindow.cpp b/src/gui/debugwindow.cpp index 1eedd638..f3557a09 100644 --- a/src/gui/debugwindow.cpp +++ b/src/gui/debugwindow.cpp @@ -137,6 +137,7 @@ public: mBeingPosition = new CheckBox(_("Being positions")); mBeingPath = new CheckBox(_("Being path")); mMousePath = new CheckBox(_("Mouse path")); + mBeingIds = new CheckBox(_("Being Ids")); Label *specialsLabel = new Label(_("Specials:")); mSpecialNormal = new RadioButton(_("Normal"), "mapdebug"); @@ -154,6 +155,7 @@ public: place(0, 4, mBeingPosition, 1); place(0, 5, mBeingPath, 1); place(0, 6, mMousePath, 1); + place(0, 7, mBeingIds, 1); place(1, 0, specialsLabel, 1); place(1, 1, mSpecialNormal, 1); place(1, 2, mSpecial1, 1); @@ -170,12 +172,28 @@ public: mBeingPosition->addActionListener(this); mBeingPath->addActionListener(this); mMousePath->addActionListener(this); + mBeingIds->addActionListener(this); mSpecialNormal->addActionListener(this); mSpecial1->addActionListener(this); mSpecial2->addActionListener(this); mSpecial3->addActionListener(this); } + ~DebugSwitches() + { + delete mGrid; + delete mCollisionTiles; + delete mBeingCollisionRadius; + delete mBeingPosition; + delete mBeingPath; + delete mMousePath; + delete mBeingIds; + delete mSpecialNormal; + delete mSpecial1; + delete mSpecial2; + delete mSpecial3; + } + void action(const gcn::ActionEvent &event) { int flags = 0; @@ -192,6 +210,8 @@ public: flags |= Map::DEBUG_BEING_PATH; if (mMousePath->isSelected()) flags |= Map::DEBUG_MOUSE_PATH; + if (mBeingIds->isSelected()) + flags |= Map::DEBUG_BEING_IDS; if (mSpecial1->isSelected()) flags |= Map::DEBUG_SPECIAL1; if (mSpecial2->isSelected()) @@ -209,6 +229,7 @@ private: CheckBox *mBeingPosition; CheckBox *mBeingPath; CheckBox *mMousePath; + CheckBox *mBeingIds; RadioButton *mSpecialNormal; RadioButton *mSpecial1; RadioButton *mSpecial2; |