//
// SetupTriggerPopup::addCloseButton from 0x676d2c to 0x676d90 (100 bytes)
//
// 78 xrefs:
// > CustomizeObjectSettingsPopup::init @ 0x57ef0c
// > SetupEnterTriggerPopup::init @ 0x5d66de
// > EditGameObjectPopup::init @ 0x5d78d2
// > UISaveLoadLayer::init @ 0x5d9160
// > SetupMoveCommandPopup::init @ 0x5e75ee
// > SetupObjectTogglePopup::init @ 0x5ea3be
// > SetupSpawnPopup::init @ 0x5eb1a6
// > SetupPulsePopup::init @ 0x5ed17e
// > CollisionBlockPopup::init @ 0x600d74
// > GJFollowCommandLayer::init @ 0x60f42e
// > GJPFollowCommandLayer::init @ 0x60fa82
// > SetupRotateCommandPopup::init @ 0x610328
// > SetItemIDLayer::init @ 0x6236e6
// > SetTargetIDLayer::init @ 0x623e90
// > SetupAnimSettingsPopup::init @ 0x6251a6
// > SetupCollisionTriggerPopup::init @ 0x625a5e
// > SetupInstantCollisionTriggerPopup::init @ 0x626136
// > SetupCollisionStateTriggerPopup::init @ 0x626754
// > SetupCountTriggerPopup::init @ 0x626a8e
// > SetupInteractObjectPopup::init @ 0x627126
// > SetupInstantCountPopup::init @ 0x627da2
// > SetupPickupTriggerPopup::init @ 0x6288a2
// > SetupRotatePopup::init @ 0x628fee
// > SetupStaticCameraPopup::init @ 0x634c2c
// > SetupZoomTriggerPopup::init @ 0x63545c
// > SetupPlatformerEndPopup::init @ 0x6370c2
// > SetupObjectOptions2Popup::init @ 0x63c9ba
// > SetupTransformPopup::init @ 0x657a80
// > SetupSongTriggerPopup::init @ 0x6587ba
// > SetupCameraRotatePopup2::init @ 0x659fda
// > SetupOptionsTriggerPopup::init @ 0x675ba4
// > SetupRotateGameplayPopup::init @ 0x67fa4a
// > SetupGameplayOffsetPopup::init @ 0x680106
// > SetupTeleportPopup::init @ 0x680860
// > SetupShaderEffectPopup::init @ 0x68ddf6
// > SetupAreaMoveTriggerPopup::init @ 0x68fed2
// > SetupAreaTransformTriggerPopup::init @ 0x6907ee
// > SetupAreaRotateTriggerPopup::init @ 0x690df2
// > SetupAreaFadeTriggerPopup::init @ 0x69130e
// > SetupAreaTintTriggerPopup::init @ 0x691822
// > SetupAreaTriggerPopup::init @ 0x691f42
// > SetupAreaAnimTriggerPopup::init @ 0x69248c
// > SetupEnterEffectPopup::init @ 0x693d76
// > SetupAdvFollowEditPhysicsPopup::init @ 0x6966ba
// > SetupAdvFollowRetargetPopup::init @ 0x696f86
// > SetupAdvFollowPopup::init @ 0x6974de
// > SetupBGSpeedTrigger::init @ 0x69b7fc
// > SetupGravityTriggerPopup::init @ 0x69bc2a
// > SetupKeyframeAnimPopup::init @ 0x6adbae
// > SetupKeyframePopup::init @ 0x6ae2a8
// > SetupReverbPopup::init @ 0x6b06d2
// > SetupSFXEditPopup::init @ 0x6b0c5e
// > SetupSFXPopup::init @ 0x6b1800
// > SetupEventLinkPopup::init @ 0x6b3706
// > SetupPlayerControlPopup::init @ 0x6b3ad6
// > SetupSpawnParticlePopup::init @ 0x6b3efa
// > SetupCheckpointPopup::init @ 0x6b4636
// > MultiTriggerPopup::init @ 0x6b4a04
// > UIObjectSettingsPopup::init @ 0x6b4c32
// > SetupResetTriggerPopup::init @ 0x6b53a8
// > SetupCoinLayer::init @ 0x6b55e8
// > SetupPersistentItemTriggerPopup::init @ 0x6b58b6
// > SetupCameraGuidePopup::init @ 0x6b5cbe
// > SetupForceBlockPopup::init @ 0x6b60e2
// > SetupObjectControlPopup::init @ 0x6b65c0
// > SetupProgressPopup::init @ 0x6b682a
// > SetupDashRingPopup::init @ 0x6b6c4a
// > SetupStopTriggerPopup::init @ 0x6b710e
// > SetupAudioLineGuidePopup::init @ 0x6b7592
// > SetupArtSwitchPopup::init @ 0x6b7c12
// > SetupItemEditTriggerPopup::init @ 0x6b90d0
// > SetupItemCompareTriggerPopup::init @ 0x6b9e98
// > SelectEventLayer::init @ 0x6bae60
// > SetupTimerTriggerPopup::init @ 0x6da0ae
// > SetupTimerEventTriggerPopup::init @ 0x6da65a
// > SetupTimerControlTriggerPopup::init @ 0x6da9f4
// > EasingSelectPopup::init @ 0x77a34a
// > EditorSFXSettingsPopup::init @ 0x78172e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:55:56 +0000
//
int __fastcall SetupTriggerPopup::addCloseButton(int a1, int a2)
{
ButtonSprite *v3; // r0
ButtonSprite *v4; // r0
int v5; // r1
float v7; // [sp+10h] [bp-8h]
if ( (*(_BYTE *)a2 & 1) != 0 )
v3 = *(ButtonSprite **)(a2 + 8);
else
v3 = (ButtonSprite *)(a2 + 1);
v4 = ButtonSprite::create(
v3,
(const char *)&word_28,
0,
0.8,
1,
"goldFont.fnt",
"GJ_button_01.png",
(const char *)0x41F00000,
v7);
v5 = CCMenuItemSpriteExtra::create((int)v4, 0, a1, 684, 1);
return (*(int (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v5);
}