| 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, |
nothing calls this directly
no test coverage detected