modular-avatar/Editor/Inspector/Parameters/ParameterConfigDrawer.uxml
nekobako 3be3cfb74a
Refine some UI (#1119)
* feat: warn by color when Shape Changer has an invalid blendshape

* feat: refine reactive components ui layout

* feat: refine ma parameters ui layout
2024-09-13 18:06:45 -07:00

39 lines
2.0 KiB
Plaintext

<ui:UXML xmlns:ui="UnityEngine.UIElements"
xmlns:ma="nadena.dev.modular_avatar.core.editor">
<ui:VisualElement class="horizontal">
<ui:TextField name="f-name" binding-path="nameOrPrefix" label=""/>
<ui:DropdownField name="f-type"/>
<ui:DropdownField name="f-sync-type" binding-path="syncType"/>
<ui:Toggle name="f-is-prefix" binding-path="isPrefix"/>
</ui:VisualElement>
<ui:VisualElement class="horizontal">
<ui:VisualElement name="remap-to-group-disabled" class="horizontal">
<ui:Label text="merge_parameter.ui.remapTo" class="ndmf-tr"/>
<ui:TextField name="f-remap-to-disabled"/>
</ui:VisualElement>
<ui:VisualElement name="remap-to-group" class="horizontal">
<ui:Label text="merge_parameter.ui.remapTo" class="ndmf-tr"/>
<ui:TextField name="f-remap-to" binding-path="remapTo"/>
<ui:Label name="f-remap-to-placeholder"/>
</ui:VisualElement>
<ui:Toggle name="f-internal-parameter" binding-path="internalParameter"
text="merge_parameter.ui.internalParameter" class="ndmf-tr"/>
</ui:VisualElement>
<ui:VisualElement class="horizontal st-pb-prefix__hide">
<ui:VisualElement class="horizontal">
<ui:Label text="merge_parameter.ui.defaultValue" class="ndmf-tr"/>
<ma:DefaultValueField/>
</ui:VisualElement>
<ui:Toggle binding-path="saved"
text="merge_parameter.ui.saved" class="ndmf-tr st-anim-only__hide"/>
<ui:Toggle name="f-local-only" binding-path="localOnly"
text="merge_parameter.ui.localOnly" class="ndmf-tr st-anim-only__hide"/>
<ui:Toggle name="f-synced"
text="merge_parameter.ui.synced" class="ndmf-tr st-anim-only__hide"/>
<ui:Toggle binding-path="m_overrideAnimatorDefaults"
text="merge_parameter.ui.overrideAnimatorDefaults" class="ndmf-tr st-anim-only__hide"/>
</ui:VisualElement>
</ui:UXML>