Implemented categories for ESSData. Also changed some of the label texts to accommodate.

This commit is contained in:
Relintai 2019-12-04 19:58:13 +01:00
parent 367b2318da
commit a7549c6fea

View File

@ -19,12 +19,13 @@ var _folders : Array = [
{ {
"folder": base_folder + "entity_resources/", "folder": base_folder + "entity_resources/",
"type": "EntityResourceData", "type": "EntityResourceData",
"name": "Entity Resources" "name": "Resources",
"header": "Entities"
}, },
{ {
"folder": base_folder + "entity_skills/", "folder": base_folder + "entity_skills/",
"type": "EntitySkillData", "type": "EntitySkillData",
"name": "Entity Skills" "name": "Skills"
}, },
{ {
"folder": base_folder + "spells/", "folder": base_folder + "spells/",
@ -54,22 +55,22 @@ var _folders : Array = [
{ {
"folder": base_folder + "item_visuals/", "folder": base_folder + "item_visuals/",
"type": "ItemVisual", "type": "ItemVisual",
"name": "ItemVisuals" "name": "Item Visuals"
}, },
{ {
"folder": base_folder + "character_models/", "folder": base_folder + "character_models/",
"type": "MeshDataResource", "type": "MeshDataResource",
"name": "Character Models" "name": "Models"
}, },
{ {
"folder": base_folder + "character_specs/", "folder": base_folder + "character_specs/",
"type": "CharacterSpec", "type": "CharacterSpec",
"name": "Character Specs" "name": "Specs"
}, },
{ {
"folder": base_folder + "character_textures/", "folder": base_folder + "character_textures/",
"type": "Texture", "type": "Texture",
"name": "Character Textures" "name": "Textures"
}, },
{ {
"folder": base_folder + "effect_data/", "folder": base_folder + "effect_data/",
@ -89,7 +90,7 @@ var _folders : Array = [
{ {
"folder": base_folder + "entity_classes/", "folder": base_folder + "entity_classes/",
"type": "EntityClassData", "type": "EntityClassData",
"name": "Entity Classes" "name": "Classes"
}, },
{ {
"folder": base_folder + "ai/", "folder": base_folder + "ai/",
@ -99,7 +100,8 @@ var _folders : Array = [
{ {
"folder": base_folder + "planets/", "folder": base_folder + "planets/",
"type": "PropDataEntry", "type": "PropDataEntry",
"name": "Planets" "name": "Planets",
"header": "World"
}, },
{ {
"folder": base_folder + "biomes/", "folder": base_folder + "biomes/",
@ -129,7 +131,8 @@ var _folders : Array = [
{ {
"folder": base_folder + "ships/", "folder": base_folder + "ships/",
"type": "PropData", "type": "PropData",
"name": "Ships" "name": "Ships",
"header": "Ships"
}, },
{ {
"folder": base_folder + "ship_parts/", "folder": base_folder + "ship_parts/",
@ -139,7 +142,8 @@ var _folders : Array = [
{ {
"folder": base_folder + "props/", "folder": base_folder + "props/",
"type": "PropData", "type": "PropData",
"name": "Props" "name": "Props",
"header": "Props"
}, },
{ {
"folder": base_folder + "prop_models/", "folder": base_folder + "prop_models/",
@ -149,47 +153,50 @@ var _folders : Array = [
{ {
"folder": base_folder + "spell_effects/enchanter/", "folder": base_folder + "spell_effects/enchanter/",
"type": "Spatial", "type": "Spatial",
"name": "Spell Effects -> Enchanter" "name": "Enchanter",
"header": "Spell Effects"
}, },
{ {
"folder": base_folder + "spell_effects/nature/", "folder": base_folder + "spell_effects/nature/",
"type": "Spatial", "type": "Spatial",
"name": "Spell Effects -> Nature" "name": "Nature"
}, },
{ {
"folder": base_folder + "spell_effects/textures/", "folder": base_folder + "spell_effects/textures/",
"type": "Texture", "type": "Texture",
"name": "Spell Effects -> Textures" "name": "Textures"
}, },
{ {
"folder": base_folder + "icons/", "folder": base_folder + "icons/",
"type": "Texture", "type": "Texture",
"name": "Icons" "name": "Icons",
"header": "Icons"
}, },
{ {
"folder": base_folder + "icons/items/", "folder": base_folder + "icons/items/",
"type": "Texture", "type": "Texture",
"name": "Icons -> Items" "name": "Items"
}, },
{ {
"folder": base_folder + "icons/naturalist/", "folder": base_folder + "icons/naturalist/",
"type": "Texture", "type": "Texture",
"name": "Icons -> Naturalist" "name": "Naturalist"
}, },
{ {
"folder": base_folder + "environments/", "folder": base_folder + "environments/",
"type": "Environment", "type": "Environment",
"name": "Environments" "name": "Environments",
"header": "Materials"
}, },
{ {
"folder": base_folder + "materials/", "folder": base_folder + "materials/",
"type": "Material", "type": "Material",
"name": "Materials" "name": "Materials",
}, },
{ {
"folder": base_folder + "models/", "folder": base_folder + "models/",
"type": "CharacterSkeleton", "type": "CharacterSkeleton",
"name": "CharacterModels" "name": "Character Models"
}, },
{ {
"folder": base_folder + "fonts/", "folder": base_folder + "fonts/",
@ -204,7 +211,8 @@ var _folders : Array = [
{ {
"folder": base_folder + "voxel_libraries/", "folder": base_folder + "voxel_libraries/",
"type": "VoxelmanLibrary", "type": "VoxelmanLibrary",
"name": "Voxel Libraries" "name": "Voxel Libraries",
"header": "Voxel"
}, },
{ {
"folder": base_folder + "voxel_surfaces/", "folder": base_folder + "voxel_surfaces/",
@ -219,12 +227,14 @@ var _folders : Array = [
{ {
"folder": base_folder + "xp/", "folder": base_folder + "xp/",
"type": "XPData", "type": "XPData",
"name": "XP Data" "name": "XP",
"header": "XP"
}, },
{ {
"folder": base_folder + "cursors/", "folder": base_folder + "cursors/",
"type": "Texture", "type": "Texture",
"name": "Cursors" "name": "Cursors",
"header": "Cursors"
}, },
] ]
@ -243,6 +253,14 @@ func _ready():
var index = 0 var index = 0
for f in _folders: for f in _folders:
if f.has("header"):
var h : Label = Label.new()
_folder_entry_container.add_child(h)
h.owner = _folder_entry_container
h.text = f["header"]
var fe : Node = folder_entry_button_scene.instance() var fe : Node = folder_entry_button_scene.instance()
_folder_entry_container.add_child(fe) _folder_entry_container.add_child(fe)