From 3bd637fdd3304b64a18287a49a6b7387acf2f5de Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 21 Dec 2019 02:44:14 +0100 Subject: [PATCH] Removed a few entries from the folders array. --- panels/CreateNamePopup.tscn | 8 +- panels/MainPanel.gd | 228 ------------------------------------ panels/MainPanel.tscn | 1 + 3 files changed, 5 insertions(+), 232 deletions(-) diff --git a/panels/CreateNamePopup.tscn b/panels/CreateNamePopup.tscn index 2d3d32d..613b7ad 100644 --- a/panels/CreateNamePopup.tscn +++ b/panels/CreateNamePopup.tscn @@ -20,10 +20,10 @@ line_edit_path = NodePath("VBoxContainer/LineEdit") option_button_path = NodePath("VBoxContainer/OptionButton") [node name="VBoxContainer" type="VBoxContainer" parent="."] -margin_left = 16.0 -margin_top = 16.0 -margin_right = 475.0 -margin_bottom = 182.0 +margin_left = 8.0 +margin_top = 8.0 +margin_right = 483.0 +margin_bottom = 215.0 size_flags_horizontal = 3 size_flags_vertical = 3 __meta__ = { diff --git a/panels/MainPanel.gd b/panels/MainPanel.gd index 500a911..74f079b 100644 --- a/panels/MainPanel.gd +++ b/panels/MainPanel.gd @@ -16,234 +16,6 @@ var _folder_entry_container : Node var _folders : Array = [ - { - "folder": base_folder + "entity_resources/", - "type": "EntityResourceData", - "name": "Resources", - "header": "Entities" - }, - { - "folder": base_folder + "entity_skills/", - "type": "EntitySkillData", - "name": "Skills" - }, - { - "folder": base_folder + "entities/", - "type": "EntityData", - "name": "Entities" - }, - { - "folder": base_folder + "player_character_data/", - "type": "EntityData", - "name": "Player Characters" - }, - { - "folder": base_folder + "entity_classes/", - "type": "EntityClassData", - "name": "Classes" - }, - { - "folder": base_folder + "ai/", - "type": "AIAction", - "name": "AI" - }, - { - "folder": base_folder + "character_models/", - "type": "MeshDataResource", - "name": "Models", - "header": "Models" - }, - { - "folder": base_folder + "character_textures/", - "type": "Texture", - "name": "Textures" - }, - { - "folder": base_folder + "spells/", - "type": "Spell", - "name": "Spells", - "header": "Spells" - }, - { - "folder": base_folder + "auras/", - "type": "Aura", - "name": "Auras" - }, - { - "folder": base_folder + "aura_groups/", - "type": "AuraGroup", - "name": "Aura Groups" - }, - { - "folder": base_folder + "character_specs/", - "type": "CharacterSpec", - "name": "Specs" - }, - { - "folder": base_folder + "effect_data/", - "type": "SpellEffectVisual", - "name": "Effect Datas" - }, - { - "folder": base_folder + "world_spells/", - "type": "WorldSpellData", - "name": "World Spells" - }, - { - "folder": base_folder + "item_templates/", - "type": "ItemTemplate", - "name": "Items", - "header": "Items" - }, - { - "folder": base_folder + "crafting/", - "type": "CraftRecipe", - "name": "Craft Recipes" - }, - { - "folder": base_folder + "item_visuals/", - "type": "ItemVisual", - "name": "Item Visuals" - }, - { - "folder": base_folder + "planets/", - "type": "PropDataEntry", - "name": "Planets", - "header": "World" - }, - { - "folder": base_folder + "biomes/", - "type": "BiomeData", - "name": "Biomes" - }, - { - "folder": base_folder + "dungeons/", - "type": "DungeonData", - "name": "Dungeons" - }, - { - "folder": base_folder + "dungeon_rooms/", - "type": "DungeonRoomData", - "name": "Dungeon Rooms" - }, - { - "folder": base_folder + "basic_models/", - "type": "MeshDataResource", - "name": "Basic Models" - }, - { - "folder": base_folder + "model_blocks/", - "type": "PropData", - "name": "Model Blocks" - }, - { - "folder": base_folder + "ships/", - "type": "PropData", - "name": "Ships", - "header": "Ships" - }, - { - "folder": base_folder + "ship_parts/", - "type": "PropData", - "name": "Ship Parts" - }, - { - "folder": base_folder + "props/", - "type": "PropData", - "name": "Props", - "header": "Props" - }, - { - "folder": base_folder + "prop_models/", - "type": "PackedScene", - "name": "Prop Models" - }, - { - "folder": base_folder + "spell_effects/enchanter/", - "type": "Spatial", - "name": "Enchanter", - "header": "Spell Effects" - }, - { - "folder": base_folder + "spell_effects/nature/", - "type": "Spatial", - "name": "Nature" - }, - { - "folder": base_folder + "spell_effects/textures/", - "type": "Texture", - "name": "Textures" - }, - { - "folder": base_folder + "icons/", - "type": "Texture", - "name": "Icons", - "header": "Icons" - }, - { - "folder": base_folder + "icons/items/", - "type": "Texture", - "name": "Items" - }, - { - "folder": base_folder + "icons/naturalist/", - "type": "Texture", - "name": "Naturalist" - }, - { - "folder": base_folder + "environments/", - "type": "Environment", - "name": "Environments", - "header": "Materials" - }, - { - "folder": base_folder + "materials/", - "type": "Material", - "name": "Materials", - }, - { - "folder": base_folder + "models/", - "type": "CharacterSkeleton", - "name": "Character Models" - }, - { - "folder": base_folder + "fonts/", - "type": "Font", - "name": "Fonts" - }, - { - "folder": base_folder + "shaders/", - "type": "Shader", - "name": "Shaders" - }, - { - "folder": base_folder + "voxel_libraries/", - "type": "VoxelmanLibrary", - "name": "Voxel Libraries", - "header": "Voxel" - }, - { - "folder": base_folder + "voxel_surfaces/", - "type": "VoxelSurface", - "name": "Voxel Surfaces" - }, - { - "folder": base_folder + "voxel_textures/", - "type": "Texture", - "name": "Voxel Textures" - }, - { - "folder": base_folder + "xp/", - "type": "XPData", - "name": "XP", - "header": "XP" - }, - { - "folder": base_folder + "cursors/", - "type": "Texture", - "name": "Cursors", - "header": "Cursors" - }, ] func _ready(): diff --git a/panels/MainPanel.tscn b/panels/MainPanel.tscn index fc35a0b..97eb444 100644 --- a/panels/MainPanel.tscn +++ b/panels/MainPanel.tscn @@ -15,6 +15,7 @@ __meta__ = { } resource_scene = ExtResource( 2 ) folder_entry_button_scene = ExtResource( 3 ) +base_folder = "res://data/" main_container = NodePath("HSplitContainer/MarginContainer") folder_entry_container_path = NodePath("HSplitContainer/ScrollContainer/VBoxContainer")