Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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());