fixed camera script and restructured ui folder
This commit is contained in:
parent
877ebafc74
commit
5748d34b34
32 changed files with 781 additions and 162 deletions
15
ui/ui.gd
15
ui/ui.gd
|
|
@ -5,12 +5,12 @@ extends Node
|
|||
signal on_new_game_started
|
||||
signal on_game_continued
|
||||
|
||||
@onready var root: CanvasLayer = $/root/Game/UI
|
||||
@onready var main_menu: Control = $/root/Game/UI/MainMenu
|
||||
@onready var ingame_controls: MarginContainer = $/root/Game/UI/IngameControls
|
||||
@onready var ingame_menu: Control = $/root/Game/UI/IngameMenu
|
||||
@onready var camera_control_area : Control = $/root/Game/UI/CameraControlArea
|
||||
@onready var save_ui : Control = $/root/Game/UI/SaveUI
|
||||
@onready var main_menu: Control = $MainMenu
|
||||
@onready var ingame_controls: Control = $IngameControls
|
||||
@onready var ingame_menu: Control = $IngameMenu
|
||||
@onready var camera_control_area : Control = $CameraControlArea
|
||||
@onready var save_ui : Control = $SaveUI
|
||||
@onready var battle_ui : Control = $BattleUI
|
||||
|
||||
func _ready() -> void:
|
||||
main_menu.connect("on_game_continued", _on_main_menu_on_game_continued)
|
||||
|
|
@ -30,6 +30,9 @@ func show_main_menu(p_visible = true) -> void:
|
|||
func show_ingame_controls(p_visible = true) -> void:
|
||||
ingame_controls.visible = p_visible
|
||||
|
||||
func show_battle_ui(p_visible = true) -> void:
|
||||
battle_ui.visible = p_visible
|
||||
|
||||
func _on_ingame_controls_menu_button_clicked() -> void:
|
||||
ingame_menu.visible = true
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue