diff options
Diffstat (limited to 'linden/indra/newview/lljoystickbutton.cpp')
-rw-r--r-- | linden/indra/newview/lljoystickbutton.cpp | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/linden/indra/newview/lljoystickbutton.cpp b/linden/indra/newview/lljoystickbutton.cpp index 326c511..05c5e41 100644 --- a/linden/indra/newview/lljoystickbutton.cpp +++ b/linden/indra/newview/lljoystickbutton.cpp | |||
@@ -248,16 +248,10 @@ EJoystickQuadrant LLJoystick::quadrantFromName(const std::string& sQuadrant) | |||
248 | 248 | ||
249 | LLXMLNodePtr LLJoystick::getXML(bool save_children) const | 249 | LLXMLNodePtr LLJoystick::getXML(bool save_children) const |
250 | { | 250 | { |
251 | LLXMLNodePtr node = LLUICtrl::getXML(); | 251 | LLXMLNodePtr node = LLButton::getXML(); |
252 | 252 | ||
253 | node->createChild("halign", TRUE)->setStringValue(LLFontGL::nameFromHAlign(getHAlign())); | ||
254 | node->createChild("quadrant", TRUE)->setStringValue(nameFromQuadrant(mInitialQuadrant)); | 253 | node->createChild("quadrant", TRUE)->setStringValue(nameFromQuadrant(mInitialQuadrant)); |
255 | |||
256 | addImageAttributeToXML(node,getImageUnselectedName(),getImageUnselectedID(),std::string("image_unselected")); | ||
257 | addImageAttributeToXML(node,getImageSelectedName(),getImageSelectedID(),std::string("image_selected")); | ||
258 | 254 | ||
259 | node->createChild("scale_image", TRUE)->setBoolValue(getScaleImage()); | ||
260 | |||
261 | return node; | 255 | return node; |
262 | } | 256 | } |
263 | 257 | ||
@@ -327,6 +321,15 @@ void LLJoystickAgentTurn::onHeldDown() | |||
327 | } | 321 | } |
328 | } | 322 | } |
329 | 323 | ||
324 | LLXMLNodePtr LLJoystickAgentTurn::getXML(bool save_children) const | ||
325 | { | ||
326 | LLXMLNodePtr node = LLJoystick::getXML(); | ||
327 | |||
328 | node->setName(LL_JOYSTICK_TURN); | ||
329 | |||
330 | return node; | ||
331 | } | ||
332 | |||
330 | LLView* LLJoystickAgentTurn::fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory) | 333 | LLView* LLJoystickAgentTurn::fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory) |
331 | { | 334 | { |
332 | std::string name("button"); | 335 | std::string name("button"); |
@@ -435,6 +438,15 @@ void LLJoystickAgentSlide::onHeldDown() | |||
435 | } | 438 | } |
436 | 439 | ||
437 | 440 | ||
441 | LLXMLNodePtr LLJoystickAgentSlide::getXML(bool save_children) const | ||
442 | { | ||
443 | LLXMLNodePtr node = LLJoystick::getXML(); | ||
444 | |||
445 | node->setName(LL_JOYSTICK_SLIDE); | ||
446 | |||
447 | return node; | ||
448 | } | ||
449 | |||
438 | // static | 450 | // static |
439 | LLView* LLJoystickAgentSlide::fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory) | 451 | LLView* LLJoystickAgentSlide::fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory) |
440 | { | 452 | { |