Skip to content

Rehaul the UI system#499

Merged
scp222thj merged 9 commits intomainfrom
scp222thj/feat/ui-rehaul
Apr 3, 2026
Merged

Rehaul the UI system#499
scp222thj merged 9 commits intomainfrom
scp222thj/feat/ui-rehaul

Conversation

@scp222thj
Copy link
Copy Markdown
Owner

  • Feat: Add box around log output in ConsoleUI
  • Refactor: New MenuUI tab system to enable greater flexibility with Unity IMGUI content
  • Refactor: Add WindowId enum to quickly and intuitively assign IDs to new GUI windows

- tabs replace groups
- each tab has its own draw method that can render any accessible Unity IMGUI content
- much more flexible in what the UI can show
- to avoid confusion with Unity components
- useful to quickly and intuitively assign ids to new gui windows
- out of place in KeybindListener
- since it can only be ran from within the Config tab, it only needs handling when that tab is open
- also exposed Plugin variable for wider use throughout the codebase
- ensures these features can be toggled with keybinds even if the tab is not selected
@astra1dev
Copy link
Copy Markdown
Collaborator

Additional changes I noticed:

  • Properly reorganized CheatToggles by category
  • KeybindListener is now in its own separate file
  • Teleport to cursor no longer deactivates on game leave
  • Added styles for tab button, tab title and tab subtitle
  • Renamed CheatToggles:
    • zeroKillCd -> noKillCd
    • useVents -> unlockVents
    • walkVent -> walkInVents
    • animScan -> animMedScan
    • fullBright -> noShadows
    • showPlayerInfo -> seePlayerInfo
    • changeRole -> setFakeRole
    • avoidBans -> avoidPenalties
    • showLobbyInfo -> seeLobbyInfo
    • alwaysChat -> enableChat

Recommendations:

  • Rename UIStructures.cs to ITab.cs
  • (Move KeybindListener into new Components folder)

@astra1dev astra1dev self-requested a review April 3, 2026 16:37
@scp222thj scp222thj merged commit 48da116 into main Apr 3, 2026
2 checks passed
@scp222thj scp222thj deleted the scp222thj/feat/ui-rehaul branch April 3, 2026 19:27
@astra1dev astra1dev mentioned this pull request Apr 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants