Locale testing

This commit is contained in:
2025-05-24 23:07:50 -05:00
parent 1bce56231c
commit 1abb9a85f7
10 changed files with 193 additions and 19 deletions

View File

@@ -1,6 +1,6 @@
class_name Recipe extends Node
@export var recipeName:String = ""
@export var recipe_text:String = ""
@export var ingredients:Array[ItemResource] = []
@export var outputs:Array[ItemResource] = []
@@ -26,5 +26,4 @@ func make(inventory:Inventory = null) -> void:
for output in outputs:
inventory.addItem(output.type, output.quantity)
timesMade += 1

View File

@@ -1,5 +1,7 @@
class_name DebugMenu extends VBoxContainer
var whatever:String = tr("SOME_STRING_TRANSLATED")
func _ready() -> void:
show()
@@ -53,9 +55,12 @@ func _on_Quests_pressed():
func _on_Custscene_pressed():
print("Cutscene pressed")
print(whatever)
func _on_Cooking_pressed():
print("Cooking pressed")
TranslatssionServer.change
TranslationServer.set_locale("en_US")
func _on_Battle_pressed():
print("Battle pressed")