Files
XRLib/Assets/Resources/UIToolkit/List/UTKShortcutList.uxml
2026-02-24 20:01:56 +09:00

57 lines
2.6 KiB
Plaintext

<ui:UXML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ui="UnityEngine.UIElements"
xmlns:utk="UVC.UIToolkit"
noNamespaceSchemaLocation="../../../../../UIElementsSchema/UIElements.xsd"
editor-extension-mode="False">
<!--
UTKShortcutList.uxml
단축키 설정 리스트 컴포넌트 메인 레이아웃.
구조:
- container (.utk-shortcut-list)
- search-field : UTKInputField (Command 이름 검색)
- header : 컬럼 헤더 행
- header-command : 명령 이름 컬럼 헤더 (flex-grow)
- header-ctrl : Ctrl 컬럼 헤더
- header-shift : Shift 컬럼 헤더
- header-alt : Alt 컬럼 헤더
- header-key : Key 컬럼 헤더
- list-view : UTKListView (가상화 지원)
Item 레이아웃: UTKShortcutListItem.uxml 참조
스타일: Resources/UIToolkit/List/UTKShortcutListUss.uss (C#에서 로드)
-->
<ui:VisualElement name="container" class="utk-shortcut-list-container">
<!-- 검색 영역 -->
<ui:VisualElement name="search-container" class="utk-shortcut-list__search-container">
<utk:UTKInputField name="search-field"
placeholder="Search command..."
class="utk-shortcut-list__search" />
<utk:UTKButton name="clear-btn"
class="utk-shortcut-list__clear-btn"
variant="Text"
icon="Close"
icon-size="12"
icon-only="true" />
</ui:VisualElement>
<!-- 컬럼 헤더 행 -->
<ui:VisualElement name="header" class="utk-shortcut-list__header">
<ui:Label name="header-command" text="" class="utk-shortcut-list__header-command" />
<ui:Label name="header-ctrl" text="Ctrl" class="utk-shortcut-list__header-modifier" />
<ui:Label name="header-shift" text="Shift" class="utk-shortcut-list__header-modifier" />
<ui:Label name="header-alt" text="Alt" class="utk-shortcut-list__header-modifier" />
<ui:Label name="header-key" text="Key" class="utk-shortcut-list__header-key" />
</ui:VisualElement>
<!-- ListView (가상화 지원) -->
<utk:UTKListView name="list-view"
class="utk-shortcut-list__listview"
fixed-item-height="36"
selection-type="None"
show-alternating-row-backgrounds="None" />
</ui:VisualElement>
</ui:UXML>