mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2025-06-01 19:19:31 +02:00
add some localizations and levels traductions
This commit is contained in:
parent
90574216dc
commit
086922d0c9
8 changed files with 41 additions and 19 deletions
|
@ -1,7 +1,17 @@
|
|||
extends Node2D
|
||||
|
||||
var text setget _set_text
|
||||
var button_texts = ["Got it!", "Interesting!", "Very useful!", "Cool!", "Nice!", "Thanks!", "Whatever...", "Okay!", "Yay!", "Awesome!"]
|
||||
var button_texts = [
|
||||
tr("GOT_IT"),
|
||||
tr("INTERESTING"),
|
||||
tr("VERY_USEFULL"),
|
||||
tr("COOL"),
|
||||
tr("NICE"),
|
||||
tr("THANKS"),
|
||||
tr("WHATEVER"),
|
||||
tr("OKAY"),
|
||||
tr("YAY"),
|
||||
tr("AWESOME") ]
|
||||
|
||||
func _ready():
|
||||
button_texts.shuffle()
|
||||
|
|
|
@ -104,7 +104,7 @@ func command_done(cmd):
|
|||
|
||||
if cmd.output.length() <= 1000:
|
||||
output.text = output.text + "$ " + cmd.command + "\n" + cmd.output
|
||||
game.notify("This is your terminal! All commands are executed here, and you can see their output. You can also type your own commands here!", self, "terminal")
|
||||
game.notify(tr("YOUR_TERMINAL"), self, "terminal")
|
||||
else:
|
||||
$Pager/Text.text = cmd.output
|
||||
$Pager.popup()
|
||||
|
|
|
@ -147,6 +147,7 @@ volume_db = -10.0
|
|||
[node name="OkSound" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource( 2 )
|
||||
volume_db = -5.0
|
||||
|
||||
[connection signal="item_selected" from="Rows/TopHalf/Completions" to="." method="_completion_selected"]
|
||||
[connection signal="pressed" from="Rows/VBoxContainer/Button" to="Rows/VBoxContainer/Button" method="pressed"]
|
||||
[connection signal="pressed" from="Rows/VBoxContainer/Button2" to="Rows/VBoxContainer/Button2" method="pressed"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue