diff options
Diffstat (limited to 'apworld/client/pauseMenu.gd')
| -rw-r--r-- | apworld/client/pauseMenu.gd | 19 |
1 files changed, 19 insertions, 0 deletions
| diff --git a/apworld/client/pauseMenu.gd b/apworld/client/pauseMenu.gd index 72b45e8..50a1e99 100644 --- a/apworld/client/pauseMenu.gd +++ b/apworld/client/pauseMenu.gd | |||
| @@ -3,6 +3,7 @@ extends "res://scripts/ui/pauseMenu.gd" | |||
| 3 | var compass_button | 3 | var compass_button |
| 4 | var locations_button | 4 | var locations_button |
| 5 | var minimap_button | 5 | var minimap_button |
| 6 | var prioritize_current_button | ||
| 6 | 7 | ||
| 7 | 8 | ||
| 8 | func _ready(): | 9 | func _ready(): |
| @@ -39,6 +40,15 @@ func _ready(): | |||
| 39 | minimap_button.pressed.connect(_toggle_minimap) | 40 | minimap_button.pressed.connect(_toggle_minimap) |
| 40 | ap_panel.add_child(minimap_button) | 41 | ap_panel.add_child(minimap_button) |
| 41 | 42 | ||
| 43 | prioritize_current_button = CheckBox.new() | ||
| 44 | prioritize_current_button.text = "prioritize locations on current map" | ||
| 45 | prioritize_current_button.button_pressed = ap.prioritize_current_map | ||
| 46 | prioritize_current_button.position = Vector2(65, 400) | ||
| 47 | prioritize_current_button.theme = preload("res://assets/themes/baseUI.tres") | ||
| 48 | prioritize_current_button.add_theme_font_size_override("font_size", 60) | ||
| 49 | prioritize_current_button.pressed.connect(_toggle_prioritize_current) | ||
| 50 | ap_panel.add_child(prioritize_current_button) | ||
| 51 | |||
| 42 | super._ready() | 52 | super._ready() |
| 43 | 53 | ||
| 44 | 54 | ||
| @@ -89,3 +99,12 @@ func _toggle_minimap(): | |||
| 89 | var minimap = get_tree().get_root().get_node("scene/Minimap") | 99 | var minimap = get_tree().get_root().get_node("scene/Minimap") |
| 90 | if minimap != null: | 100 | if minimap != null: |
| 91 | minimap.visible = ap.show_minimap | 101 | minimap.visible = ap.show_minimap |
| 102 | |||
| 103 | |||
| 104 | func _toggle_prioritize_current(): | ||
| 105 | var ap = global.get_node("Archipelago") | ||
| 106 | ap.prioritize_current_map = prioritize_current_button.button_pressed | ||
| 107 | ap.saveSettings() | ||
| 108 | |||
| 109 | var textclient = global.get_node("Textclient") | ||
| 110 | textclient.update_locations() | ||
