forked from Mirrors/RGSX
fix order
This commit is contained in:
@@ -19,7 +19,7 @@ This allows users to create symlinks from the platform folder to external storag
|
|||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
1. Open the pause menu (P key or Start button)
|
1. Open the pause menu (P key or Start button)
|
||||||
2. Navigate to "Symlink Option" (last option in the menu)
|
2. Navigate to "Symlink Option" (second to last option, before Quit)
|
||||||
3. Press Enter to toggle the option on/off
|
3. Press Enter to toggle the option on/off
|
||||||
4. The menu will show the current status: "Symlink option enabled" or "Symlink option disabled"
|
4. The menu will show the current status: "Symlink option enabled" or "Symlink option disabled"
|
||||||
|
|
||||||
|
|||||||
@@ -874,13 +874,7 @@ def handle_controls(event, sources, joystick, screen):
|
|||||||
pygame.mixer.music.stop()
|
pygame.mixer.music.stop()
|
||||||
config.needs_redraw = True
|
config.needs_redraw = True
|
||||||
logger.info(f"Musique {'activée' if config.music_enabled else 'désactivée'} via menu pause")
|
logger.info(f"Musique {'activée' if config.music_enabled else 'désactivée'} via menu pause")
|
||||||
elif config.selected_option == 7: # Quit
|
elif config.selected_option == 7: # Symlink option
|
||||||
config.previous_menu_state = validate_menu_state(config.previous_menu_state)
|
|
||||||
config.menu_state = "confirm_exit"
|
|
||||||
config.confirm_selection = 0
|
|
||||||
config.needs_redraw = True
|
|
||||||
logger.debug(f"Passage à confirm_exit depuis pause_menu")
|
|
||||||
elif config.selected_option == 8: # Symlink option
|
|
||||||
from symlink_settings import set_symlink_option, get_symlink_option
|
from symlink_settings import set_symlink_option, get_symlink_option
|
||||||
current_status = get_symlink_option()
|
current_status = get_symlink_option()
|
||||||
success, message = set_symlink_option(not current_status)
|
success, message = set_symlink_option(not current_status)
|
||||||
@@ -888,6 +882,12 @@ def handle_controls(event, sources, joystick, screen):
|
|||||||
config.popup_timer = 3000 if success else 5000
|
config.popup_timer = 3000 if success else 5000
|
||||||
config.needs_redraw = True
|
config.needs_redraw = True
|
||||||
logger.info(f"Symlink option {'activée' if not current_status else 'désactivée'} via menu pause")
|
logger.info(f"Symlink option {'activée' if not current_status else 'désactivée'} via menu pause")
|
||||||
|
elif config.selected_option == 8: # Quit
|
||||||
|
config.previous_menu_state = validate_menu_state(config.previous_menu_state)
|
||||||
|
config.menu_state = "confirm_exit"
|
||||||
|
config.confirm_selection = 0
|
||||||
|
config.needs_redraw = True
|
||||||
|
logger.debug(f"Passage à confirm_exit depuis pause_menu")
|
||||||
elif is_input_matched(event, "cancel"):
|
elif is_input_matched(event, "cancel"):
|
||||||
config.menu_state = validate_menu_state(config.previous_menu_state)
|
config.menu_state = validate_menu_state(config.previous_menu_state)
|
||||||
config.needs_redraw = True
|
config.needs_redraw = True
|
||||||
|
|||||||
@@ -1229,8 +1229,8 @@ def draw_pause_menu(screen, selected_option):
|
|||||||
_("menu_accessibility"),
|
_("menu_accessibility"),
|
||||||
_("menu_redownload_cache"),
|
_("menu_redownload_cache"),
|
||||||
music_option, # Ici l'option dynamique
|
music_option, # Ici l'option dynamique
|
||||||
_("menu_quit"),
|
symlink_option,
|
||||||
symlink_option
|
_("menu_quit")
|
||||||
]
|
]
|
||||||
|
|
||||||
menu_width = int(config.screen_width * 0.8)
|
menu_width = int(config.screen_width * 0.8)
|
||||||
|
|||||||
Reference in New Issue
Block a user