This commit is contained in:
2026-04-28 10:11:28 +07:00
parent 252489f48a
commit 6d5a9a4e5b
8 changed files with 137 additions and 742 deletions

View File

@@ -1,18 +1,26 @@
<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" editor-extension-mode="False"> <Style src="project:/Assets/UI/Global.uss" />
<ui:VisualElement name="MainMenuRoot" class="screen-root">
<ui:VisualElement name="MenuContainer" style="flex-grow: 1; justify-content: center; align-items: center;">
<ui:VisualElement name="Logo" class="logo-pulse" style="background-color: white; border-radius: 100px;">
<ui:Label text="LOGO" style="color: black; align-self: center;" />
</ui:VisualElement>
<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" editor-extension-mode="False">
<Style src="project:/Assets/UI/Global.uss" />
<ui:VisualElement name="MainMenuRoot" class="screen-root" picking-mode="Position">
<!-- Ribbon Container - Luôn ở giữa màn hình -->
<ui:VisualElement name="MenuContainer" picking-mode="Position" style="flex-grow: 1; justify-content: center; align-items: center;">
<ui:VisualElement name="Ribbon" style="flex-direction: row; display: none; background-color: rgba(0, 0, 0, 0.8); padding: 10px; margin-top: 20px;">
<ui:Button name="SettingsBtn" text="Settings" class="button-spring" />
<ui:Button name="JoinBtn" text="Join" class="button-spring" />
<ui:Button name="CreateBtn" text="Create" class="button-spring" />
<ui:Button name="ProfileBtn" text="Profile" class="button-spring" />
<ui:Button name="ExitBtn" text="Exit" class="button-spring" />
<ui:VisualElement name="Ribbon" picking-mode="Position" style="flex-direction: row; display: none; background-color: rgba(0, 0, 0, 0.8); padding: 5px 20px; border-radius: 10px; align-items: center; justify-content: center;">
<ui:Button name="SettingsBtn" text="Settings" class="button-spring" style="width: 100px; height: 50px;" />
<!-- Placeholder cho Logo -->
<ui:VisualElement name="LogoSpace" style="width: 120px; height: 50px; background-color: transparent; margin: 0 10px;" />
<ui:Button name="JoinBtn" text="Join" class="button-spring" style="width: 100px; height: 50px;" />
<ui:Button name="CreateBtn" text="Create" class="button-spring" style="width: 100px; height: 50px;" />
<ui:Button name="ProfileBtn" text="Profile" class="button-spring" style="width: 100px; height: 50px;" />
<ui:Button name="ExitBtn" text="Exit" class="button-spring" style="width: 100px; height: 50px;" />
</ui:VisualElement>
</ui:VisualElement>
<!-- Logo -->
<ui:VisualElement name="Logo" class="logo-pulse" picking-mode="Position" style="background-color: white; border-radius: 100px; position: absolute; width: 200px; height: 200px;">
<ui:Label text="LOGO" picking-mode="Ignore" style="color: black; align-self: center;" />
</ui:VisualElement>
<ui:VisualElement name="VirtualCursor" style="width: 20px; height: 20px; background-color: cyan; border-radius: 10px; position: absolute; picking-mode: ignore; pointer-events: none;" />
</ui:VisualElement>
</ui:UXML>