mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-11-22 16:20:19 +01:00
Draw HEAD under terminal popup
This commit is contained in:
parent
c343546473
commit
6b612c083d
2 changed files with 6 additions and 2 deletions
|
@ -100,6 +100,9 @@ func load_level(level_id):
|
||||||
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()
|
||||||
load_level(current_level)
|
load_level(current_level)
|
||||||
|
@ -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 a new issue