Lots of localization setup, added controller BBCode stuff also.
This commit is contained in:
@@ -15,15 +15,19 @@ func start() -> void:
|
||||
if !showText:
|
||||
return
|
||||
|
||||
var text:String = "";
|
||||
var textKey:String
|
||||
match getType:
|
||||
GetType.FOUND:
|
||||
text = "Found " + str(quantity) + " " + ITEM.getItemName(itemType, quantity) + ".";
|
||||
textKey = "event.get_item.found"
|
||||
GetType.GIVEN:
|
||||
text = "Received " + str(quantity) + " " + ITEM.getItemName(itemType, quantity) + ".";
|
||||
textKey = "event.get_item.given"
|
||||
_:
|
||||
pass
|
||||
VN.getTextbox().setText(text);
|
||||
|
||||
VN.getTextbox().setText(tr_n(textKey, textKey + "_plural", quantity).format({
|
||||
"item": ITEM.getItemName(itemType, quantity),
|
||||
"quantity": quantity
|
||||
}));
|
||||
|
||||
func isDone() -> bool:
|
||||
if !super.isDone():
|
||||
|
Reference in New Issue
Block a user