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

Method deserialization

UnitTests/UnitTest_TextureAnimations/FadeNodeAnimator.cpp:16–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14 }
15
16 void FadeNodeAnimator::deserialization(MyGUI::xml::ElementPtr _node, MyGUI::Version _version)
17 {
18 MyGUI::xml::ElementEnumerator node = _node->getElementEnumerator();
19 while (node.next("Property"))
20 {
21 std::string_view key = node->findAttribute("key");
22 std::string_view value = node->findAttribute("value");
23
24 if (key == "FadeDuration")
25 mFadeDuration = MyGUI::utility::parseFloat(value);
26 else if (key == "FadeType")
27 mFadeType = MyGUI::utility::parseInt(value); //FIXME
28 }
29 }
30
31 size_t FadeNodeAnimator::animate(
32 bool _update,

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected