mirror of
https://gitlab.com/open-fpsz/open-fpsz.git
synced 2026-07-13 07:25:06 +00:00
⚡️ Headless optimizations
This commit is contained in:
parent
4157ae7ba5
commit
bc5aa8a41f
8 changed files with 48 additions and 49 deletions
|
|
@ -31,12 +31,14 @@ func _on_multiplayer_pressed() -> void:
|
|||
$SettingsPanelContainer.hide()
|
||||
$MainPanelContainer.hide()
|
||||
$MultiplayerPanelContainer.show()
|
||||
show()
|
||||
|
||||
func _on_settings_pressed() -> void:
|
||||
$MultiplayerPanelContainer.hide()
|
||||
$MultiplayerPanelContainer.tab_container.current_tab = 0
|
||||
$SettingsPanelContainer.show()
|
||||
$MainPanelContainer.hide()
|
||||
show()
|
||||
|
||||
func _on_quit_pressed() -> void:
|
||||
get_tree().quit()
|
||||
|
|
@ -46,6 +48,7 @@ func _on_main_menu_pressed() -> void:
|
|||
$MultiplayerPanelContainer.tab_container.current_tab = 0
|
||||
$SettingsPanelContainer.hide()
|
||||
$MainPanelContainer.show()
|
||||
show()
|
||||
"
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_krqeq"]
|
||||
|
|
@ -81,7 +84,6 @@ signal join_server(host : String, port : int)
|
|||
|
||||
@onready var modal : Control = $Modal
|
||||
@onready var menu : CanvasLayer = get_parent()
|
||||
@onready var game : Node3D = get_tree().current_scene.get_node(\"/root/Game\")
|
||||
@onready var map_selector : OptionButton = %MapSelector
|
||||
|
||||
@export var tab_container : TabContainer
|
||||
|
|
@ -94,7 +96,7 @@ func _ready() -> void:
|
|||
call_deferred(\"_populate_map_selector\")
|
||||
|
||||
func _populate_map_selector() -> void:
|
||||
for map : PackedScene in game.maps:
|
||||
for map : PackedScene in MapsManager.maps:
|
||||
var map_name : String = map._bundled.names[0]
|
||||
map_selector.add_item(map_name)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue