Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
AdminMenuButtonPositionFix
Fixes the Admin Menu button (h3nw-AdminMenuButton) overlapping REPOConfig's Mods button in the pause menu by moving it into the free gap between Main Menu and Mods.
| Last updated | 3 hours ago |
| Total downloads | 64 |
| Total rating | 1 |
| Categories | Mods |
| Dependency string | RicketyWrecked-AdminMenuButtonPositionFix-1.3.0 |
| Dependants | 1 other package depends on this package |
This mod requires the following mods to function
BepInEx-BepInExPack
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2100h3nw-AdminMenuButton
Adds an Admin Menu button to the escape menu that opens RepoAdminMenu.
Preferred version: 1.0.0README
Admin Menu Button Position Fix
Fixes a visual bug in the pause menu: the Admin Menu button and REPOConfig's Mods button draw on top of each other, with their text overlapping and hard to read.
Requires RepoAdminMenu (the admin panel itself), AdminMenuButton (adds the pause menu button) and MenuLib. They install automatically as dependencies. On its own, without those, this mod does nothing.
In plain terms
Two different mods (REPOConfig and AdminMenuButton) each add their own button to the pause menu, and neither one knows the other exists, so they both ended up in almost the same spot. The result: "Mods" and "Admin Menu" overlapped, and neither was cleanly clickable.
This mod doesn't touch the admin menu itself - it doesn't open it for non-hosts, doesn't add features, doesn't change permissions or anything about how the admin panel works. All it does is nudge the "Admin Menu" button into the empty gap between "Main Menu" and "Mods" so both buttons stay fully visible and clickable, whether or not the vanilla "Active Moons" button is showing (that one appears partway through a run and shifts the whole menu down a row).
For the technically curious
The problem
MenuLib's CreateREPOButton has no automatic layout or collision handling. Every mod that adds a button to the pause menu hardcodes its own raw position, and nothing stops two mods from picking the same spot. AdminMenuButton's "Admin Menu" button uses (126, 62), which lands almost exactly on top of REPOConfig's "Mods" button at (126, 65), so the two render stacked on top of each other with overlapping text.
What this mod does
It finds the "Admin Menu" button by its label and moves it to sit between REPOConfig's "Mods" button and the vanilla "Main Menu" button.
The pause menu isn't at fixed coordinates: once a run has gone on long enough, a vanilla "Active Moons" button appears and pushes "Main Menu" (and everything below it) down a row. A fixed position only ever fit one of those two layouts. This mod now reads Main Menu's real position from the menu itself each time it builds and recomputes the midpoint against it, so it lands in the empty gap either way. Mods' own position doesn't move (REPOConfig hardcodes it), so that side of the midpoint stays fixed.
Good to know
- This only changes where the button is drawn. It has no effect on whether the admin menu opens or what it can do. RepoAdminMenu only opens for the host (or in single player) by design, and that isn't changed here.
- If another mod adds a pause menu button in that same gap, the two can still overlap.
- Built and tested with RepoAdminMenu 1.0.16, AdminMenuButton 1.0.0 and MenuLib 2.5.4 on R.E.P.O v0.4.4.3.
Credits
Made by RicketyWrecked. Not affiliated with the R.E.P.O developers, h3nw, proferabg or nickklmao. This is an unofficial layout fix.