modular-avatar/Editor/Inspector/Parameters/ParametersMainUI.uxml
bd_ a3b9acba39
ui: Improvements to MA Parameters editor (#1329)
* Add import-from-asset feature (Closes: #880, #668, #410)
* Limit size of scrollable area to avoid double-scrolling
* Add support for pressing the "delete" key to delete parameters.
2024-11-02 15:17:58 -07:00

38 lines
1.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<UXML
xmlns:ui="UnityEngine.UIElements"
xmlns:editor="UnityEditor.UIElements"
xmlns:ma="nadena.dev.modular_avatar.core.editor"
>
<ui:VisualElement name="ListViewContainer">
<ui:ListView virtualization-method="DynamicHeight"
reorder-mode="Animated"
reorderable="true"
show-add-remove-footer="true"
show-border="true"
show-foldout-header="false"
name="Parameters"
binding-path="parameters"
style="flex-grow: 1;"
/>
</ui:VisualElement>
<ui:Foldout text="merge_parameter.ui.unregistered_foldout" name="UnregisteredFoldout" value="false" class="ndmf-tr">
<!-- The show-add-remove-footer property here somehow also controls the background color
of the ListView UI (???). As such, we turn it on here, to get the right theme background color,
but then hide the actual footer in USS.
-->
<ui:ListView
reorderable="false"
show-add-remove-footer="true"
show-border="true"
show-foldout-header="false"
name="UnregisteredParameters"
style="flex-grow: 1;"
/>
</ui:Foldout>
<editor:ObjectField name="p_import" label="merge_parameter.ui.importFromAsset" class="ndmf-tr"/>
<ma:LanguageSwitcherElement/>
</UXML>