summaryrefslogtreecommitdiff
path: root/src/gui/debugwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/debugwindow.cpp')
-rw-r--r--src/gui/debugwindow.cpp35
1 files changed, 22 insertions, 13 deletions
diff --git a/src/gui/debugwindow.cpp b/src/gui/debugwindow.cpp
index 36e4c8e1..ab09ec4e 100644
--- a/src/gui/debugwindow.cpp
+++ b/src/gui/debugwindow.cpp
@@ -42,27 +42,31 @@ DebugWindow::DebugWindow():
setWindowName("Debug");
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);
}
@@ -76,7 +80,7 @@ DebugWindow::logic()
int mouseTileX = mouseX + viewport->getCameraX();
int mouseTileY = mouseY + viewport->getCameraY();
- mFPSLabel->setCaption("[" + toString(fps) + " FPS");
+ mFPSLabel->setCaption("[" + toString(fps) + " FPS]");
mFPSLabel->adjustSize();
mTileMouseLabel->setCaption("[Mouse: " +
@@ -87,14 +91,19 @@ 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: " +