From d79c0223315beaf55fcd10d6891675c4d57b5e2b Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Tue, 21 Oct 2008 19:00:39 +0000 Subject: moved client console into libui --- src/ui/ui.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/ui/ui.h') diff --git a/src/ui/ui.h b/src/ui/ui.h index 97577c6..f41df24 100644 --- a/src/ui/ui.h +++ b/src/ui/ui.h @@ -7,6 +7,7 @@ #ifndef __INCLUDED_UI_H__ #define __INCLUDED_UI_H__ +#include "ui/console.h" #include "ui/font.h" #include "ui/palette.h" #include "ui/widget.h" @@ -41,6 +42,9 @@ public: /// show previous window void previous_menu(); + + /// the console + inline Console *console() { return ui_console; } /// return the active menu Window *active() { @@ -111,6 +115,8 @@ private: Window *ui_active_menu; Widget *ui_mouse_focus; Widget *ui_input_focus; + + Console *ui_console; Menus ui_menus; @@ -130,6 +136,9 @@ void shutdown(); /// the global root window UI *root(); +/// the console +inline Console *console() { return root()->console(); } + /// debug mode inline bool debug() { return UI::ui_debug; } -- cgit v1.2.3