Changed all translation to use new TransContext
This commit is contained in:
@@ -7,7 +7,8 @@ enum ItemSortType {
|
||||
|
||||
class ItemStackNameComparator:
|
||||
static func _sort(a, b):
|
||||
return ITEM.getItemName(a).to_lower() < ITEM.getItemName(b).to_lower()
|
||||
assert(false, "Going to change implementation of this later.")
|
||||
# return ITEM.getItemName(a).to_lower() < ITEM.getItemName(b).to_lower()
|
||||
|
||||
class ItemStackTypeComparator:
|
||||
static func _sort(a, b):
|
||||
|
@@ -28,7 +28,7 @@ static func getCategoryTitleKey(cat:Category) -> String:
|
||||
@export var category:Category = Category.INGREDIENT
|
||||
@export var stackable:bool = true
|
||||
|
||||
func getTranslationContext() -> TransContext:
|
||||
func getTransContext() -> TransContext:
|
||||
var ctx:TransContext = TransContext.new()
|
||||
ctx.addTransPlural("title", title)
|
||||
ctx.addTrans("description", description_text)
|
||||
|
@@ -1,4 +1,4 @@
|
||||
class_name ItemResource extends Resource
|
||||
|
||||
@export var itemType:Item.Type = Item.Type.ONION;
|
||||
@export var count:int = 1;
|
||||
@export var quantity:int = 1;
|
Reference in New Issue
Block a user