UIToolkit Sample uxml로 전환
This commit is contained in:
@@ -0,0 +1,75 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<UXML xmlns="UnityEngine.UIElements" xmlns:utk="UVC.UIToolkit">
|
||||
<Style src="../UTKSampleCommon.uss" />
|
||||
<Style src="UTKButtonSample.uss" />
|
||||
|
||||
<VisualElement class="utk-sample-container">
|
||||
<!-- Description -->
|
||||
<Label class="utk-sample-desc" text="다양한 스타일의 버튼 컴포넌트" />
|
||||
|
||||
<!-- Filled Buttons -->
|
||||
<VisualElement class="utk-sample-section">
|
||||
<Label class="utk-sample-section__title" text="Filled Buttons" />
|
||||
<VisualElement class="utk-sample-row">
|
||||
<utk:UTKButton name="btn-primary" text="Primary" variant="Primary" />
|
||||
<utk:UTKButton name="btn-normal" text="Normal" variant="Normal" />
|
||||
<utk:UTKButton name="btn-danger" text="Danger" variant="Danger" />
|
||||
</VisualElement>
|
||||
</VisualElement>
|
||||
|
||||
<!-- Outline Buttons -->
|
||||
<VisualElement class="utk-sample-section">
|
||||
<Label class="utk-sample-section__title" text="Outline Buttons" />
|
||||
<VisualElement class="utk-sample-row">
|
||||
<utk:UTKButton name="btn-outline-primary" text="Outline Primary" variant="OutlinePrimary" />
|
||||
<utk:UTKButton name="btn-outline-normal" text="Outline Normal" variant="OutlineNormal" />
|
||||
<utk:UTKButton name="btn-outline-danger" text="Outline Danger" variant="OutlineDanger" />
|
||||
</VisualElement>
|
||||
</VisualElement>
|
||||
|
||||
<!-- Icon Only -->
|
||||
<VisualElement class="utk-sample-section">
|
||||
<Label class="utk-sample-section__title" text="Icon Only" />
|
||||
<VisualElement class="utk-sample-row" name="icon-only-row">
|
||||
<!-- Icons will be set via C# code -->
|
||||
</VisualElement>
|
||||
</VisualElement>
|
||||
|
||||
<!-- Ghost -->
|
||||
<VisualElement class="utk-sample-section">
|
||||
<Label class="utk-sample-section__title" text="Ghost" />
|
||||
<VisualElement class="utk-sample-row" name="ghost-row">
|
||||
<utk:UTKButton name="btn-ghost" text="Ghost" variant="Ghost" />
|
||||
<!-- Ghost icon button will be set via C# -->
|
||||
</VisualElement>
|
||||
</VisualElement>
|
||||
|
||||
<!-- Text -->
|
||||
<VisualElement class="utk-sample-section">
|
||||
<Label class="utk-sample-section__title" text="Text (Label/Icon Only)" />
|
||||
<VisualElement class="utk-sample-row" name="text-row">
|
||||
<utk:UTKButton name="btn-text-only" text="Text Only" variant="Text" />
|
||||
<utk:UTKButton name="btn-text-link" text="Link Style" variant="Text" />
|
||||
<!-- Text with icon will be set via C# -->
|
||||
</VisualElement>
|
||||
</VisualElement>
|
||||
|
||||
<!-- Text Icon Only (Circle) -->
|
||||
<VisualElement class="utk-sample-section">
|
||||
<Label class="utk-sample-section__title" text="Text Icon Only (Circle)" />
|
||||
<VisualElement class="utk-sample-row" name="text-icon-only-row">
|
||||
<!-- Circle icon buttons will be set via C# -->
|
||||
</VisualElement>
|
||||
</VisualElement>
|
||||
|
||||
<!-- Disabled -->
|
||||
<VisualElement class="utk-sample-section">
|
||||
<Label class="utk-sample-section__title" text="Disabled" />
|
||||
<VisualElement class="utk-sample-row">
|
||||
<utk:UTKButton name="btn-disabled-primary" text="Disabled" variant="Primary" is-enabled="false" />
|
||||
<utk:UTKButton name="btn-disabled-normal" text="Disabled" variant="Normal" is-enabled="false" />
|
||||
<utk:UTKButton name="btn-disabled-text" text="Disabled" variant="Text" is-enabled="false" />
|
||||
</VisualElement>
|
||||
</VisualElement>
|
||||
</VisualElement>
|
||||
</UXML>
|
||||
Reference in New Issue
Block a user