// // EditorOptionsLayer::setupOptions from 0xa3536c to 0xa35ce4 (2424 bytes) // // 2 xrefs: // > @ 0x4b238 // > @ 0x147c010 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 12:59:49 +0000 // __int64 __fastcall EditorOptionsLayer::setupOptions(EditorOptionsLayer *this) { cocos2d::CCObject *v2; // x23 GameManager *v3; // x0 GameManager *IntGameVariable; // x0 GameManager *v5; // x0 cocos2d::CCDirector *v6; // x0 cocos2d::CCDirector *v7; // x0 const char *v8; // x2 cocos2d::CCObject *v9; // x24 cocos2d::CCString *v10; // x0 cocos2d::CCLabelBMFont *CString; // x0 const char *v12; // x2 __int64 v13; // x0 const char *v14; // x1 cocos2d::CCSprite *v15; // x24 cocos2d::CCObject *v16; // x24 const char *v17; // x1 __int64 v18; // x24 cocos2d::CCObject *v19; // x24 void (__fastcall *v20)(cocos2d::CCObject *, __int64 *); // x25 const char *v21; // x2 cocos2d::CCObject *v22; // x24 void (__fastcall *v23)(cocos2d::CCObject *, __int64 *); // x26 cocos2d::CCString *v24; // x0 cocos2d::CCLabelBMFont *v25; // x0 const char *v26; // x2 __int64 v27; // x0 const char *v28; // x1 cocos2d::CCSprite *v29; // x24 cocos2d::CCObject *v30; // x24 void (__fastcall *v31)(cocos2d::CCObject *, __int64 *); // x28 const char *v32; // x1 __int64 v33; // x24 cocos2d::CCObject *v34; // x24 cocos2d::CCNode *v35; // x26 void (__fastcall *v36)(cocos2d::CCObject *, __int64 *); // x19 cocos2d::CCNode *v38; // [xsp+A0h] [xbp+A0h] cocos2d::CCNode *v39; // [xsp+A8h] [xbp+A8h] cocos2d::CCNode *v40; // [xsp+A8h] [xbp+A8h] cocos2d::CCNode *v41; // [xsp+A8h] [xbp+A8h] cocos2d::CCNode *v42; // [xsp+A8h] [xbp+A8h] __int64 v43; // [xsp+B8h] [xbp+B8h] BYREF _BYTE v44[4]; // [xsp+C0h] [xbp+C0h] BYREF float v45; // [xsp+C4h] [xbp+C4h] _BYTE v46[8]; // [xsp+C8h] [xbp+C8h] BYREF _BYTE v47[8]; // [xsp+D0h] [xbp+D0h] BYREF __int64 v48; // [xsp+D8h] [xbp+D8h] BYREF __int64 v49; // [xsp+E0h] [xbp+E0h] BYREF *((_DWORD *)this + 255) = 12; *((float *)this + 268) = 15.0; 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((__int64)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."); v2 = GJOptionsLayer::objectsForPage(this, nullptr); v3 = (GameManager *)GameManager::sharedState(v2); IntGameVariable = (GameManager *)GameManager::getIntGameVariable(v3, "0049"); *((_DWORD *)this + 280) = (_DWORD)IntGameVariable; v5 = (GameManager *)GameManager::sharedState(IntGameVariable); v6 = (cocos2d::CCDirector *)GameManager::getIntGameVariable(v5, "0050"); *((_DWORD *)this + 281) = (_DWORD)v6; v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v6); cocos2d::CCDirector::getWinSize(&v43, v7); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v44, (float)(*(float *)&v43 * 0.5) + -100.0, (float)(*((float *)&v43 + 1) * 0.5) + -115.0); v9 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create( (cocos2d::CCLabelBMFont *)"Buttons Per Row", "goldFont.fnt", v8); (*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v9 + 160LL))(v9, 0.5); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v9, 2); v39 = *(cocos2d::CCNode **)(*(_QWORD *)v9 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v48, 0.0, 30.0); cocos2d::CCPoint::operator+(&v49, v44); ((void (__fastcall *)(cocos2d::CCObject *, __int64 *))v39)(v9, &v49); cocos2d::CCArray::addObject(v2, v9); v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)*((unsigned int *)this + 280)); CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v10); v13 = cocos2d::CCLabelBMFont::create(CString, "goldFont.fnt", v12); *((_QWORD *)this + 141) = v13; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(*((_QWORD *)this + 73), v13, 2); (*(void (__fastcall **)(_QWORD, _BYTE *))(**((_QWORD **)this + 141) + 184LL))(*((_QWORD *)this + 141), v44); cocos2d::CCArray::addObject(v2, *((cocos2d::CCObject **)this + 141)); v15 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_arrow_03_001.png", v14); cocos2d::CCSprite::setFlipX(v15, 1); (*(void (__fastcall **)(cocos2d::CCSprite *, float))(*(_QWORD *)v15 + 160LL))(v15, 0.8); v16 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( (__int64)v15, 0, (__int64)this, (__int64)EditorOptionsLayer::onButtonsPerRow, 0); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v16); v40 = *(cocos2d::CCNode **)(*(_QWORD *)v16 + 184LL); v38 = *((cocos2d::CCNode **)this + 69); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v47, 40.0, 0.0); cocos2d::CCPoint::operator+(&v48, v44); cocos2d::CCNode::convertToNodeSpace(&v49, v38, (const cocos2d::CCPoint *)&v48); ((void (__fastcall *)(cocos2d::CCObject *, __int64 *))v40)(v16, &v49); CCMenuItemSpriteExtra::setSizeMult((__int64)v16, 2.0); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v16 + 72LL))(v16, 1); cocos2d::CCArray::addObject(v2, v16); v18 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_03_001.png", v17); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v18 + 160LL))(v18, 0.8); v19 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( v18, 0, (__int64)this, (__int64)EditorOptionsLayer::onButtonsPerRow, 0); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v19); v41 = *((cocos2d::CCNode **)this + 69); v20 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v19 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v47, -40.0, 0.0); cocos2d::CCPoint::operator+(&v48, v44); cocos2d::CCNode::convertToNodeSpace(&v49, v41, (const cocos2d::CCPoint *)&v48); v20(v19, &v49); CCMenuItemSpriteExtra::setSizeMult((__int64)v19, 2.0); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v19 + 72LL))(v19, 0); cocos2d::CCArray::addObject(v2, v19); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v46, (float)(*(float *)&v43 * 0.5) + 100.0, v45); v22 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create( (cocos2d::CCLabelBMFont *)"Button Rows", "goldFont.fnt", v21); (*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v22 + 160LL))(v22, 0.5); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v22, 2); v23 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v22 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v48, 0.0, 30.0); cocos2d::CCPoint::operator+(&v49, v46); v23(v22, &v49); cocos2d::CCArray::addObject(v2, v22); v24 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)*((unsigned int *)this + 281)); v25 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v24); v27 = cocos2d::CCLabelBMFont::create(v25, "goldFont.fnt", v26); *((_QWORD *)this + 142) = v27; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(*((_QWORD *)this + 73), v27, 2); (*(void (__fastcall **)(_QWORD, _BYTE *))(**((_QWORD **)this + 142) + 184LL))(*((_QWORD *)this + 142), v46); cocos2d::CCArray::addObject(v2, *((cocos2d::CCObject **)this + 142)); v29 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_arrow_02_001.png", v28); cocos2d::CCSprite::setFlipX(v29, 1); (*(void (__fastcall **)(cocos2d::CCSprite *, float))(*(_QWORD *)v29 + 160LL))(v29, 0.8); v30 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( (__int64)v29, 0, (__int64)this, (__int64)EditorOptionsLayer::onButtonRows, 0); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v30); v42 = *((cocos2d::CCNode **)this + 69); v31 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v30 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v47, 40.0, 0.0); cocos2d::CCPoint::operator+(&v48, v46); cocos2d::CCNode::convertToNodeSpace(&v49, v42, (const cocos2d::CCPoint *)&v48); v31(v30, &v49); CCMenuItemSpriteExtra::setSizeMult((__int64)v30, 2.0); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v30 + 72LL))(v30, 1); cocos2d::CCArray::addObject(v2, v30); v33 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_02_001.png", v32); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v33 + 160LL))(v33, 0.8); v34 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( v33, 0, (__int64)this, (__int64)EditorOptionsLayer::onButtonRows, 0); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v34); v35 = *((cocos2d::CCNode **)this + 69); v36 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v34 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v47, -40.0, 0.0); cocos2d::CCPoint::operator+(&v48, v46); cocos2d::CCNode::convertToNodeSpace(&v49, v35, (const cocos2d::CCPoint *)&v48); v36(v34, &v49); CCMenuItemSpriteExtra::setSizeMult((__int64)v34, 2.0); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v34 + 72LL))(v34, 0); cocos2d::CCArray::addObject(v2, v34); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source