diff --git a/eos-edit/App.axaml b/eos-edit/App.axaml index 1b59822..656aa83 100644 --- a/eos-edit/App.axaml +++ b/eos-edit/App.axaml @@ -97,6 +97,9 @@ + + + diff --git a/eos-edit/Assets/CustomDataTemplateResources.axaml b/eos-edit/Assets/CustomDataTemplateResources.axaml index 5425b68..16efd1e 100644 --- a/eos-edit/Assets/CustomDataTemplateResources.axaml +++ b/eos-edit/Assets/CustomDataTemplateResources.axaml @@ -118,18 +118,30 @@ - - + + + + + + + + + + + + + + @@ -170,8 +182,9 @@ CompanionTemplate="{StaticResource companionTemplate}" FamiliarTemplate="{StaticResource familiarTemplate}" CustomObjectTemplate="{StaticResource customObjectVariantTemplate}" - CustomEnumTemplate="{StaticResource customEnumVariantTemplate}" - CustomDynamicTableTemplate="{StaticResource customDynamicTableTemplate}"/> + CustomTableTemplate="{StaticResource customTableVariantTemplate}" + CustomDynamicTableTemplate="{StaticResource customDynamicTableVariantTemplate}" + CustomEnumTemplate="{StaticResource customEnumVariantTemplate}"/> @@ -242,6 +255,7 @@ CompanionTemplate="{StaticResource companionTemplate}" FamiliarTemplate="{StaticResource familiarTemplate}" CustomObjectTemplate="{StaticResource customObjectTemplate}" - CustomEnumTemplate="{StaticResource customEnumTemplate}" - CustomDynamicTableTemplate="{StaticResource customDynamicTableTemplate}"/> + CustomTableTemplate="{StaticResource customTableTemplate}" + CustomDynamicTableTemplate="{StaticResource customDynamicTableTemplate}" + CustomEnumTemplate="{StaticResource customEnumTemplate}"/> diff --git a/eos-edit/Assets/StyleResources.axaml b/eos-edit/Assets/StyleResources.axaml index 0227498..7c1403f 100644 --- a/eos-edit/Assets/StyleResources.axaml +++ b/eos-edit/Assets/StyleResources.axaml @@ -392,6 +392,10 @@ + + diff --git a/eos-edit/Extensions/InstancePropertyValueTemplateSelector.cs b/eos-edit/Extensions/InstancePropertyValueTemplateSelector.cs index 7b81c94..aa3d466 100644 --- a/eos-edit/Extensions/InstancePropertyValueTemplateSelector.cs +++ b/eos-edit/Extensions/InstancePropertyValueTemplateSelector.cs @@ -53,8 +53,9 @@ public class InstancePropertyValueTemplateSelector : IDataTemplate public DataTemplate? DamageTypeTemplate { get; set; } public DataTemplate? DamageTypeGroupTemplate { get; set; } public DataTemplate? CustomObjectTemplate { get; set; } - public DataTemplate? CustomEnumTemplate { get; set; } + public DataTemplate? CustomTableTemplate { get; set; } public DataTemplate? CustomDynamicTableTemplate { get; set; } + public DataTemplate? CustomEnumTemplate { get; set; } public Control? Build(object? param) @@ -149,10 +150,12 @@ public bool Match(object? data) if (dataTypeDef.CustomType is CustomObject customObject) return CustomObjectTemplate ?? ErrorTemplate; - if (dataTypeDef.CustomType is CustomEnum customEnum) - return CustomEnumTemplate ?? ErrorTemplate; + if (dataTypeDef.CustomType is CustomTable customTable) + return CustomTableTemplate ?? ErrorTemplate; if (dataTypeDef.CustomType is CustomDynamicTable customDynTable) return CustomDynamicTableTemplate ?? ErrorTemplate; + if (dataTypeDef.CustomType is CustomEnum customEnum) + return CustomEnumTemplate ?? ErrorTemplate; return ErrorTemplate; } diff --git a/eos-edit/Usercontrols/CustomTableComboBox.axaml b/eos-edit/Usercontrols/CustomTableComboBox.axaml new file mode 100644 index 0000000..221ee3d --- /dev/null +++ b/eos-edit/Usercontrols/CustomTableComboBox.axaml @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + +