mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-11-26 09:06:22 +03:00
Draw HEAD under terminal popup
This commit is contained in:
parent
c343546473
commit
6b612c083d
@ -99,6 +99,9 @@ func load_level(level_id):
|
|||||||
yield(t, "timeout")
|
yield(t, "timeout")
|
||||||
AudioServer.set_bus_mute(AudioServer.get_bus_index("Master"), false)
|
AudioServer.set_bus_mute(AudioServer.get_bus_index("Master"), false)
|
||||||
# FIXME: Need to clean these up when switching levels somehow.
|
# FIXME: Need to clean these up when switching levels somehow.
|
||||||
|
|
||||||
|
chapter_select.select(current_chapter)
|
||||||
|
level_select.select(current_level)
|
||||||
|
|
||||||
func reload_level():
|
func reload_level():
|
||||||
levels.reload()
|
levels.reload()
|
||||||
@ -119,7 +122,7 @@ func repopulate_levels():
|
|||||||
levels.reload()
|
levels.reload()
|
||||||
level_select.clear()
|
level_select.clear()
|
||||||
for level in levels.chapters[current_chapter].levels:
|
for level in levels.chapters[current_chapter].levels:
|
||||||
level_select.add_item(level.slug)
|
level_select.add_item(level.title)
|
||||||
level_select.select(current_level)
|
level_select.select(current_level)
|
||||||
|
|
||||||
func repopulate_chapters():
|
func repopulate_chapters():
|
||||||
|
@ -73,6 +73,7 @@ func type_set(new_type):
|
|||||||
file_browser.title = "Commit"
|
file_browser.title = "Commit"
|
||||||
if type != "ref":
|
if type != "ref":
|
||||||
$ID.text = $ID.text.substr(0,8)
|
$ID.text = $ID.text.substr(0,8)
|
||||||
|
z_index = -1
|
||||||
match new_type:
|
match new_type:
|
||||||
"blob":
|
"blob":
|
||||||
$Sprite.texture = preload("res://nodes/blob.svg")
|
$Sprite.texture = preload("res://nodes/blob.svg")
|
||||||
@ -88,7 +89,7 @@ func type_set(new_type):
|
|||||||
"head":
|
"head":
|
||||||
$Sprite.texture = preload("res://nodes/head.svg")
|
$Sprite.texture = preload("res://nodes/head.svg")
|
||||||
id_always_visible = false
|
id_always_visible = false
|
||||||
z_index = 1
|
z_index = 0
|
||||||
if id_always_visible:
|
if id_always_visible:
|
||||||
$ID.show()
|
$ID.show()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user