MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / _replaceDisplay

Method _replaceDisplay

Source/Node/DragonBone.cpp:128–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128void DBSlot::_replaceDisplay(void* value, bool isArmatureDisplay) {
129 const auto container = s_cast<DragonBone*>(_armature->getDisplay());
130 const auto prevNode = s_cast<DBSlotNode*>(value);
131 container->addChild(_node, prevNode->getOrder());
132 container->removeChild(prevNode);
133 _textureScale = 1.0f;
134}
135
136void DBSlot::_removeDisplay() {
137 _node->removeFromParent();

Callers

nothing calls this directly

Calls 4

getDisplayMethod · 0.80
getOrderMethod · 0.80
addChildMethod · 0.45
removeChildMethod · 0.45

Tested by

no test coverage detected