//
// GameSettingsLayer::buildTabContent from 0x71208c to 0x712a2a (2462 bytes)
//
// 1 xrefs:
// > GameSettingsLayer::init @ 0x712f18
//
// 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:57:45 +0000
//
CCMenuItemToggler *__fastcall GameSettingsLayer::buildTabContent(GameSettingsLayer *this)
{
GameStatsManager *v2; // r0
GameStatsManager *v3; // r0
char isItemUnlocked; // r0
CCMenuItemToggler *v5; // r0
CCMenuItemToggler *result; // r0
TabbedPopupLayer::beginTab(this, 0);
GameSettingsLayer::addGVToggle(this, "Auto-Retry", "0026", "Restarts level upon death automatically.");
GameSettingsLayer::addGVToggle(this, "Faster Reset", "0052", "Restarts in 0.5s instead of 1.0s upon death.");
GameSettingsLayer::addGVToggle(
this,
"Click Between Steps",
"0177",
"Toggles substeps on, allowing you to click in-between the default normal steps. This may affect performance.");
GameSettingsLayer::addGVToggle(
this,
"Click On Steps",
"0176",
"Allows you to click on every step, regardless of your refresh rate. This is beneficial for users below 240 Hz.");
GameSettingsLayer::addGVToggle(
this,
"Flip 2-Player\nControls",
"0010",
"Flips which side controls which player during 2-player mode.");
GameSettingsLayer::addGVToggle(
this,
"Always Limit\nControls",
"0011",
"Limits player 1 controls to one side even when dual mode is inactive.");
GameSettingsLayer::addGVToggle(
this,
"Disable Auto\nCreator Controls",
"0203",
"Ignores creator controls in platformer levels.");
GameSettingsLayer::addToggle(this, "Progress Bar", -1, nullptr, 0);
GameSettingsLayer::addGVToggle(this, "Percentage", "0040", nullptr);
GameSettingsLayer::addGVToggle(this, "Show Time", "0145", nullptr);
TabbedPopupLayer::beginTab(this, 1);
GameSettingsLayer::addGVToggle(this, "Hide Attempts", "0135", "Hides the attempt counter when playing levels.");
GameSettingsLayer::addGVToggle(this, "Flip Pause Button", "0015", "Flips the location of the pause button.");
GameSettingsLayer::addGVToggle(this, "Disable Portal Guide", "0129", "Disables extra indicators on portals.");
GameSettingsLayer::addGVToggle(this, "Orb Guide", "0130", "Enables extra indicators on orbs.");
GameSettingsLayer::addGVToggle(this, "Disable Orb Scale", "0140", "Disables the scaling effect on all orbs.");
GameSettingsLayer::addGVToggle(
this,
"Disable Trigger\nOrb Scale",
"0141",
"Disables the scaling effect on only trigger orbs.");
GameSettingsLayer::addGVToggle(this, "Disable Shake", "0172", "Disables shake effects.");
GameSettingsLayer::addGVToggle(
this,
"Disable Explosion\nShake",
"0014",
"Disables the shake effect that happens upon death.");
GameSettingsLayer::addGVToggle(
this,
"Disable Gravity\nEffect",
"0072",
"Disables the effect that happens upon changing gravity.");
GameSettingsLayer::addGVToggle(this, "Default Mini Icon", "0060", "Sets player icon in mini mode to default.");
GameSettingsLayer::addGVToggle(
this,
"Switch Spider\nTeleport Color",
"0061",
"Toggles between main and secondary color for the teleport effect in spider mode.");
GameSettingsLayer::addGVToggle(
this,
"Switch Dash\nFire Color",
"0062",
"Toggles between main and secondary color for the fire effect from dash orbs.");
GameSettingsLayer::addGVToggle(
this,
"Switch Wave\nTrail Color",
"0096",
"Toggles between main and secondary color for the trail in wave mode.");
GameSettingsLayer::addGVToggle(
this,
"Disable Player\nTrail",
"0196",
"Hides the player trail in all modes except wave, including the trail from orbs and pads.");
GameSettingsLayer::addGVToggle(this, "Disable Wave\nTrail", "0197", "Hides the trail in wave mode.");
GameSettingsLayer::addGVToggle(
this,
"Hide Playtest Text",
"0174",
"Hides text in the top left when using start positions or ignore damage.");
GameSettingsLayer::addGVToggle(
this,
"Hitbox On Death",
"0179",
"Shows hitboxes upon death in both normal and practice mode.");
GameSettingsLayer::addGVToggle(
this,
"Hitbox Trail\nOn Death",
"0214",
"Shows a hitbox trail when you die, in normal and practice mode.");
GameSettingsLayer::addGVToggle(
this,
"Hitbox Trail\nHighlight",
"0217",
"Draws the hitbox trail in solid red with no fade. Easier to see on some backgrounds.");
GameSettingsLayer::addGVToggle(
this,
"Legacy Pause\nProgress",
"0249",
"Shows full Normal and Practice Mode progress bars in the pause menu instead of active session only.");
TabbedPopupLayer::beginTab(this, 2);
GameSettingsLayer::addGVToggle(
this,
"Hide Attempts",
"0134",
"Hides the attempt counter when playing levels in practice mode.");
GameSettingsLayer::addGVToggle(this, "Auto-Checkpoints", "0027", "Places checkpoints automatically in practice mode.");
GameSettingsLayer::addGVToggle(
this,
"No Auto-Checkpoints\nFor Start Pos",
"0234",
"Disables automatic checkpoints when using StartPos in Practice mode.");
GameSettingsLayer::addGVToggle(
this,
"Quick-Checkpoints",
"0068",
"Tries to place checkpoints more often in practice mode.");
GameSettingsLayer::addGVToggle(this, "Death Effect", "0100", "Shows death effects in practice mode.");
GameSettingsLayer::addGVToggle(
this,
"Skip Death Triggers",
"0212",
"Skips On Death triggers and extra reset time in practice mode.");
GameSettingsLayer::addGVToggle(
this,
"Normal Music\nIn Editor",
"0125",
"Plays normal music in sync to editor levels in practice mode.");
GameSettingsLayer::addGVToggle(this, "Show Hitboxes", "0166", "Shows hitboxes while in practice mode.");
GameSettingsLayer::addGVToggle(
this,
"Disable Player Hitbox",
"0171",
"Disables the player's hitbox in practice mode\n(if hitboxes are shown).");
GameSettingsLayer::addGVToggle(this, "Show Hitbox Trail", "0213", "Shows a hitbox trail in practice mode.");
GameSettingsLayer::addGVToggle(this, "Disable Checkpoints", "0146", nullptr);
TabbedPopupLayer::beginTab(this, 3);
GameSettingsLayer::addGVToggle(this, "Draw Trigger Boxes", "0044", "Draws the hitbox for touch triggered objects.");
GameSettingsLayer::addGVToggle(
this,
"Playtest No UI",
"0046",
"Hides part of the editor's user interface during playtesting.");
GameSettingsLayer::addGVToggle(this, "Playtest Music", "0002", "Plays music during playtesting.");
GameSettingsLayer::addGVToggle(
this,
"Effect Lines",
"0043",
"Shows a vertical line for triggers to indicate where they are activated.");
GameSettingsLayer::addGVToggle(
this,
"Duration Lines",
"0058",
"Shows a horizontal line for triggers to indicate how long they are active.");
GameSettingsLayer::addGVToggle(this, "Grid On Top", "0039", "Shows the grid on top of objects in editor.");
GameSettingsLayer::addGVToggle(this, "Playtest No Grid", "0079", "Hides grid during playtesting.");
GameSettingsLayer::addGVToggle(this, "Hide Background", "0078", "Hides background in editor.");
GameSettingsLayer::addGVToggle(
this,
"Link Controls",
"0097",
"Enables option to link objects together in the editor. Linked objects are always selected and deleted together.");
GameSettingsLayer::addGVToggle(
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.");
TabbedPopupLayer::offsetToNextPage(this, 12);
GameSettingsLayer::addGVToggle(
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.");
GameSettingsLayer::addGVToggle(
this,
"Layer Locking",
"0103",
"Allows you to click on the editor layer number to lock and unlock a layer.");
GameSettingsLayer::addGVToggle(
this,
"Show Clicks",
"0149",
"Shows a marker during playtesting when the player clicks.");
GameSettingsLayer::addGVToggle(
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.");
GameSettingsLayer::addGVToggle(this, "Hide Path", "0152", "Hides the player path from playtesting.");
GameSettingsLayer::addGVToggle(
this,
"Start Optimization",
"0151",
"Tries to speed up start position loading in editor. Experimental.");
GameSettingsLayer::addGVToggle(
this,
"Hide Particle Icons",
"0137",
"Hides particle icons while preview mode is enabled.");
GameSettingsLayer::addGVToggle(
this,
"Increase Undo/Redo",
"0013",
"Increases maximum undo and redo limit from 200 to 1000 in editor.");
GameSettingsLayer::addGVToggle(
this,
"Playtest Smooth Fix",
"0102",
"Enables smooth fix when playtesting in the editor.");
GameSettingsLayer::addGVToggle(
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.");
GameSettingsLayer::addGVToggle(
this,
"Disable Paste\nState 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.");
GameSettingsLayer::addGVToggle(
this,
"Small Warp Buttons",
"0169",
"Warp control buttons are 50% smaller. (Restart editor)");
GameSettingsLayer::addGVToggle(
this,
"Static Trace Arrows",
"0181",
"Disable the arrows showing directed connections when using Trace In/Out.");
GameSettingsLayer::addGVToggle(
this,
"Legacy Move Menu",
"0191",
"Uses the classic grid layout for move buttons instead of the d-pad layout.");
GameSettingsLayer::addGVToggle(this, "Swap Move Menu", "0247", "Place the dpad on the right side of the move menu.");
GameSettingsLayer::addGVToggle(this, "Disable Zoom Label", "0195", "Hides the zoom label when zooming.");
GameSettingsLayer::addGVToggle(
this,
"Hitbox Trail",
"0215",
"Shows a trail of previous hitboxes while playtesting. The trail stays until the next playtest.");
GameSettingsLayer::addGVToggle(
this,
"Disable Anchor Snap",
"0242",
"Stops the warp anchor point from snapping to corners, midpoints and the grid.");
GameSettingsLayer::addGVToggle(
this,
"Disable Pinch",
"0245",
"Disables pinch to zoom and two-finger panning in the editor.");
GameSettingsLayer::addGVToggle(
this,
"Hide Center Cross",
"0248",
"Hides the cross marking the camera center in preview mode.");
v2 = (GameStatsManager *)TabbedPopupLayer::beginTab(this, 4);
v3 = (GameStatsManager *)GameStatsManager::sharedState(v2);
isItemUnlocked = GameStatsManager::isItemUnlocked(v3, 12, 17);
GameSettingsLayer::addToggle(
this,
"Practice Music Sync",
-2,
"Plays normal music in practice mode in main and online levels. Requires the Music Unlocker.",
isItemUnlocked != 1);
GameSettingsLayer::addGVToggle(this, "Audio Visualizer", "0144", (const char *)&unk_B6B226);
GameSettingsLayer::addGVToggle(
this,
"Disable Song Alert",
"0083",
"Removes the alert shown when starting levels without the song downloaded.");
GameSettingsLayer::addGVToggle(
this,
"No Song Limit",
"0018",
"Stops automatic deletion of custom songs. This is done by default to save space.");
GameSettingsLayer::addGVToggle(
this,
"Reduce Quality\n(Read Info)",
"0142",
"Lowers audio sampling rate from 44100 Hz to 24000 Hz. Requires restarting to take effect.");
GameSettingsLayer::addGVToggle(
this,
"Audio Fix 01",
"0159",
"Increases the audio buffer size, which may fix certain issues. Do not enable if audio is working fine. Causes a slig"
"ht more audio delay. Requires restarting to take effect.");
TabbedPopupLayer::beginTab(this, 5);
GameSettingsLayer::addGVToggle(
this,
"Smooth Fix",
"0023",
"Makes some optimizations that can reduce lag. Disable if game speed becomes inconsistent.");
GameSettingsLayer::addGVToggle(
this,
"Increase Draw Capacity",
"0066",
"Increases draw capacity for batch nodes at level start. Can improve performance on some levels, but may cause issues"
" on low-end devices.");
GameSettingsLayer::addGVToggle(
this,
"Low Detail",
"0108",
"Enables low detail mode on levels that support it automatically.");
GameSettingsLayer::addGVToggle(
this,
"Disable High Object\nAlert",
"0082",
"Removes the alert shown when starting levels with a high object count.");
GameSettingsLayer::addGVToggle(
this,
"Extra LDM",
"0136",
"Removes glow and enter effects while in low detail mode. Levels without LDM show LDM Lite.");
GameSettingsLayer::addGVToggle(
this,
"Increase Maximum\nLevels",
"0042",
"Increases maximum locally saved levels from 10 to 100. This refers to level data, not statistics. Enabling this can "
"make your save file considerably larger, so keeping the option off is recommended for quicker saving.");
GameSettingsLayer::addGVToggle(
this,
"Disable Level Saving",
"0119",
"Saves level statistics as usual, but levels need to be redownloaded every time you restart the game. Makes saving an"
"d loading faster.");
GameSettingsLayer::addGVToggle(
this,
"Save Gauntlets",
"0127",
"Saves gauntlet levels locally so they do not have to be redownloaded. Increases save time but helpful if you have poor connection.");
GameSettingsLayer::addGVToggle(
this,
"Disable Shader\nAnti-Aliasing",
"0155",
"Disables anti-aliasing on shader effects.");
GameSettingsLayer::addGVToggle(this, "Show Info Label", "0109", (const char *)&unk_B6B226);
GameSettingsLayer::addGVToggle(this, "More Comments", "0094", "Shows more comments per page. Why not?");
GameSettingsLayer::addGVToggle(this, "Load Comments", "0090", "Loads comments automatically.");
GameSettingsLayer::addGVToggle(
this,
"New Completed Filter",
"0073",
"Makes completed levels filter based only on percentage from update 2.1. Useful to rebeat levels for Mana Orbs.");
GameSettingsLayer::addGVToggle(
this,
"Increase Local Levels\nPer Page",
"0093",
"Increases created and saved levels per page from 10 to 20.");
GameSettingsLayer::addGVToggle(
this,
"Manual Level Order",
"0084",
"Places new levels last in the saved levels list. Useful if you want to manually move levels to the top.");
GameSettingsLayer::addGVToggle(this, "Percentage Decimals", "0126", "Shows decimals in level progress.");
GameSettingsLayer::addGVToggle(
this,
"Show Leaderboard\nPercentage",
"0099",
"Toggles viewing the leaderboard percentage you have on levels. To upload your level progress to the level leaderboar"
"d, you need to replay levels completed before 2.11.");
GameSettingsLayer::addGVToggle(this, "Do Not...", "0095", "Does not do anything... Well, nothing useful.");
GameSettingsLayer::addGVToggle(this, "Confirm Exit", "0167", "Adds an extra confirmation window when exiting levels.");
GameSettingsLayer::addGVToggle(this, "Fast\nMenu", "0168", "Makes transitions between menu pages faster.");
v5 = GameSettingsLayer::addGVToggle(
this,
"Disable Auto-Save\nPlatformer",
"0192",
"Stops the game from automatically saving checkpoints on platformer levels. Existing saves are kept until you clear them.");
result = (CCMenuItemToggler *)GameManager::sharedState(v5);
if ( *((_DWORD *)result + 205) - *((_DWORD *)result + 206) > 0 )
return GameSettingsLayer::addGVToggle(
this,
"Hide Mod Buttons",
"0235",
"Hides the report, admin panel and mod chat buttons. For streaming.");
return result;
}