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-10-19 13:45:07 +0000
committerStijn Buys <ingar@osirion.org>2008-10-19 13:45:07 +0000
commit56cdfd3822d2800abdd2f912ab7f76a5764793a7 (patch)
tree2656c7ef694117e0554ae4a47bb09629c78ed8af /src/ui/ui.cc
parente6f1fad441a7737549f463ebac1c9de062b5173d (diff)
scrollpane widget, updated chatbox
Diffstat (limited to 'src/ui/ui.cc')
-rw-r--r--src/ui/ui.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ui/ui.cc b/src/ui/ui.cc
index 1ecfbb1..bacc753 100644
--- a/src/ui/ui.cc
+++ b/src/ui/ui.cc
@@ -25,6 +25,8 @@ namespace ui
/* -- static functions --------------------------------------------- */
+bool UI::ui_debug = false;
+
UI *global_ui = 0;
void func_list_ui(std::string const &args)
@@ -52,6 +54,7 @@ void help()
{
con_print << "^BUser interface functions" << std::endl;
con_print << " ui help show this help" << std::endl;
+ con_print << " ui debug toggle debug mode" << std::endl;
con_print << " ui list list widgets" << std::endl;
con_print << " ui show show user interface" << std::endl;
con_print << " ui hide hide user interface" << std::endl;
@@ -76,6 +79,8 @@ void func_ui(std::string const &args)
if (command.compare("help") == 0) {
help();
+ } else if (command.compare("debug") == 0) {
+ UI::ui_debug = !UI::ui_debug;
} else if (command.compare("list") == 0) {
global_ui->list();
} else if (command.compare("show") == 0) {
@@ -291,6 +296,8 @@ void UI::load()
} else if (ini.got_key_color("highlight", color)) {
ui_palette->set_highlight(color);
continue;
+ } else if (ini.got_key_color("text", color)) {
+ ui_palette->set_text(color);
} else if (ini.got_key_color("background", color)) {
ui_palette->set_background(color);
continue;
@@ -301,6 +308,8 @@ void UI::load()
ui_palette->set_pointer(color);
} else if (ini.got_key_color("active", color)) {
ui_palette->set_active(color);
+ } else if (ini.got_key_color("debug", color)) {
+ ui_palette->set_debug(color);
} else {
ini.unkown_key();
}