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/progressbar.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gui/progressbar.cpp') diff --git a/gui/progressbar.cpp b/gui/progressbar.cpp index a49e0abb2..a478a40d0 100644 --- a/gui/progressbar.cpp +++ b/gui/progressbar.cpp @@ -42,7 +42,7 @@ GUIProgressBar::GUIProgressBar(xml_node<>* node) : GUIObject(node) return; } - child = node->first_node("resource"); + child = FindNode(node, "resource"); if (child) { mEmptyBar = LoadAttrImage(child, "empty"); @@ -50,10 +50,10 @@ GUIProgressBar::GUIProgressBar(xml_node<>* node) : GUIObject(node) } // Load the placement - LoadPlacement(node->first_node("placement"), &mRenderX, &mRenderY); + LoadPlacement(FindNode(node, "placement"), &mRenderX, &mRenderY); // Load the data - child = node->first_node("data"); + child = FindNode(node, "data"); if (child) { mMinValVar = LoadAttrString(child, "min"); -- cgit v1.2.3