Files
XRLib/Assets/Resources/UIToolkit/Sample/Modal/UTKAlertSample.uxml
2026-01-23 19:04:12 +09:00

43 lines
2.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<UXML xmlns="UnityEngine.UIElements" xmlns:utk="UVC.UIToolkit">
<Style src="../UTKSampleCommon.uss" />
<VisualElement class="utk-sample-container">
<Label class="utk-sample-desc" text="알림 다이얼로그 (async/await 지원)" />
<!-- Alert Types (Async) -->
<VisualElement class="utk-sample-section">
<Label class="utk-sample-section__title" text="Alert Types (Async)" />
<VisualElement class="utk-sample-row" name="alert-types-row">
<utk:UTKButton name="btn-info" text="Info" variant="Primary" />
<utk:UTKButton name="btn-success" text="Success" variant="Normal" />
<utk:UTKButton name="btn-warning" text="Warning" variant="Normal" />
<utk:UTKButton name="btn-error" text="Error" variant="Danger" />
</VisualElement>
</VisualElement>
<!-- Confirm Dialog (Async) -->
<VisualElement class="utk-sample-section">
<Label class="utk-sample-section__title" text="Confirm Dialog (Async)" />
<VisualElement class="utk-sample-row" name="confirm-row">
<utk:UTKButton name="btn-confirm" text="Confirm" variant="Normal" />
<utk:UTKButton name="btn-confirm-custom" text="Custom Labels" variant="Normal" />
</VisualElement>
</VisualElement>
<!-- Callback Style -->
<VisualElement class="utk-sample-section">
<Label class="utk-sample-section__title" text="Callback Style" />
<VisualElement class="utk-sample-row" name="callback-row">
<utk:UTKButton name="btn-callback" text="With Callback" variant="OutlineNormal" />
<utk:UTKButton name="btn-confirm-callback" text="Confirm Callback" variant="OutlineNormal" />
</VisualElement>
</VisualElement>
<!-- Code Sample -->
<VisualElement class="utk-code-sample-container">
<utk:UTKCodeBlock name="code-csharp" title="C#" />
</VisualElement>
</VisualElement>
</UXML>