From: mfranz Date: Thu, 9 Mar 2006 23:04:41 +0000 (+0000) Subject: move gui styles from /sim/gui[n] to /sim/gui/style[n] to make /sim/gui X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e4f08637f7fc4f745f7865daef41da761c62ea3c;p=flightgear.git move gui styles from /sim/gui[n] to /sim/gui/style[n] to make /sim/gui free for other gui related properties --- diff --git a/src/GUI/new_gui.cxx b/src/GUI/new_gui.cxx index f8528dfbf..49fc3fbc5 100644 --- a/src/GUI/new_gui.cxx +++ b/src/GUI/new_gui.cxx @@ -305,11 +305,11 @@ NewGUI::setStyle (void) //puSetDefaultStyle(); - int which = fgGetInt("/sim/current-gui", 0); - SGPropertyNode *sim = globals->get_props()->getNode("sim"); - SGPropertyNode *n = sim->getChild("gui", which); + int which = fgGetInt("/sim/gui/current-style", 0); + SGPropertyNode *sim = globals->get_props()->getNode("sim/gui"); + SGPropertyNode *n = sim->getChild("style", which); if (!n) - n = sim->getChild("gui", 0, true); + n = sim->getChild("style", 0, true); setupFont(n->getNode("fonts/gui", true)); n = n->getNode("colors", true);