MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / setDestination

Method setDestination

Source/MenuItemSpriteExtra.cpp:43–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43void MenuItemSpriteExtra::setDestination(ax::Vec2 dest) {
44 _altAnim = true;
45 _startPos = m_pSprite->getPosition();
46 _offsetPos = ax::Vec2{_startPos.x + dest.x, _startPos.y + dest.y};
47}
48
49void MenuItemSpriteExtra::setScaleMultiplier(float s) {
50 m_fScaleMult = s;

Callers 2

initMethod · 0.80
initMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected