diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-01-20 20:41:52 +0100 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-01-20 20:48:19 +0100 |
commit | f9a6c6912b1f1ceeb394362d5eb785f561a70291 (patch) | |
tree | 927e81bb46c2580d66df4f3b55df72d684c21718 /src | |
parent | 00cae99069c186ec4688e667a255a215235640a3 (diff) | |
download | mana-client-f9a6c6912b1f1ceeb394362d5eb785f561a70291.tar.gz mana-client-f9a6c6912b1f1ceeb394362d5eb785f561a70291.tar.bz2 mana-client-f9a6c6912b1f1ceeb394362d5eb785f561a70291.tar.xz mana-client-f9a6c6912b1f1ceeb394362d5eb785f561a70291.zip |
Got rid of the useless [ and ] in debug window
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/debugwindow.cpp | 30 |
1 files changed, 12 insertions, 18 deletions
diff --git a/src/gui/debugwindow.cpp b/src/gui/debugwindow.cpp index e0b25f75..a8b4519d 100644 --- a/src/gui/debugwindow.cpp +++ b/src/gui/debugwindow.cpp @@ -48,17 +48,12 @@ DebugWindow::DebugWindow(): setDefaultSize(0, 0, 400, 60); loadWindowState(); - mFPSLabel = new gcn::Label("[0 FPS]"); - + mFPSLabel = new gcn::Label("0 FPS"); mMusicFileLabel = new gcn::Label("Music: "); - mMapLabel = new gcn::Label("Map: "); - mMiniMapLabel = new gcn::Label("Mini-Map: "); - - mTileMouseLabel = new gcn::Label("[Mouse: 0, 0]"); - - mParticleCountLabel = new gcn::Label("[Particle count: 0]"); + mTileMouseLabel = new gcn::Label("Mouse: 0, 0"); + mParticleCountLabel = new gcn::Label("Particle count: 0"); place(0, 0, mFPSLabel); place(3, 0, mTileMouseLabel); @@ -78,34 +73,33 @@ 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: " + - toString(mouseTileX) + ", " + toString(mouseTileY) + "]"); + mTileMouseLabel->setCaption("Mouse: " + + toString(mouseTileX) + ", " + toString(mouseTileY)); mTileMouseLabel->adjustSize(); Map *currentMap = engine->getCurrentMap(); - if (currentMap != NULL) + if (currentMap) { const std::string music = - " [Music: " + currentMap->getProperty("music") + "]"; + "Music: " + currentMap->getProperty("music"); mMusicFileLabel->setCaption(music); mMusicFileLabel->adjustSize(); const std::string minimap = - " [MiniMap: " + currentMap->getProperty("minimap") + "]"; + "MiniMap: " + currentMap->getProperty("minimap"); mMiniMapLabel->setCaption(minimap); mMiniMapLabel->adjustSize(); const std::string map = - " [Map: " + currentMap->getProperty("_filename") + "]"; + "Map: " + currentMap->getProperty("_filename"); mMapLabel->setCaption(map); mMapLabel->adjustSize(); } - mParticleCountLabel->setCaption("[Particle count: " + - toString(Particle::particleCount) - +"]"); + mParticleCountLabel->setCaption("Particle count: " + + toString(Particle::particleCount)); mParticleCountLabel->adjustSize(); } |