feat: Rewrote inventory handling basing on ESCItems (#417)

Co-authored-by: Dennis Ploeger <develop@dieploegers.de>
This commit is contained in:
Dennis Ploeger
2021-10-21 21:56:25 +02:00
committed by GitHub
parent 0271046421
commit af26521d3d
35 changed files with 245 additions and 336 deletions

View File

@@ -98,6 +98,16 @@ func set_escoria_ui_settings():
"type": TYPE_STRING_ARRAY,
"hint": PROPERTY_HINT_DIR
})
if !ProjectSettings.has_setting("escoria/ui/inventory_item_size"):
ProjectSettings.set_setting(
"escoria/ui/inventory_item_size",
Vector2(72, 72)
)
ProjectSettings.add_property_info({
"name": "escoria/ui/inventory_item_size",
"type": TYPE_VECTOR2
})
# Prepare the settings in the Escoria main category