From 21ff02a69331fbcd53dc93a1af9a93618225b4bf Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Wed, 18 Feb 2015 14:35:00 -0600 Subject: GUI: Support styles in xml to reduce xml file size Also allow sliders to have their own text label instead of requiring a whole separate text object for the label in the xml. Change-Id: I6e314efb4bb454d496555ff7e003d743063a1308 --- gui/checkbox.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gui/checkbox.cpp') diff --git a/gui/checkbox.cpp b/gui/checkbox.cpp index f4900ba2c..46a770861 100644 --- a/gui/checkbox.cpp +++ b/gui/checkbox.cpp @@ -45,7 +45,7 @@ GUICheckbox::GUICheckbox(xml_node<>* node) mLabel = new GUIText(node); // Read the check states - child = node->first_node("image"); + child = FindNode(node, "image"); if (child) { mChecked = LoadAttrImage(child, "checked"); @@ -53,7 +53,7 @@ GUICheckbox::GUICheckbox(xml_node<>* node) } // Get the variable data - child = node->first_node("data"); + child = FindNode(node, "data"); if (child) { attr = child->first_attribute("variable"); -- cgit v1.2.3