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:
parent
e8c2b8c9f4
commit
e4f08637f7
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue