mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-01-04 13:45:04 +08:00
a3b9acba39
* 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.
38 lines
1.4 KiB
XML
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> |