feat: Change Ctrl+Shift+U to toggle in-game overlay (Activity Bar)
Hotkey Changes: - Ctrl+Shift+U: Now toggles Activity Bar (in-game overlay) instead of dashboard - Ctrl+Shift+H: Still hides all overlays - Ctrl+Shift+B: Also toggles Activity Bar (kept for compatibility) UI Updates: - Tray menu shows 'Activity Bar (Ctrl+Shift+U)' to indicate hotkey - Dashboard no longer has a global hotkey (use tray icon or window) - Updated startup messages to reflect new hotkey setup
This commit is contained in:
parent
1ced253969
commit
159f7a4a05
24
core/main.py
24
core/main.py
|
|
@ -230,24 +230,26 @@ class EUUtilityApp:
|
||||||
|
|
||||||
print("EU-Utility started!")
|
print("EU-Utility started!")
|
||||||
print("Dashboard window is open (Desktop App)")
|
print("Dashboard window is open (Desktop App)")
|
||||||
print("Press Ctrl+Shift+U to toggle dashboard")
|
print("Use system tray icon to access dashboard")
|
||||||
|
print("Press Ctrl+Shift+U to toggle in-game overlay (Activity Bar)")
|
||||||
print("Press Ctrl+Shift+H to hide all overlays")
|
print("Press Ctrl+Shift+H to hide all overlays")
|
||||||
print("Press Ctrl+Shift+B to toggle activity bar overlay")
|
|
||||||
print(f"Loaded {len(self.plugin_manager.get_all_plugins())} plugins")
|
print(f"Loaded {len(self.plugin_manager.get_all_plugins())} plugins")
|
||||||
|
|
||||||
# Show overlay mode info
|
# Show overlay mode info
|
||||||
if hasattr(self, 'overlay_controller') and self.overlay_controller:
|
if hasattr(self, 'overlay_controller') and self.overlay_controller:
|
||||||
mode = self.overlay_controller._mode
|
mode = self.overlay_controller._mode
|
||||||
print(f"\nActivity Bar Mode: {mode.value}")
|
print(f"\nActivity Bar Mode: {mode.value}")
|
||||||
if mode.value == 'overlay_toggle':
|
if mode.value == 'overlay_game':
|
||||||
print(" - Overlay starts hidden")
|
|
||||||
print(" - Press Ctrl+Shift+B to toggle visibility")
|
|
||||||
elif mode.value == 'overlay_temp':
|
|
||||||
print(" - Press Ctrl+Shift+B to show for 8 seconds")
|
|
||||||
elif mode.value == 'overlay_game':
|
|
||||||
print(" - Overlay auto-shows when EU game is focused")
|
print(" - Overlay auto-shows when EU game is focused")
|
||||||
|
print(" - Press Ctrl+Shift+U to manually toggle overlay")
|
||||||
elif mode.value == 'overlay_always':
|
elif mode.value == 'overlay_always':
|
||||||
print(" - Overlay always visible")
|
print(" - Overlay always visible")
|
||||||
|
print(" - Press Ctrl+Shift+U to hide/show overlay")
|
||||||
|
elif mode.value == 'overlay_toggle':
|
||||||
|
print(" - Overlay starts hidden")
|
||||||
|
print(" - Press Ctrl+Shift+U to toggle overlay")
|
||||||
|
elif mode.value == 'overlay_temp':
|
||||||
|
print(" - Press Ctrl+Shift+U to show for 8 seconds")
|
||||||
elif mode.value == 'desktop_app':
|
elif mode.value == 'desktop_app':
|
||||||
print(" - Activity bar only in desktop app")
|
print(" - Activity bar only in desktop app")
|
||||||
|
|
||||||
|
|
@ -395,11 +397,11 @@ class EUUtilityApp:
|
||||||
"""Setup global hotkeys."""
|
"""Setup global hotkeys."""
|
||||||
if KEYBOARD_AVAILABLE:
|
if KEYBOARD_AVAILABLE:
|
||||||
try:
|
try:
|
||||||
# Toggle main overlay
|
# Ctrl+Shift+U: Toggle in-game overlay (Activity Bar)
|
||||||
keyboard.add_hotkey('ctrl+shift+u', self._on_hotkey_pressed)
|
keyboard.add_hotkey('ctrl+shift+u', self._on_activity_bar_hotkey)
|
||||||
# Hide all overlays
|
# Hide all overlays
|
||||||
keyboard.add_hotkey('ctrl+shift+h', self._on_hide_overlays_pressed)
|
keyboard.add_hotkey('ctrl+shift+h', self._on_hide_overlays_pressed)
|
||||||
# Toggle activity bar
|
# Alternative: Toggle activity bar (kept for compatibility)
|
||||||
keyboard.add_hotkey('ctrl+shift+b', self._on_activity_bar_hotkey)
|
keyboard.add_hotkey('ctrl+shift+b', self._on_activity_bar_hotkey)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"Failed to register hotkey: {e}")
|
print(f"Failed to register hotkey: {e}")
|
||||||
|
|
|
||||||
|
|
@ -89,12 +89,12 @@ class TrayIcon(QWidget):
|
||||||
|
|
||||||
# Simple actions (no emojis to avoid encoding issues)
|
# Simple actions (no emojis to avoid encoding issues)
|
||||||
debug_logger.debug("TRAY", "Creating Dashboard action...")
|
debug_logger.debug("TRAY", "Creating Dashboard action...")
|
||||||
self.dashboard_action = QAction("Dashboard", self)
|
self.dashboard_action = QAction("Dashboard (Click to Open)", self)
|
||||||
self.dashboard_action.triggered.connect(self._on_dashboard_clicked)
|
self.dashboard_action.triggered.connect(self._on_dashboard_clicked)
|
||||||
self.menu.addAction(self.dashboard_action)
|
self.menu.addAction(self.dashboard_action)
|
||||||
|
|
||||||
debug_logger.debug("TRAY", "Creating Activity Bar action...")
|
debug_logger.debug("TRAY", "Creating Activity Bar action...")
|
||||||
self.activity_bar_action = QAction("Activity Bar", self)
|
self.activity_bar_action = QAction("Activity Bar (Ctrl+Shift+U)", self)
|
||||||
self.activity_bar_action.setCheckable(True)
|
self.activity_bar_action.setCheckable(True)
|
||||||
self.activity_bar_action.triggered.connect(self._on_activity_bar_clicked)
|
self.activity_bar_action.triggered.connect(self._on_activity_bar_clicked)
|
||||||
self.menu.addAction(self.activity_bar_action)
|
self.menu.addAction(self.activity_bar_action)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue