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>2008-03-09 11:04:35 +0000
committerStijn Buys <ingar@osirion.org>2008-03-09 11:04:35 +0000
commit912ebb62d5e8602a196a59887ef4d41cf0d6edbf (patch)
tree248fa306aa28762108e900de8d7c8b655a603fef /src/client
parent07c0040f3433cc637fecbb712fb3b6f5ad1ab5de (diff)
fixed sphere black hole, added basic HUD with speed and direction indicator, basic shaped entities readable from world.ini
Diffstat (limited to 'src/client')
-rw-r--r--src/client/view.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/client/view.cc b/src/client/view.cc
index 0a5c44e..8da7892 100644
--- a/src/client/view.cc
+++ b/src/client/view.cc
@@ -168,6 +168,14 @@ void draw_status()
n = (n+1) % MAXNOTIFYLINES;
}
+ // draw a basic HUD
+ if (core::localcontrol()) {
+ status.str("");
+ status << " dir " << std::setfill('0') << std::setw(3) << roundf(core::localcontrol()->direction()) <<
+ " speed " << std::setfill(' ') << std::setw(5) << std::fixed << std::setprecision(2) << core::localcontrol()->speed();
+ draw_text(CHARWIDTH, video::height - CHARHEIGHT -4, status);
+ }
+
gl::disable(GL_TEXTURE_2D);
}