[2.0.76] Hidden quickbar shows incorrect selected quickbar when shown in response to its rotation
Posted: Sun Apr 19, 2026 9:25 pm
When handler of a custom-input with linked_game_control = "rotate-active-quick-bars" shows the quickbar, previously hidden using player.game_view_settings.show_quickbar = false, the displayed selected quickbar page is incorrect.
Steps:
0. (Use the attached mod for ease of demonstration)
1. Add custom-input with linked_game_control = "rotate-active-quick-bars" (as in the attached demo mod).
2. Implement event handler of the custom input to show quickbar: game.get_player(event.player_index).game_view_settings.show_quickbar = true.
3. Start new Freeplay game. (Expected: selected quickbar is #1)
4. Hide quickbar using /c game.players[1].game_view_settings.show_quickbar = false (Or with Alt + H hotkey provided by the attached demo mod).
5. Press "Rotate active quickbars" hotkey.
Expected: quickbar shows quickbar #2 as selected.
Actual: quickbar shows quickbar #1 as selected.
6. Again hide quickbar (using console or attached demo mod hotkey) and then show it back.
Actual: quickbar correctly shows quickbar #2 as selected.
Use case:
I'm making a mod that hides quickbar most of the time and only temporarily shows it when related hotkeys are pressed, so that player can see the effect of his actions.
Steps:
0. (Use the attached mod for ease of demonstration)
1. Add custom-input with linked_game_control = "rotate-active-quick-bars" (as in the attached demo mod).
2. Implement event handler of the custom input to show quickbar: game.get_player(event.player_index).game_view_settings.show_quickbar = true.
3. Start new Freeplay game. (Expected: selected quickbar is #1)
4. Hide quickbar using /c game.players[1].game_view_settings.show_quickbar = false (Or with Alt + H hotkey provided by the attached demo mod).
5. Press "Rotate active quickbars" hotkey.
Expected: quickbar shows quickbar #2 as selected.
Actual: quickbar shows quickbar #1 as selected.
6. Again hide quickbar (using console or attached demo mod hotkey) and then show it back.
Actual: quickbar correctly shows quickbar #2 as selected.
Use case:
I'm making a mod that hides quickbar most of the time and only temporarily shows it when related hotkeys are pressed, so that player can see the effect of his actions.