This commit is contained in:
Persephone Bubblegum-Holiday 2025-08-18 21:57:03 -07:00
parent a9efa66b09
commit b2553b4cf2
2 changed files with 3 additions and 1 deletions

View file

@ -35,7 +35,9 @@ func _on_dynamic_option_item_selected(index: int) -> void:
if (index == 0): if (index == 0):
get_node("../../../BackgroundImage").visible = true get_node("../../../BackgroundImage").visible = true
get_node("../../../DynamicBackground").visible = false get_node("../../../DynamicBackground").visible = false
get_node("../../../DynamicBackground").playing = false
else: else:
get_node("../../../BackgroundImage").visible = false get_node("../../../BackgroundImage").visible = false
get_node("../../../DynamicBackground").visible = true get_node("../../../DynamicBackground").visible = true
get_node("../../../DynamicBackground").playing = true
GlobalVariables.updateConfig() GlobalVariables.updateConfig()

View file

@ -6,7 +6,7 @@ func _ready():
$VersionLabel.text = "Pneumatic Plaything v%s" % ProjectSettings.get_setting("application/config/version") $VersionLabel.text = "Pneumatic Plaything v%s" % ProjectSettings.get_setting("application/config/version")
var selectedBG = GlobalVariables.background_index[randi() % GlobalVariables.background_index.size()] var selectedBG = GlobalVariables.background_index[randi() % GlobalVariables.background_index.size()]
$BackgroundImage.set_texture(load(selectedBG)) $BackgroundImage.set_texture(load(selectedBG))
$Buttons/EditorButton.grab_focus() $Buttons/FreeRoamButton.grab_focus()
GlobalVariables.loadConfig() GlobalVariables.loadConfig()
$SettingsScreen/DialogPanel/GraphicsPanel/FOVSlider.value = GlobalVariables.FOV $SettingsScreen/DialogPanel/GraphicsPanel/FOVSlider.value = GlobalVariables.FOV