diff options
author | Spartan322 <Megacake1234@gmail.com> | 2023-04-22 02:53:42 +0200 |
---|---|---|
committer | Spartan322 <Megacake1234@gmail.com> | 2023-04-24 04:00:50 +0200 |
commit | 2c2ee99cf2d304ec28eed8560860267e95ee9017 (patch) | |
tree | f81561fbcb292709c7a4cd99f463c2e0723e3468 /game/src/GameSession/MapView.gd | |
parent | 40b981ec11818a245603885bddcf5fd1503abf63 (diff) |
Refurbish UI elements
Move GameSession MusicPlayer to below OptionsMenu
Ensures the MusicPlayer appears above the OptionsMenu
Add Save and Quit/Resign to GameSessionMenu resign/quit popup
To allow the player to save and resign/quit more quicker
Remove GameSessionMenu hide on OptionsMenu open
Renamed many UI elements to better reflect their purpose
Add SessionButton theme_type_variation to GameSession buttons
Add SessionButton style similar to TitleButton
Disable 3D for dialog windows
Change _play_pause_display_button pause text to "⏸ "
Change IncreaseSpeedButton text to +
Change DecreaseSpeedButton text to -
Change Minimap NinePatch frame to function like a nine patch
Rename actions map_zoomin and map_zoomout to map_zoom_in and map_zoom_out
Change ProvinceOverviewPanel to a PanelContainer
Reorganize ProvinceOverviewPanel to better use container functionality
Optimize MusicPlayer
Enables one line support for MusicPlayer
Add warning to StyleBoxWithSound to avoid UI elements with toggle functionality
Diffstat (limited to 'game/src/GameSession/MapView.gd')
-rw-r--r-- | game/src/GameSession/MapView.gd | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/game/src/GameSession/MapView.gd b/game/src/GameSession/MapView.gd index ac060e1..510d70a 100644 --- a/game/src/GameSession/MapView.gd +++ b/game/src/GameSession/MapView.gd @@ -7,8 +7,8 @@ const _action_north : StringName = &"map_north" const _action_east : StringName = &"map_east" const _action_south : StringName = &"map_south" const _action_west : StringName = &"map_west" -const _action_zoomin : StringName = &"map_zoomin" -const _action_zoomout : StringName = &"map_zoomout" +const _action_zoom_in : StringName = &"map_zoom_in" +const _action_zoom_out : StringName = &"map_zoom_out" const _action_drag : StringName = &"map_drag" const _action_click : StringName = &"map_click" @@ -165,9 +165,9 @@ func _unhandled_input(event : InputEvent): if not _drag_active: push_warning("Drag being deactivated while already not active!") _drag_active = false - elif event.is_action_pressed(_action_zoomin, true): + elif event.is_action_pressed(_action_zoom_in, true): zoom_in() - elif event.is_action_pressed(_action_zoomout, true): + elif event.is_action_pressed(_action_zoom_out, true): zoom_out() func _physics_process(delta : float): |