mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2025-06-01 19:19:31 +02:00
reset levels directory without it translations
This commit is contained in:
parent
07d33339cc
commit
e80596219a
208 changed files with 193 additions and 3511 deletions
|
@ -40,7 +40,7 @@ func draw_card(card):
|
|||
new_card.id = card["id"]
|
||||
new_card.command = card["command"]
|
||||
# TODO: Make better game.os_lang + "_" + game.os_lang.to_upper()
|
||||
new_card.description = card["description"][game.os_lang + "_" + game.os_lang.to_upper()]
|
||||
new_card.description = tr(card["description"])
|
||||
new_card.energy = 0 #card.energy
|
||||
new_card.position = Vector2(rect_size.x, rect_size.y*2)
|
||||
add_child(new_card)
|
||||
|
|
|
@ -21,6 +21,7 @@ func load(path):
|
|||
var config = helpers.parse(path)
|
||||
|
||||
title = config.get("title", slug)
|
||||
print(tr(title))
|
||||
description = config.get("description", "(no description)")
|
||||
|
||||
# Surround all lines indented with four spaces with [code] tags.
|
||||
|
@ -42,7 +43,7 @@ func load(path):
|
|||
if cli_hints != "":
|
||||
description[0] = description[0] + "\n\n[color=#787878]"+cli_hints+"[/color]"
|
||||
|
||||
congrats = config.get("congrats", "GOOD_JOB")
|
||||
congrats = config.get("congrats", tr("Good job, you solved the level!\n\nFeel free to try a few more things or click 'Next level'."))
|
||||
cards = Array(config.get("cards", "").split(" "))
|
||||
if cards == [""]:
|
||||
cards = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue