]> git.mxchange.org Git - flightgear.git/commitdiff
move gui styles from /sim/gui[n] to /sim/gui/style[n] to make /sim/gui
authormfranz <mfranz>
Thu, 9 Mar 2006 23:04:41 +0000 (23:04 +0000)
committermfranz <mfranz>
Thu, 9 Mar 2006 23:04:41 +0000 (23:04 +0000)
free for other gui related properties

src/GUI/new_gui.cxx

index f8528dfbf610c200f3003cfa7b0247cb9fa1ff9a..49fc3fbc501a37cdd0c84643614b528910b4cb6b 100644 (file)
@@ -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);