//
// SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim from 0x55afd0 to 0x55b0f8 (296 bytes)
//
// 26 xrefs:
// > SetupAreaAnimTriggerPopup::init @ 0x55b248
// > SetupAreaAnimTriggerPopup::init @ 0x55b29e
// > SetupAreaAnimTriggerPopup::init @ 0x55b2f6
// > SetupAreaAnimTriggerPopup::init @ 0x55b34a
// > SetupAreaAnimTriggerPopup::init @ 0x55b39e
// > SetupAreaAnimTriggerPopup::init @ 0x55b3f2
// > SetupAreaAnimTriggerPopup::init @ 0x55b446
// > SetupAreaAnimTriggerPopup::init @ 0x55b506
// > SetupAreaAnimTriggerPopup::init @ 0x55b5c2
// > SetupAreaAnimTriggerPopup::init @ 0x55b7d2
// > SetupAreaAnimTriggerPopup::init @ 0x55b826
// > SetupAreaAnimTriggerPopup::init @ 0x55b87e
// > SetupAreaAnimTriggerPopup::init @ 0x55b8d2
// > SetupAreaAnimTriggerPopup::init @ 0x55b98a
// > SetupAreaAnimTriggerPopup::init @ 0x55b9de
// > SetupAreaAnimTriggerPopup::init @ 0x55ba34
// > SetupAreaAnimTriggerPopup::init @ 0x55ba8c
// > SetupAreaAnimTriggerPopup::init @ 0x55bb2a
// > SetupAreaAnimTriggerPopup::init @ 0x55bb7c
// > SetupAreaAnimTriggerPopup::init @ 0x55bbd0
// > SetupAreaAnimTriggerPopup::init @ 0x55bc1e
// > SetupAreaAnimTriggerPopup::init @ 0x55bc70
// > SetupAreaAnimTriggerPopup::init @ 0x55bcc4
// > SetupAreaAnimTriggerPopup::init @ 0x55bd16
// > SetupAreaAnimTriggerPopup::init @ 0x55bd66
// > SetupAreaAnimTriggerPopup::init @ 0x55bdfa
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim(
SetupTriggerPopup *a1,
intptr_t a2,
int a3,
const cocos2d::CCPoint *a4,
cocos2d::CCZone *a5,
char a6,
InputValueType a7,
int a8,
char a9,
cocos2d::CCFloat *a10,
float a11,
int a12,
int a13,
int a14)
{
cocos2d::CCSprite *v17; // r5
CCMenuItemSpriteExtra *v18; // r5
void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [sp+30h] [bp-34h]
cocos2d::CCNode *m_buttonMenu; // [sp+34h] [bp-30h]
cocos2d::CCPoint v21; // [sp+3Ch] [bp-28h] BYREF
cocos2d::CCPoint v22; // [sp+44h] [bp-20h] BYREF
cocos2d::CCPoint v23; // [sp+4Ch] [bp-18h] BYREF
cocos2d::CCPoint v24; // [sp+54h] [bp-10h] BYREF
sub_775C20(&v23);
cocos2d::CCPoint::CCPoint(&v24, a4);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
a2,
(int)&v23,
&v24,
a5,
a6,
a7,
a8,
a9,
a10,
a11,
a12,
a13,
a14,
2,
0);
sub_774008(&v23);
v17 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_resetBtn_001.png");
((void (__fastcall *)(cocos2d::CCSprite *, int))v17->setScale)(v17, 1061997773);
LODWORD(v24.x) = SetupAreaAnimTriggerPopup::onDeactivateAnimValue;
v24.y = 0.0;
v18 = CCMenuItemSpriteExtra::create(
v17,
nullptr,
(cocos2d::SEL_MenuHandler)__PAIR64__(SetupAreaAnimTriggerPopup::onDeactivateAnimValue, (unsigned int)a1));
v18->setTag(v18, a2);
a1->m_buttonMenu->addChild(a1->m_buttonMenu, v18);
setPosition = v18->setPosition;
m_buttonMenu = a1->m_buttonMenu;
cocos2d::CCPoint::CCPoint(&v21, 100.0, 0.0);
cocos2d::CCPoint::operator+(&v22, a4, &v21);
cocos2d::CCNode::convertToNodeSpace(&v23, m_buttonMenu, &v22);
setPosition(v18, &v23);
SetupTriggerPopup::addObjectToPage(a1, v18, a12);
if ( a13 > 0 )
SetupTriggerPopup::addObjectToGroup(a1, v18, a13);
}