mirror of
https://github.com/Relintai/broken_seals_2ds.git
synced 2024-11-11 08:42:08 +01:00
Updated and enabled the data manager addon.
This commit is contained in:
parent
425709a7a7
commit
5bd643a22c
@ -27,12 +27,14 @@ func folder_get_name(index : int) -> String:
|
|||||||
func folder_get_type(index : int) -> String:
|
func folder_get_type(index : int) -> String:
|
||||||
return folders[index].type
|
return folders[index].type
|
||||||
|
|
||||||
func _get(property):
|
func _get(property : StringName):
|
||||||
if property == "folder_count":
|
var sprop : String = property
|
||||||
|
|
||||||
|
if sprop == "folder_count":
|
||||||
return folders.size()
|
return folders.size()
|
||||||
|
|
||||||
if property.begins_with("folders/"):
|
if sprop.begins_with("folders/"):
|
||||||
var sindex : String = property.get_slice("/", 1)
|
var sindex : String = sprop.get_slice("/", 1)
|
||||||
|
|
||||||
if sindex == "":
|
if sindex == "":
|
||||||
return null
|
return null
|
||||||
@ -42,7 +44,7 @@ func _get(property):
|
|||||||
if index < 0 || index >= folders.size():
|
if index < 0 || index >= folders.size():
|
||||||
return null
|
return null
|
||||||
|
|
||||||
var p : String = property.get_slice("/", 2)
|
var p : String = sprop.get_slice("/", 2)
|
||||||
|
|
||||||
if p == "folder":
|
if p == "folder":
|
||||||
return folders[index].folder
|
return folders[index].folder
|
||||||
@ -57,16 +59,18 @@ func _get(property):
|
|||||||
|
|
||||||
return null
|
return null
|
||||||
|
|
||||||
func _set(property, val):
|
func _set(property : StringName, val) -> bool:
|
||||||
|
var sprop : String = property
|
||||||
|
|
||||||
if property == "folder_count":
|
if property == "folder_count":
|
||||||
set_folder_count(val)
|
set_folder_count(val)
|
||||||
return true
|
return true
|
||||||
|
|
||||||
if property.begins_with("folders/"):
|
if sprop.begins_with("folders/"):
|
||||||
var sindex : String = property.get_slice("/", 1)
|
var sindex : String = sprop.get_slice("/", 1)
|
||||||
|
|
||||||
if sindex == "":
|
if sindex == "":
|
||||||
return null
|
return false
|
||||||
|
|
||||||
var index : int = sindex.to_int()
|
var index : int = sindex.to_int()
|
||||||
|
|
||||||
@ -76,7 +80,7 @@ func _set(property, val):
|
|||||||
if index >= folders.size():
|
if index >= folders.size():
|
||||||
return false
|
return false
|
||||||
|
|
||||||
var p : String = property.get_slice("/", 2)
|
var p : String = sprop.get_slice("/", 2)
|
||||||
|
|
||||||
if p == "folder":
|
if p == "folder":
|
||||||
folders[index].folder = val
|
folders[index].folder = val
|
||||||
|
@ -29,11 +29,6 @@ _global_script_classes=[ {
|
|||||||
"language": @"GDScript",
|
"language": @"GDScript",
|
||||||
"path": "res://player/CharacterSkeleton2DGD.gd"
|
"path": "res://player/CharacterSkeleton2DGD.gd"
|
||||||
}, {
|
}, {
|
||||||
"base": "ColorRect",
|
|
||||||
"class": @"ColorTile",
|
|
||||||
"language": @"GDScript",
|
|
||||||
"path": "res://addons/color-palette/ColorTile.gd"
|
|
||||||
}, {
|
|
||||||
"base": "Resource",
|
"base": "Resource",
|
||||||
"class": @"Continent",
|
"class": @"Continent",
|
||||||
"language": @"GDScript",
|
"language": @"GDScript",
|
||||||
@ -54,11 +49,6 @@ _global_script_classes=[ {
|
|||||||
"language": @"GDScript",
|
"language": @"GDScript",
|
||||||
"path": "res://scripts/entities/EntityDataGD.gd"
|
"path": "res://scripts/entities/EntityDataGD.gd"
|
||||||
}, {
|
}, {
|
||||||
"base": "Container",
|
|
||||||
"class": @"FlexGridContainer",
|
|
||||||
"language": @"GDScript",
|
|
||||||
"path": "res://addons/color-palette/utilities/FlexGridContainer.gd"
|
|
||||||
}, {
|
|
||||||
"base": "Resource",
|
"base": "Resource",
|
||||||
"class": @"GameModule",
|
"class": @"GameModule",
|
||||||
"language": @"GDScript",
|
"language": @"GDScript",
|
||||||
@ -119,16 +109,6 @@ _global_script_classes=[ {
|
|||||||
"language": @"GDScript",
|
"language": @"GDScript",
|
||||||
"path": "res://player/NetworkedPlayer.gd"
|
"path": "res://player/NetworkedPlayer.gd"
|
||||||
}, {
|
}, {
|
||||||
"base": "Reference",
|
|
||||||
"class": @"Palette",
|
|
||||||
"language": @"GDScript",
|
|
||||||
"path": "res://addons/color-palette/Palette.gd"
|
|
||||||
}, {
|
|
||||||
"base": "Reference",
|
|
||||||
"class": @"PaletteImporter",
|
|
||||||
"language": @"GDScript",
|
|
||||||
"path": "res://addons/color-palette/PaletteImporter.gd"
|
|
||||||
}, {
|
|
||||||
"base": "",
|
"base": "",
|
||||||
"class": @"PlayerGD",
|
"class": @"PlayerGD",
|
||||||
"language": @"GDScript",
|
"language": @"GDScript",
|
||||||
@ -190,42 +170,38 @@ _global_script_classes=[ {
|
|||||||
"path": "res://addons/world_generator/resources/zone.gd"
|
"path": "res://addons/world_generator/resources/zone.gd"
|
||||||
} ]
|
} ]
|
||||||
_global_script_class_icons={
|
_global_script_class_icons={
|
||||||
@"LayeredTextureMaker": "",
|
|
||||||
@"Palette": "",
|
|
||||||
@"CharacterAtlas2D": "",
|
|
||||||
@"CharacterSkeketonAttachPoint": "",
|
|
||||||
@"FlexGridContainer": "res://addons/color-palette/utilities/FlexGridContainerIcon.png",
|
|
||||||
@"GameModule": "",
|
|
||||||
@"PlayerGD": "",
|
|
||||||
@"WorldGeneratorSettings": "",
|
|
||||||
@"ItemVisual2D": "",
|
|
||||||
@"MobGD": "",
|
|
||||||
@"PaletteImporter": "",
|
|
||||||
@"PlayerMaster": "",
|
|
||||||
@"SpeedResource": "",
|
|
||||||
@"CharacterAtlasEntry2D": "",
|
@"CharacterAtlasEntry2D": "",
|
||||||
@"Continent": "",
|
@"Continent": "",
|
||||||
@"EntityAIGD": "",
|
@"EntityAIGD": "",
|
||||||
@"EntityDataGD": "",
|
@"EntityDataGD": "",
|
||||||
@"WorldGenWorld": "",
|
@"WorldGenWorld": "",
|
||||||
@"CharacterSkeleton2DGD": "",
|
@"ItemVisual2D": "",
|
||||||
@"ItemVisualEntry2D": "",
|
@"MobGD": "",
|
||||||
@"NetworkedPlayerGD": "",
|
@"PlayerMaster": "",
|
||||||
@"SpellEffectVisualBasic": "",
|
@"SpeedResource": "",
|
||||||
@"SpellGD": "",
|
@"CharacterAtlas2D": "",
|
||||||
@"UIWindowModule": "",
|
@"CharacterSkeketonAttachPoint": "",
|
||||||
@"Zone": "",
|
@"GameModule": "",
|
||||||
@"ColorTile": "",
|
@"PlayerGD": "",
|
||||||
|
@"WorldGeneratorSettings": "",
|
||||||
|
@"LayeredTextureMaker": "",
|
||||||
|
@"HumanoidCharacterBones2D": "",
|
||||||
|
@"DisplayPlayerGD": "",
|
||||||
|
@"HealthResource": "",
|
||||||
|
@"ItemTemplateGD": "",
|
||||||
|
@"SubZone": "",
|
||||||
@"Main": "",
|
@"Main": "",
|
||||||
@"ManaResource": "",
|
@"ManaResource": "",
|
||||||
@"Menu": "",
|
@"Menu": "",
|
||||||
@"UIGuiChildModule": "",
|
@"UIGuiChildModule": "",
|
||||||
@"WorldGenBaseResource": "",
|
@"WorldGenBaseResource": "",
|
||||||
@"DisplayPlayerGD": "",
|
@"UIWindowModule": "",
|
||||||
@"HealthResource": "",
|
@"Zone": "",
|
||||||
@"ItemTemplateGD": "",
|
@"CharacterSkeleton2DGD": "",
|
||||||
@"SubZone": "",
|
@"ItemVisualEntry2D": "",
|
||||||
@"HumanoidCharacterBones2D": ""
|
@"NetworkedPlayerGD": "",
|
||||||
|
@"SpellEffectVisualBasic": "",
|
||||||
|
@"SpellGD": ""
|
||||||
}
|
}
|
||||||
Node="input/actionbar_5_11"
|
Node="input/actionbar_5_11"
|
||||||
|
|
||||||
@ -269,7 +245,7 @@ window/size/ui_scale_touch=1.0
|
|||||||
|
|
||||||
[editor_plugins]
|
[editor_plugins]
|
||||||
|
|
||||||
enabled=PoolStringArray( "res://addons/color-palette/plugin.cfg", "res://addons/tile_generator/plugin.cfg", "res://addons/world_generator/plugin.cfg" )
|
enabled=PoolStringArray( "res://addons/data_manager/plugin.cfg", "res://addons/tile_generator/plugin.cfg", "res://addons/world_generator/plugin.cfg" )
|
||||||
|
|
||||||
[ess]
|
[ess]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user