Files
2026-04-25 23:37:10 +02:00

46 lines
3.5 KiB
Plaintext

<ui:UXML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" noNamespaceSchemaLocation="../../../../../UIElementsSchema/UIElements.xsd" editor-extension-mode="True">
<Style src="project://database/Assets/TheVVaS/RPGCoreCommon/Settings/Editor/SettingsEditorWindow.uss?fileID=7433441132597879392&amp;guid=2328868bd9cdc2946a328e88f4b9f71c&amp;type=3#SettingsEditorWindow" />
<RPGCoreCommon.Helpers.UIElements.TwoPaneSplitView fixed-pane-initial-dimension="160">
<ui:ScrollView name="cs-left">
<ui:Foldout text="Foldout" name="Foldout" class="selectable">
<ui:Foldout text="Foldout" class="empty selectable" />
<ui:Foldout text="Foldout" class="empty selectable" />
<ui:Foldout text="Foldout" class="selectable">
<ui:Foldout text="Foldout" class="empty selected selectable" />
<ui:Foldout text="Foldout" class="empty selectable" />
</ui:Foldout>
</ui:Foldout>
<ui:Foldout text="Foldout">
<ui:Foldout text="Foldout">
<ui:Foldout text="Foldout">
<ui:Foldout text="Foldout">
<ui:Foldout text="Foldout" class="selectable">
<ui:Foldout text="Foldout" name="Foldout" class="empty selectable" />
</ui:Foldout>
</ui:Foldout>
</ui:Foldout>
</ui:Foldout>
</ui:Foldout>
</ui:ScrollView>
<ui:VisualElement name="cs-right" style="flex-grow: 1;">
<uie:ObjectField label="Settings file:" name="cs-settings-object" type="RPGCoreCommon.Settings.CustomSettingsSO, RPGCoreCommon.Settings" />
<RPGCoreCommon.Helpers.Editor.UIElements.InspectorElement name="cs-settings-inspector" />
<ui:VisualElement name="cs-missing">
<RPGCoreCommon.Helpers.UIElements.HelpBox message-type="Warning" text="&lt;b&gt;CustomSettings is missing!&lt;/b&gt;&lt;br&gt;Drag/Select existing settings of that type or press &lt;b&gt;Generate...&lt;/b&gt; to create new one.&lt;br&gt;Generated file will be opened with default editor." />
<ui:Button text="Generate..." name="cs-create-missing" />
</ui:VisualElement>
</ui:VisualElement>
</RPGCoreCommon.Helpers.UIElements.TwoPaneSplitView>
<ui:VisualElement name="cs-error">
<ui:Label text="CustomSettings cannot be loaded!" />
<ui:VisualElement class="cs-error-block">
<RPGCoreCommon.Helpers.UIElements.HelpBox text="&lt;b&gt;Fix errors and reload domain&lt;/b&gt;&lt;br&gt;Its possible that unity didn&apos;t save your implementation of CustomSettingsSO to cache properly.&lt;br&gt;Fix all code errors and press &lt;b&gt;Reload Domain&lt;/b&gt; (ctrl + r)." message-type="Error" />
<ui:Button text="Reload Domain" name="cs-reload-domain" />
</ui:VisualElement>
<ui:VisualElement class="cs-error-block">
<RPGCoreCommon.Helpers.UIElements.HelpBox text="&lt;b&gt;Create new CustomSettingsSO example&lt;/b&gt;&lt;br&gt;You didn&apos;t create any CustomSettingsSO so far.&lt;br&gt;You can do it by yourself or by clicking &lt;b&gt;Create Example&lt;/b&gt;." message-type="Error" />
<ui:Button text="Create Example" name="cs-create-example" />
</ui:VisualElement>
</ui:VisualElement>
</ui:UXML>