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-12-27 13:06:26 +0000
committerStijn Buys <ingar@osirion.org>2008-12-27 13:06:26 +0000
commit82c63c49134a6fca91d908792438e6284dc4cebf (patch)
tree517f42e0a6260f205162319715ca988dc1bb07f0 /src/ui/ui.cc
parentaf5c44f97acf333a3c24467f6ccc7a83aea4a2fb (diff)
Fix text color configuration
Diffstat (limited to 'src/ui/ui.cc')
-rw-r--r--src/ui/ui.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/ui/ui.cc b/src/ui/ui.cc
index b06e29b..de32db4 100644
--- a/src/ui/ui.cc
+++ b/src/ui/ui.cc
@@ -94,6 +94,7 @@ void func_ui(std::string const &args)
global_ui->list();
} else if (command.compare("restart") == 0) {
global_ui->load();
+ global_ui->apply_render_options();
} else {
help();
}
@@ -370,15 +371,19 @@ void UI::load()
}
} else if (ini.in_section("text")) {
- } else if (ini.got_key_color("bold", color)) {
+
+ if (ini.got_key_color("bold", color)) {
ui_palette->set_bold(color);
+
} else if (ini.got_key_color("fancy", color)) {
ui_palette->set_fancy(color);
+
} else if (ini.got_key_color("warning", color)) {
ui_palette->set_warning(color);
+
} else if (ini.got_key_color("error", color)) {
ui_palette->set_error(color);
- continue;
+ }
}
}
}
@@ -416,6 +421,7 @@ void UI::load()
void UI::apply_render_options()
{
+ con_debug << " initializing text colors" << std::endl;
// apply palette colors
paint::assign_color('N', palette()->text());
paint::assign_color('D', palette()->debug());