//
// SetupGradientPopup::onPlusButton from 0x100343730 to 0x1003437a8 (120 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007f1040
//
// 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 SetupGradientPopup::onPlusButton(SetupGradientPopup *a1, cocos2d::CCObject *a2)
{
LevelEditorLayer *m_levelEditorLayer; // x0
int NextFreeGradientID; // w20
std::unordered_set v5; // [xsp+0h] [xbp-40h] BYREF
if ( ((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) == 209 )
{
m_levelEditorLayer = GameManager::sharedState()->m_levelEditorLayer;
memset(&v5, 0, 32);
v5.__table_.__p3_.__value_ = 1.0;
NextFreeGradientID = LevelEditorLayer::getNextFreeGradientID(m_levelEditorLayer, &v5);
sub_100017A98((__int64)&v5);
SetupTriggerPopup::updateValue(a1, 209, (float)NextFreeGradientID);
}
}