fixes
This commit is contained in:
parent
a9efa66b09
commit
b2553b4cf2
2 changed files with 3 additions and 1 deletions
|
@ -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()
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue