41 lines
1.9 KiB
Plaintext
41 lines
1.9 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">
|
|
<!--
|
|
UTKShortcutListItem.uxml
|
|
단축키 리스트 단일 행(아이템) 레이아웃.
|
|
UTKShortcutList.cs 의 makeItem/bindItem 에서 사용됩니다.
|
|
|
|
구조 (flex-direction: row):
|
|
- item-container (.utk-shortcut-list-item)
|
|
- command-label : UTKLabel - 명령 이름 (flex-grow: 1)
|
|
- ctrl-checkbox : UTKCheckBox - Ctrl 수정자 토글
|
|
- shift-checkbox : UTKCheckBox - Shift 수정자 토글
|
|
- alt-checkbox : UTKCheckBox - Alt 수정자 토글
|
|
- key-field : UTKInputField - 주요 키 (읽기전용 + 클릭 캡처)
|
|
|
|
스타일: UTKShortcutListUss.uss (상위 컴포넌트에서 cascade)
|
|
USS는 UXML에 지정하지 않고 C#에서 로드합니다 (테마 적용 순서 보장).
|
|
-->
|
|
<ui:VisualElement name="item-container" class="utk-shortcut-list-item">
|
|
|
|
<!-- 명령 이름 (좌측, 남은 공간 전부 사용) -->
|
|
<utk:UTKLabel name="command-label" class="utk-shortcut-list-item__command" />
|
|
|
|
<!-- Ctrl 수정자 체크박스 (텍스트 없음, 아이콘만) -->
|
|
<utk:UTKCheckBox name="ctrl-checkbox" class="utk-shortcut-list-item__modifier" />
|
|
|
|
<!-- Shift 수정자 체크박스 -->
|
|
<utk:UTKCheckBox name="shift-checkbox" class="utk-shortcut-list-item__modifier" />
|
|
|
|
<!-- Alt 수정자 체크박스 -->
|
|
<utk:UTKCheckBox name="alt-checkbox" class="utk-shortcut-list-item__modifier" />
|
|
|
|
<!-- 주요 키 입력 필드 (읽기전용 표시 + 클릭 시 키 캡처 모드 진입) -->
|
|
<utk:UTKInputField name="key-field" class="utk-shortcut-list-item__key" />
|
|
|
|
</ui:VisualElement>
|
|
</ui:UXML>
|