diff --git a/Bloxstrap/Resources/CustomBootstrapperSchema.json b/Bloxstrap/Resources/CustomBootstrapperSchema.json index 9f1dc39..20acae8 100644 --- a/Bloxstrap/Resources/CustomBootstrapperSchema.json +++ b/Bloxstrap/Resources/CustomBootstrapperSchema.json @@ -89,7 +89,7 @@ "Attributes": { "Stretch": "Stretch", "StretchDirection": "StretchDirection", - "Source": "string", + "Source": "ImageSource", "IsAnimated": "bool" } }, @@ -138,7 +138,7 @@ "ViewportUnits": "BrushMappingMode", "Viewbox": "Rect", "Viewport": "Rect", - "ImageSource": "Source" + "ImageSource": "ImageSource" } } }, @@ -156,6 +156,7 @@ "Rect": {}, "Brush": {}, "Content": {}, + "ImageSource": {}, "Visibility": { "Values": [ "Visible", diff --git a/Bloxstrap/UI/Elements/Editor/BootstrapperEditorWindow.xaml.cs b/Bloxstrap/UI/Elements/Editor/BootstrapperEditorWindow.xaml.cs index 4b4171d..be25cc6 100644 --- a/Bloxstrap/UI/Elements/Editor/BootstrapperEditorWindow.xaml.cs +++ b/Bloxstrap/UI/Elements/Editor/BootstrapperEditorWindow.xaml.cs @@ -328,6 +328,9 @@ namespace Bloxstrap.UI.Elements.Editor private void OpenTypeValueAutoComplete(string typeName) { + if (CustomBootstrapperSchema.Types.ContainsKey(typeName)) + throw new Exception($"Schema for type {typeName} is missing. Blame Matt!"); + var typeValues = CustomBootstrapperSchema.Types[typeName].Values; if (typeValues == null) return;