From 56cdfd3822d2800abdd2f912ab7f76a5764793a7 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 19 Oct 2008 13:45:07 +0000 Subject: scrollpane widget, updated chatbox --- src/ui/ui.cc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/ui/ui.cc') 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(); } -- cgit v1.2.3