From 7859a5ffeb9e6dcc1ce7fd98a0d4932425d3d282 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Mon, 15 Oct 2012 20:50:11 +0000 Subject: Show entity ids in the devinfo widget. --- src/client/infowidget.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/client/infowidget.cc') 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() << ", " -- cgit v1.2.3