UTKComponentList, UTKTreeList 완료

This commit is contained in:
logonkhi
2025-12-30 20:38:25 +09:00
parent a9423b7479
commit 91ca3c0468
50 changed files with 4347 additions and 89 deletions

View File

@@ -0,0 +1,59 @@
UTKComponentListWindow {
height: 100%;
position: absolute;
top: 0;
left: 0;
bottom: 0;
}
UTKComponentTabListWindow {
height: 100%;
position: absolute;
top: 0;
left: 400;
bottom: 0;
}
.container {
background-color: rgb(37, 37, 38);
height: 100%;
align-self: flex-start;
padding: 5px;
padding-top: 10px;
padding-bottom: 25px;
padding-left: 20px;
padding-right: 20px;
width: 300px;
}
.tab-button {
background-color: #1E1E1E;
border-width: 0;
border-radius: 0px;
padding-left: 12px;
padding-right: 12px;
padding-top: 4px;
padding-bottom: 4px;
margin-right: 1px;
margin-left: 0;
margin-top: 0;
margin-bottom: 0;
color: #A0A0A0;
font-size: 11px;
-unity-font-definition: resource('Fonts/Pretendard/Pretendard-Medium');
flex-shrink: 0;
}
.tab-button:hover {
background-color: #292929;
}
.tab-button-selected {
background-color: #303031;
color: rgb(255, 255, 255);
}
.tab-button-selected:hover {
background-color: #3A3D41;
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 3df97248d26591046ab077258a2e2e44
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 12385, guid: 0000000000000000e000000000000000, type: 0}
disableValidation: 0

View File

@@ -0,0 +1,10 @@
<ui:UXML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" xmlns:uvc="UVC.UIToolkit.List" noNamespaceSchemaLocation="../../../../../UIElementsSchema/UIElements.xsd" editor-extension-mode="False">
<Style src="project://database/Assets/Resources/UIToolkit/Window/UTKComponentListWindow.uss?fileID=7433441132597879392&amp;guid=3df97248d26591046ab077258a2e2e44&amp;type=3#UTKComponentListWindow" />
<ui:VisualElement name="container" class="container" style="flex-grow: 1; flex-shrink: 0;">
<ui:VisualElement name="header" style="flex-direction: row; margin-bottom: 5px; justify-content: space-between; margin-top: 0;">
<ui:Label text="EXPLORER" style="color: rgb(204, 204, 204); -unity-font-style: normal; font-size: 11px; -unity-font-definition: resource(&apos;Fonts/Pretendard/Pretendard-Medium&apos;); margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; padding-top: 0; padding-right: 0; padding-bottom: 0; padding-left: 0; height: 24px; -unity-text-align: middle-left;" />
<ui:Button name="close-btn" style="width: 22px; height: 22px; margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; padding-top: 0; padding-right: 0; padding-bottom: 0; padding-left: 0; background-color: rgba(188, 188, 188, 0); background-image: resource(&apos;UIToolkit/Images/btn_close_22&apos;); align-self: center; align-items: auto; border-top-width: 0; border-right-width: 0; border-bottom-width: 0; border-left-width: 0; display: none;" />
</ui:VisualElement>
<uvc:UTKComponentList />
</ui:VisualElement>
</ui:UXML>

View File

@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 253ecad9e87e85f418cd7f91fd213bc0
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 13804, guid: 0000000000000000e000000000000000, type: 0}

View File

@@ -0,0 +1,13 @@
<ui:UXML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" xmlns:uvc="UVC.UIToolkit.List" noNamespaceSchemaLocation="../../../../../UIElementsSchema/UIElements.xsd" editor-extension-mode="False">
<Style src="project://database/Assets/Resources/UIToolkit/Window/UTKComponentListWindow.uss?fileID=7433441132597879392&amp;guid=3df97248d26591046ab077258a2e2e44&amp;type=3#UTKComponentListWindow" />
<ui:VisualElement name="container" class="container" style="flex-grow: 1; flex-shrink: 0;">
<ui:VisualElement name="header" style="flex-direction: row; margin-bottom: 5px; justify-content: space-between; margin-top: 0;">
<ui:Label text="EXPLORER" style="color: rgb(204, 204, 204); -unity-font-style: normal; font-size: 11px; -unity-font-definition: resource(&apos;Fonts/Pretendard/Pretendard-Medium&apos;); margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; padding-top: 0; padding-right: 0; padding-bottom: 0; padding-left: 0; height: 24px; -unity-text-align: middle-left;" />
<ui:Button name="close-btn" style="width: 22px; height: 22px; margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; padding-top: 0; padding-right: 0; padding-bottom: 0; padding-left: 0; background-color: rgba(188, 188, 188, 0); background-image: resource(&apos;UIToolkit/Images/btn_close_22&apos;); align-self: center; align-items: auto; border-top-width: 0; border-right-width: 0; border-bottom-width: 0; border-left-width: 0; display: none;" />
</ui:VisualElement>
<ui:ScrollView name="tab-scroll-view" mode="Horizontal" horizontal-scroller-visibility="Hidden" vertical-scroller-visibility="Hidden" style="flex-shrink: 0; margin-bottom: 8px; max-height: 28px;">
<ui:VisualElement name="tab-container" style="flex-direction: row; flex-shrink: 0;" />
</ui:ScrollView>
<uvc:UTKComponentList style="flex-grow: 1; width: 100%;" />
</ui:VisualElement>
</ui:UXML>

View File

@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 0520c39e010a25140b8c514372d164f8
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 13804, guid: 0000000000000000e000000000000000, type: 0}

View File

@@ -20,55 +20,8 @@ UTKTreeListWindow {
.search-field {
margin-bottom: 20px;
background-color: rgb(255, 255, 255);
border-radius: 4px;
height: 24px;
width: auto;
margin-top: 0;
margin-right: 0;
margin-left: 0;
}
#search-field > #unity-text-input {
padding-top: 4px;
padding-right: 24px;
padding-bottom: 4px;
padding-left: 4px;
border-top-left-radius: 0;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
border-top-width: 0;
border-right-width: 0;
border-bottom-width: 0;
border-left-width: 0;
background-color: rgb(60, 60, 60);
font-size: 13px;
color: rgb(204, 204, 204);
-unity-font-definition: resource('Fonts/Pretendard/Pretendard-Medium');
--unity-cursor-color: rgb(255, 255, 255); /* 캐럿(커서) 색상 흰색 */
}
#search-field .unity-base-text-field__input--placeholder {
-unity-font-style: italic;
}
#unity-checkmark {
-unity-background-image-tint-color: rgb(255, 255, 255);
}
#main-tree-view {
/* 들여쓰기 폭 설정 */
--unity-item-indent-width: 10;
}
#unity-tree-view__item-toggle > VisualElement > VisualElement {
margin-left: 0;
margin-right: 0;
width: 22px;
}
.visibility-toggle {
background-color: rgba(0, 0, 0, 0);
@@ -86,15 +39,15 @@ UTKTreeListWindow {
padding-left: 0;
margin-left: 0;
flex-shrink: 0;
background-image: resource('SHI/Images/icon_visibility_on_64');
background-image: resource('UIToolkit/Images/icon_eye_22x16');
}
.visibility-on {
background-image: resource('SHI/Images/icon_visibility_on_64');
background-image: resource('UIToolkit/Images/icon_eye_22x16');
}
.visibility-off {
background-image: resource('SHI/Images/icon_visibility_off_64');
background-image: resource('UIToolkit/Images/icon_eye_close_22x16');
}