Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2012-10-15 20:50:11 +0000
committerStijn Buys <ingar@osirion.org>2012-10-15 20:50:11 +0000
commit7859a5ffeb9e6dcc1ce7fd98a0d4932425d3d282 (patch)
tree2e4eca2ff8026c5dc843bdb0bc79356136052c57 /src/client
parentc5d365dbfb38110edf11d70247e4aa61c7334f25 (diff)
Show entity ids in the devinfo widget.
Diffstat (limited to 'src/client')
-rw-r--r--src/client/infowidget.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/infowidget.cc b/src/client/infowidget.cc
index c99a3f2..912628f 100644
--- a/src/client/infowidget.cc
+++ b/src/client/infowidget.cc
@@ -57,7 +57,9 @@ void DevInfoWidget::draw()
textstream << '\n';
if (core::localcontrol()) {
+ textstream << '\n';
textstream << "^B" << core::localcontrol()->name() << '\n';
+ textstream << "^Bentity id ^N" << core::localcontrol()->id() << '\n';
textstream << "^Nthrust ^B" << std::fixed << std::setprecision(2)
<< core::localcontrol()->thrust() << '\n';
textstream << "^Nspeed ^B" << std::fixed << std::setprecision(2)
@@ -69,7 +71,9 @@ void DevInfoWidget::draw()
textstream << "^Nradius ^B" << core::localcontrol()->radius() << '\n';
if (target) {
+ textstream << '\n';
textstream << "^B" << target->name() << '\n';
+ textstream << "^Bentity id ^N" << target->id() << '\n';
textstream << "^Nx,y,z ^B" << std::fixed << std::setprecision(2)
<< target->location().x() << ", "
<< target->location().y() << ", "