Feat/2 weapons foundation #6

Merged
Dotts merged 30 commits from feat/2-weapons-foundation into main 2026-06-04 22:22:16 -07:00
Showing only changes of commit f2afd31415 - Show all commits
+10 -4
View File
@@ -53,10 +53,13 @@ func _build_ui() -> void:
add_child(bg) add_child(bg)
# Main Menu # 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 = VBoxContainer.new()
main_vbox.set_anchors_preset(Control.PRESET_CENTER)
main_vbox.add_theme_constant_override("separation", 20) main_vbox.add_theme_constant_override("separation", 20)
bg.add_child(main_vbox) main_center.add_child(main_vbox)
var title = Label.new() var title = Label.new()
title.text = "PAUSED" title.text = "PAUSED"
@@ -84,10 +87,13 @@ func _build_ui() -> void:
loadout_editor.set_anchors_preset(Control.PRESET_FULL_RECT) loadout_editor.set_anchors_preset(Control.PRESET_FULL_RECT)
bg.add_child(loadout_editor) 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() var editor_hbox = HBoxContainer.new()
editor_hbox.set_anchors_preset(Control.PRESET_CENTER)
editor_hbox.add_theme_constant_override("separation", 40) editor_hbox.add_theme_constant_override("separation", 40)
loadout_editor.add_child(editor_hbox) editor_center.add_child(editor_hbox)
# Loadout List # Loadout List
var left_vbox = VBoxContainer.new() var left_vbox = VBoxContainer.new()