#Undisputed GUI Reference
File: und-gui.py · Game: Undisputed Boxing
#Overview
The Undisputed GUI is the most polished launcher with a premium dark theme, global hotkey support, and integrated auto-focus.
#Key Differences from FC24/FC25 GUI
| Feature | FC24/FC25 GUI | Undisputed GUI |
|---|---|---|
| Theme | Basic Tkinter | Dark premium (custom colors) |
| Hotkeys | ❌ | ✅ Shift + Plus / Shift + Minus |
| Auto-focus | External (focus.bat) |
Built-in thread |
| Minutes setting | ✅ (7/10) | ❌ (not applicable) |
| Sticky window | ❌ | ✅ (always on top) |
| PID file | fc24/fc25_processes.json |
undisputed_processes.json |
#GUI Theme
BG_COLOR = '#1e1e2e' # Dark background
FG_COLOR = '#cdd6f4' # Light text
ACCENT_COLOR = '#89b4fa' # Blue accent
BUTTON_BG = '#313244' # Button background
BUTTON_HOVER = '#45475a' # Button hover
SUCCESS_COLOR = '#a6e3a1' # Green (success)
ERROR_COLOR = '#f38ba8' # Red (error)
BORDER_COLOR = '#585b70' # Border#Functions
#check_memory_and_start() ACTIVE
Validates UNDMemory addresses then calls run_script().
#run_script(trigger_source) ACTIVE
Launches und-start.bat as subprocess. No separate focus script needed.
#stop_script(trigger_source) ACTIVE
Stops all Undisputed processes. Uses _collect_all_known_pids() with Undisputed.exe, und.py, und-start.bat search patterns.
#setup_hotkeys() ACTIVE
Registers global hotkeys via keyboard module:
shift+plus→ Start scriptshift+minus→ Stop script
#_initialize_websocket_listener() ACTIVE
Same pattern as FC24/FC25 — WebSocket handlers for remote control.