feat: implement pause menu with loadout management functionality
This commit is contained in:
+10
-4
@@ -53,10 +53,13 @@ func _build_ui() -> void:
|
||||
add_child(bg)
|
||||
|
||||
# Main Menu
|
||||
var main_center = CenterContainer.new()
|
||||
main_center.set_anchors_preset(Control.PRESET_FULL_RECT)
|
||||
bg.add_child(main_center)
|
||||
|
||||
main_vbox = VBoxContainer.new()
|
||||
main_vbox.set_anchors_preset(Control.PRESET_CENTER)
|
||||
main_vbox.add_theme_constant_override("separation", 20)
|
||||
bg.add_child(main_vbox)
|
||||
main_center.add_child(main_vbox)
|
||||
|
||||
var title = Label.new()
|
||||
title.text = "PAUSED"
|
||||
@@ -84,10 +87,13 @@ func _build_ui() -> void:
|
||||
loadout_editor.set_anchors_preset(Control.PRESET_FULL_RECT)
|
||||
bg.add_child(loadout_editor)
|
||||
|
||||
var editor_center = CenterContainer.new()
|
||||
editor_center.set_anchors_preset(Control.PRESET_FULL_RECT)
|
||||
loadout_editor.add_child(editor_center)
|
||||
|
||||
var editor_hbox = HBoxContainer.new()
|
||||
editor_hbox.set_anchors_preset(Control.PRESET_CENTER)
|
||||
editor_hbox.add_theme_constant_override("separation", 40)
|
||||
loadout_editor.add_child(editor_hbox)
|
||||
editor_center.add_child(editor_hbox)
|
||||
|
||||
# Loadout List
|
||||
var left_vbox = VBoxContainer.new()
|
||||
|
||||
Reference in New Issue
Block a user