1
0
Fork 0

move gui styles from /sim/gui[n] to /sim/gui/style[n] to make /sim/gui

free for other gui related properties
This commit is contained in:
mfranz 2006-03-09 23:04:41 +00:00
parent e8c2b8c9f4
commit e4f08637f7

View file

@ -305,11 +305,11 @@ NewGUI::setStyle (void)
//puSetDefaultStyle(); //puSetDefaultStyle();
int which = fgGetInt("/sim/current-gui", 0); int which = fgGetInt("/sim/gui/current-style", 0);
SGPropertyNode *sim = globals->get_props()->getNode("sim"); SGPropertyNode *sim = globals->get_props()->getNode("sim/gui");
SGPropertyNode *n = sim->getChild("gui", which); SGPropertyNode *n = sim->getChild("style", which);
if (!n) if (!n)
n = sim->getChild("gui", 0, true); n = sim->getChild("style", 0, true);
setupFont(n->getNode("fonts/gui", true)); setupFont(n->getNode("fonts/gui", true));
n = n->getNode("colors", true); n = n->getNode("colors", true);