init
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
<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&guid=2328868bd9cdc2946a328e88f4b9f71c&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="<b>CustomSettings is missing!</b><br>Drag/Select existing settings of that type or press <b>Generate...</b> to create new one.<br>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="<b>Fix errors and reload domain</b><br>Its possible that unity didn't save your implementation of CustomSettingsSO to cache properly.<br>Fix all code errors and press <b>Reload Domain</b> (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="<b>Create new CustomSettingsSO example</b><br>You didn't create any CustomSettingsSO so far.<br>You can do it by yourself or by clicking <b>Create Example</b>." message-type="Error" />
|
||||
<ui:Button text="Create Example" name="cs-create-example" />
|
||||
</ui:VisualElement>
|
||||
</ui:VisualElement>
|
||||
</ui:UXML>
|
||||
Reference in New Issue
Block a user