fix some small bugs
This commit is contained in:
parent
8037f4f066
commit
b0733bd367
4 changed files with 27 additions and 16 deletions
|
|
@ -32,12 +32,14 @@ func _on_music_option_item_selected(index: int) -> void:
|
|||
|
||||
func _on_dynamic_option_item_selected(index: int) -> void:
|
||||
GlobalVariables.title_dynamic = index
|
||||
var db = get_node("../../../DynamicBackground")
|
||||
if (index == 0):
|
||||
get_node("../../../BackgroundImage").visible = true
|
||||
get_node("../../../DynamicBackground").visible = false
|
||||
get_node("../../../DynamicBackground").playing = false
|
||||
db.visible = false
|
||||
db.playing = false
|
||||
else:
|
||||
get_node("../../../BackgroundImage").visible = false
|
||||
get_node("../../../DynamicBackground").visible = true
|
||||
get_node("../../../DynamicBackground").playing = true
|
||||
db.visible = true
|
||||
if (db.initted): db.playing = true
|
||||
else: db.init()
|
||||
GlobalVariables.updateConfig()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue