From 912ebb62d5e8602a196a59887ef4d41cf0d6edbf Mon Sep 17 00:00:00 2001
From: Stijn Buys <ingar@osirion.org>
Date: Sun, 9 Mar 2008 11:04:35 +0000
Subject: fixed sphere black hole, added basic HUD with speed and direction
 indicator, basic shaped entities readable from world.ini

---
 src/client/view.cc | 8 ++++++++
 1 file changed, 8 insertions(+)

(limited to 'src/client')

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);
 }
 
-- 
cgit v1.2.3