modular-avatar/Editor/Inspector/Parameters/ParametersMainUI.uxml

38 lines
1.4 KiB
Plaintext
Raw Normal View History

<?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>