diff options
author | Philipp Sehmisch <crush@themanaworld.org> | 2009-01-18 14:34:53 +0100 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-01-18 23:58:34 -0700 |
commit | ed3a7626a24750803ebe16f528b292ff1b24affa (patch) | |
tree | 51bc8deb9419ccfcf8a435b7585deaab7dc4af3f /src/gui/debugwindow.cpp | |
parent | adfa6fa21b1ef5c8169538ca5c4896bf86e59d6a (diff) | |
download | mana-ed3a7626a24750803ebe16f528b292ff1b24affa.tar.gz mana-ed3a7626a24750803ebe16f528b292ff1b24affa.tar.bz2 mana-ed3a7626a24750803ebe16f528b292ff1b24affa.tar.xz mana-ed3a7626a24750803ebe16f528b292ff1b24affa.zip |
Added current map filename to debug window.
Diffstat (limited to 'src/gui/debugwindow.cpp')
-rw-r--r-- | src/gui/debugwindow.cpp | 35 |
1 files changed, 22 insertions, 13 deletions
diff --git a/src/gui/debugwindow.cpp b/src/gui/debugwindow.cpp index 63f4762a..b97474af 100644 --- a/src/gui/debugwindow.cpp +++ b/src/gui/debugwindow.cpp @@ -42,27 +42,31 @@ DebugWindow::DebugWindow(): setResizable(true); setCloseButton(true); - setDefaultSize(0, 0, 400, 100); + setDefaultSize(0, 0, 400, 60); loadWindowState(); mFPSLabel = new gcn::Label("[0 FPS]"); mFPSLabel->setPosition(0,0); - mMusicFileLabel = new gcn::Label("Music File: "); - mMusicFileLabel->setPosition(0, 20); + mMusicFileLabel = new gcn::Label("Music: "); + mMusicFileLabel->setPosition(0, 15); - mMapFileLabel = new gcn::Label("Mini-Map File: "); - mMapFileLabel->setPosition(0, 40); + mMapLabel = new gcn::Label("Map: "); + mMapLabel->setPosition(0, 30); + + mMiniMapLabel = new gcn::Label("Mini-Map: "); + mMiniMapLabel->setPosition(0, 45); mTileMouseLabel = new gcn::Label("[Mouse: 0, 0]"); - mTileMouseLabel->setPosition(100, 0); + mTileMouseLabel->setPosition(200, 0); mParticleCountLabel = new gcn::Label("[Particle count: 0]"); - mParticleCountLabel->setPosition(100, 60); + mParticleCountLabel->setPosition(200, 15); add(mFPSLabel); add(mMusicFileLabel); - add(mMapFileLabel); + add(mMiniMapLabel); + add(mMapLabel); add(mTileMouseLabel); add(mParticleCountLabel); } @@ -75,7 +79,7 @@ void DebugWindow::logic() int mouseTileX = mouseX / 32 + viewport->getCameraX(); int mouseTileY = mouseY / 32 + viewport->getCameraY(); - mFPSLabel->setCaption("[" + toString(fps) + " FPS"); + mFPSLabel->setCaption("[" + toString(fps) + " FPS]"); mFPSLabel->adjustSize(); mTileMouseLabel->setCaption("[Mouse: " + @@ -86,14 +90,19 @@ void DebugWindow::logic() if (currentMap != NULL) { const std::string music = - " [Music File: " + currentMap->getProperty("music") + "]"; + " [Music: " + currentMap->getProperty("music") + "]"; mMusicFileLabel->setCaption(music); mMusicFileLabel->adjustSize(); const std::string minimap = - " [MiniMap File: " + currentMap->getProperty("minimap") + "]"; - mMapFileLabel->setCaption(minimap); - mMapFileLabel->adjustSize(); + " [MiniMap: " + currentMap->getProperty("minimap") + "]"; + mMiniMapLabel->setCaption(minimap); + mMiniMapLabel->adjustSize(); + + const std::string map = + " [Map: " + currentMap->getProperty("_filename") + "]"; + mMapLabel->setCaption(map); + mMapLabel->adjustSize(); } mParticleCountLabel->setCaption("[Particle count: " + |