// // EditorOptionsLayer::setupOptions from 0x5e1928 to 0x5e2070 (1864 bytes) // // 0 xrefs: // // 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:54:16 +0000 // int __fastcall EditorOptionsLayer::setupOptions(EditorOptionsLayer *this) { GameManager *v2; // r0 GameManager *IntGameVariable; // r0 GameManager *v4; // r0 cocos2d::CCDirector *v5; // r0 const char *v6; // r2 cocos2d::CCObject *v7; // r5 void (__fastcall *v8)(cocos2d::CCObject *, _DWORD *); // r6 cocos2d::CCString *v9; // r0 cocos2d::CCLabelBMFont *CString; // r0 const char *v11; // r2 int v12; // r0 const char *v13; // r1 cocos2d::CCSprite *v14; // r6 cocos2d::CCObject *v15; // r6 const char *v16; // r1 int v17; // r6 cocos2d::CCObject *v18; // r11 const cocos2d::CCPoint *v19; // r10 void (__fastcall *v20)(cocos2d::CCObject *, _DWORD *); // r9 const char *v21; // r2 cocos2d::CCObject *v22; // r10 void (__fastcall *v23)(cocos2d::CCObject *, _DWORD *); // r9 cocos2d::CCString *v24; // r0 cocos2d::CCLabelBMFont *v25; // r0 const char *v26; // r2 int v27; // r0 const char *v28; // r1 cocos2d::CCSprite *v29; // r9 cocos2d::CCObject *v30; // r11 const char *v31; // r1 int v32; // r10 cocos2d::CCObject *v33; // r7 const cocos2d::CCPoint *v34; // r4 void (__fastcall *v35)(cocos2d::CCObject *, _BYTE *); // r10 cocos2d::CCObject *v37; // [sp+10h] [bp-5Ch] char *v38; // [sp+14h] [bp-58h] cocos2d::CCPoint *v39; // [sp+18h] [bp-54h] void (__fastcall *v40)(cocos2d::CCObject *, _DWORD *); // [sp+1Ch] [bp-50h] cocos2d::CCPoint *v41; // [sp+20h] [bp-4Ch] float v42[2]; // [sp+2Ch] [bp-40h] BYREF _BYTE v43[4]; // [sp+34h] [bp-38h] BYREF float v44; // [sp+38h] [bp-34h] _BYTE v45[8]; // [sp+3Ch] [bp-30h] BYREF _BYTE v46[8]; // [sp+44h] [bp-28h] BYREF _BYTE v47[8]; // [sp+4Ch] [bp-20h] BYREF _BYTE v48[8]; // [sp+54h] [bp-18h] BYREF int (__fastcall *v49)(EditorOptionsLayer *, cocos2d::CCObject *); // [sp+5Ch] [bp-10h] int v50; // [sp+60h] [bp-Ch] _DWORD v51[2]; // [sp+64h] [bp-8h] BYREF _DWORD v52[2]; // [sp+6Ch] [bp+0h] BYREF _DWORD v53[2]; // [sp+74h] [bp+8h] BYREF *((_DWORD *)this + 189) = 1097859072; *((_DWORD *)this + 180) = 12; GJOptionsLayer::addGVToggle( (cocos2d::CCDictionary **)this, "Draw Trigger Boxes", "0044", "Draws the hitbox for touch triggered objects."); GJOptionsLayer::addGVToggle( (cocos2d::CCDictionary **)this, "Playtest No UI", "0046", "Hides part of the editor's user interface during playtesting."); GJOptionsLayer::addGVToggle( (cocos2d::CCDictionary **)this, "Playtest Music", "0002", "Plays music during playtesting."); GJOptionsLayer::addGVToggle( (cocos2d::CCDictionary **)this, "Effect Lines", "0043", "Shows a vertical line for triggers to indicate where they are activated."); GJOptionsLayer::addGVToggle( (cocos2d::CCDictionary **)this, "Duration Lines", "0058", "Shows a horizontal line for triggers to indicate how long they are active."); GJOptionsLayer::addGVToggle( (cocos2d::CCDictionary **)this, "Grid On Top", "0039", "Shows the grid on top of objects in editor."); GJOptionsLayer::addGVToggle( (cocos2d::CCDictionary **)this, "Playtest No Grid", "0079", "Hides grid during playtesting."); GJOptionsLayer::addGVToggle((cocos2d::CCDictionary **)this, "Hide Background", "0078", "Hides background in editor."); GJOptionsLayer::addGVToggle( (cocos2d::CCDictionary **)this, "Enable Link Controls", "0097", "Enables option to link objects together in the editor. Linked objects are always selected and deleted together."); GJOptionsLayer::addGVToggle( (cocos2d::CCDictionary **)this, "Hold To Swipe", "0057", "Enables swiping after holding down anywhere on the grid for a short duration. Useful when selecting objects without " "the need to toggle swiping manually."); GJOptionsLayer::offsetToNextPage(this); GJOptionsLayer::addGVToggle( (cocos2d::CCDictionary **)this, "Swipe Cycle Mode", "0059", "Cycles through touched objects instead of adding to selection when tapping in the same position while swiping is ena" "bled. Useful if you want to select multiple objects that are mixed with other objects."); GJOptionsLayer::addGVToggle( (cocos2d::CCDictionary **)this, "Layer Locking", "0103", "Allows you to click on the editor layer number to lock and unlock a layer."); GJOptionsLayer::addGVToggle( (cocos2d::CCDictionary **)this, "Show Clicks", "0149", "Shows a marker during playtesting when the player clicks."); GJOptionsLayer::addGVToggle( (cocos2d::CCDictionary **)this, "Auto-Pause", "0150", "Pauses gameplay when starting from a start position to prepare gameplay. Click a second time to actually start playi" "ng. This is used to handle start lag in larger levels."); GJOptionsLayer::addGVToggle( (cocos2d::CCDictionary **)this, "Hide Path", "0152", "Hides the player path from playtesting."); GJOptionsLayer::addGVToggle( (cocos2d::CCDictionary **)this, "Start Optimization", "0151", "Tries to speed up start position loading in editor. Experimental."); GJOptionsLayer::addGVToggle( (cocos2d::CCDictionary **)this, "Hide Particle Icons", "0137", "Hides particle icons while preview mode is enabled."); GJOptionsLayer::addGVToggle( (cocos2d::CCDictionary **)this, "Increase Undo/Redo", "0013", "Increases maximum undo and redo limit from 200 to 1000 in editor."); GJOptionsLayer::addGVToggle( (cocos2d::CCDictionary **)this, "Playtest Smooth Fix", "0102", "Enables smooth fix when playtesting in the editor."); GJOptionsLayer::addGVToggle( (cocos2d::CCDictionary **)this, "Increase Scale", "0112", "Increases maximum object scale to 4x and minimum scale to 0.25x. Note that objects larger than 6x grid size may disa" "ppear near the screen edge. This may be fixed in the future."); GJOptionsLayer::addGVToggle( (cocos2d::CCDictionary **)this, "Disable Paste State Groups", "0156", "Makes it so that pasting state no longer updates the group info of the target object(s). Group state can be pasted d" "irectly on the edit group page instead."); GJOptionsLayer::addGVToggle( (cocos2d::CCDictionary **)this, "Small Warp Buttons", "0169", "Warp control buttons are 50% smaller. (Restart editor)"); GJOptionsLayer::addGVToggle( (cocos2d::CCDictionary **)this, "Static Trace Arrows", "0181", "Disable the arrows showing directed connections when using Trace In/Out."); GJOptionsLayer::addGVToggle( (cocos2d::CCDictionary **)this, "Hide Custom SFX Names", "0233", "Uploaded levels and sound packs use library sound names instead of your custom names. Shared folders are always included."); v37 = GJOptionsLayer::objectsForPage(this, nullptr); v2 = (GameManager *)GameManager::sharedState(v37); IntGameVariable = (GameManager *)GameManager::getIntGameVariable(v2, "0049"); *((_DWORD *)this + 195) = IntGameVariable; v4 = (GameManager *)GameManager::sharedState(IntGameVariable); v5 = (cocos2d::CCDirector *)GameManager::getIntGameVariable(v4, "0050"); *((_DWORD *)this + 196) = v5; cocos2d::CCDirector::sharedDirector(v5); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v42); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v43, (float)(v42[0] * 0.5) - 100.0, (float)(v42[1] * 0.5) - 115.0); v7 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create( (cocos2d::CCLabelBMFont *)"Buttons Per Row", "goldFont.fnt", v6); (*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_DWORD *)v7 + 80))(v7, 0.5); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *, int))(**((_DWORD **)this + 115) + 232))( *((_DWORD *)this + 115), v7, 2); v8 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v7 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v52, 0.0, 30.0); cocos2d::CCPoint::operator+(v53, v43, v52); v8(v7, v53); cocos2d::CCArray::addObject(v37, v7); v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", *((const char **)this + 195)); CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v9); v12 = cocos2d::CCLabelBMFont::create(CString, "goldFont.fnt", v11); *((_DWORD *)this + 197) = v12; (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v12, 2); (*(void (__fastcall **)(_DWORD, _BYTE *))(**((_DWORD **)this + 197) + 92))(*((_DWORD *)this + 197), v43); cocos2d::CCArray::addObject(v37, *((cocos2d::CCObject **)this + 197)); v14 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_arrow_03_001.png", v13); cocos2d::CCSprite::setFlipX(v14, 1); (*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v14 + 80))(v14, 1061997773); v49 = EditorOptionsLayer::onButtonsPerRow; v50 = 0; v15 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( (int)v14, 0, (int)this, (int)EditorOptionsLayer::onButtonsPerRow, 0); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v15); v40 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v15 + 92); v41 = *((cocos2d::CCPoint **)this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v51, 40.0, 0.0); cocos2d::CCPoint::operator+(v52, v43, v51); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v53, v41); v40(v15, v53); CCMenuItemSpriteExtra::setSizeMult((int)v15, 2.0); (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v15 + 36))(v15, 1); cocos2d::CCArray::addObject(v37, v15); v17 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_03_001.png", v16); (*(void (__fastcall **)(int, int))(*(_DWORD *)v17 + 80))(v17, 1061997773); v51[0] = EditorOptionsLayer::onButtonsPerRow; v51[1] = 0; v18 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( v17, 0, (int)this, (int)EditorOptionsLayer::onButtonsPerRow, 0); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v18); v19 = *((const cocos2d::CCPoint **)this + 111); v20 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v18 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v48, -40.0, 0.0); cocos2d::CCPoint::operator+(v52, v43, v48); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v53, v19); v20(v18, v53); CCMenuItemSpriteExtra::setSizeMult((int)v18, 2.0); (*(void (__fastcall **)(cocos2d::CCObject *, _DWORD))(*(_DWORD *)v18 + 36))(v18, 0); cocos2d::CCArray::addObject(v37, v18); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v45, (float)(v42[0] * 0.5) + 100.0, v44); v22 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create( (cocos2d::CCLabelBMFont *)"Button Rows", "goldFont.fnt", v21); (*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_DWORD *)v22 + 80))(v22, 0.5); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *, int))(**((_DWORD **)this + 115) + 232))( *((_DWORD *)this + 115), v22, 2); v23 = *(void (__fastcall **)(cocos2d::CCObject *, _DWORD *))(*(_DWORD *)v22 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v52, 0.0, 30.0); cocos2d::CCPoint::operator+(v53, v45, v52); v23(v22, v53); cocos2d::CCArray::addObject(v37, v22); v24 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", *((const char **)this + 196)); v25 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v24); v27 = cocos2d::CCLabelBMFont::create(v25, "goldFont.fnt", v26); *((_DWORD *)this + 198) = v27; (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v27, 2); (*(void (__fastcall **)(_DWORD, _BYTE *))(**((_DWORD **)this + 198) + 92))(*((_DWORD *)this + 198), v45); cocos2d::CCArray::addObject(v37, *((cocos2d::CCObject **)this + 198)); v29 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_arrow_02_001.png", v28); cocos2d::CCSprite::setFlipX(v29, 1); (*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v29 + 80))(v29, 1061997773); v52[0] = EditorOptionsLayer::onButtonRows; v52[1] = 0; v30 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( (int)v29, 0, (int)this, (int)EditorOptionsLayer::onButtonRows, 0); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v30); v38 = *(char **)(*(_DWORD *)v30 + 92); v39 = *((cocos2d::CCPoint **)this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v47, 40.0, 0.0); cocos2d::CCPoint::operator+(v48, v45, v47); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v53, v39); ((void (__fastcall *)(cocos2d::CCObject *, _DWORD *))v38)(v30, v53); CCMenuItemSpriteExtra::setSizeMult((int)v30, 2.0); (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v30 + 36))(v30, 1); cocos2d::CCArray::addObject(v37, v30); v32 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_02_001.png", v31); (*(void (__fastcall **)(int, int))(*(_DWORD *)v32 + 80))(v32, 1061997773); v53[0] = EditorOptionsLayer::onButtonRows; v53[1] = 0; v33 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create(v32, 0, (int)this, (int)EditorOptionsLayer::onButtonRows, 0); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v33); v34 = *((const cocos2d::CCPoint **)this + 111); v35 = *(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_DWORD *)v33 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v46, -40.0, 0.0); cocos2d::CCPoint::operator+(v47, v45, v46); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v48, v34); v35(v33, v48); CCMenuItemSpriteExtra::setSizeMult((int)v33, 2.0); (*(void (__fastcall **)(cocos2d::CCObject *, _DWORD))(*(_DWORD *)v33 + 36))(v33, 0); return cocos2d::CCArray::addObject(v37, v33); }
GD Web Decomp Icon

GD Web Decomp

Raw Source