MCPcopy Create free account
hub / github.com/MyGUI/mygui / deserialization

Method deserialization

UnitTests/UnitTest_TextureAnimations/WobbleNodeAnimator.cpp:36–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 }
35
36 void WobbleNodeAnimator::deserialization(MyGUI::xml::ElementPtr _node, MyGUI::Version _version)
37 {
38 MyGUI::xml::ElementEnumerator node = _node->getElementEnumerator();
39 while (node.next("Property"))
40 {
41 std::string_view key = node->findAttribute("key");
42 std::string_view value = node->findAttribute("value");
43
44 if (key == "DragStrength")
45 mDragStrength = MyGUI::utility::parseFloat(value);
46 else if (key == "ResizeStrength")
47 mResizeStrength = MyGUI::utility::parseFloat(value);
48 }
49 }
50
51 size_t WobbleNodeAnimator::animate(
52 bool _update,

Callers

nothing calls this directly

Calls 4

parseFloatFunction · 0.85
getElementEnumeratorMethod · 0.80
findAttributeMethod · 0.80
nextMethod · 0.45

Tested by

no test coverage detected