From 02fcd22d8cde355aa898a8c6bb4773d9434b8e9a Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Fri, 10 Oct 2008 16:41:38 +0000 Subject: adds KeyPress, DevInfo and Stats widgets --- src/client/client.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/client/client.cc') diff --git a/src/client/client.cc b/src/client/client.cc index e9bfba8..81aba9d 100644 --- a/src/client/client.cc +++ b/src/client/client.cc @@ -108,6 +108,7 @@ void Client::init(int count, char **arguments) // initialize user interface ui::init(); + new View(ui::root()); // Initialize the video subsystem if (!video::init()) { @@ -191,14 +192,14 @@ void Client::frame(float seconds) if (core::application()->load("intro")) { core::application()->connect(""); } - // if all fails, show the console + // show the console if everything fails if (!core::application()->connected() && !console()->visible()) { console()->toggle(); } } else { // show the main menu on non-interactive modules if (!core::game()->interactive() && !ui::root()->active()) { - ui::root()->show_window("main"); + ui::root()->show_window("main"); } } -- cgit v1.2.3