summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-01-20 20:41:52 +0100
committerIra Rice <irarice@gmail.com>2009-01-20 13:35:15 -0700
commit30ff433fe1546a61a2ccff2fd53cadc843a75476 (patch)
tree089c2c99d37882ef811a94cd552f92334996fd24 /src/gui
parent81307dac7d573af4c50eca983843a9575e1b3f03 (diff)
downloadmana-30ff433fe1546a61a2ccff2fd53cadc843a75476.tar.gz
mana-30ff433fe1546a61a2ccff2fd53cadc843a75476.tar.bz2
mana-30ff433fe1546a61a2ccff2fd53cadc843a75476.tar.xz
mana-30ff433fe1546a61a2ccff2fd53cadc843a75476.zip
Got rid of the useless [ and ] in debug window
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/debugwindow.cpp30
1 files changed, 12 insertions, 18 deletions
diff --git a/src/gui/debugwindow.cpp b/src/gui/debugwindow.cpp
index 557c0f5f..3d729fe4 100644
--- a/src/gui/debugwindow.cpp
+++ b/src/gui/debugwindow.cpp
@@ -47,17 +47,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);
@@ -77,34 +72,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();
}