Net.Like.Xue.Tokyo/Assets/Mods/Demo/UX/UXDemo.uxml

18 lines
2.2 KiB
Plaintext
Raw Normal View History

2024-11-03 16:42:23 +08:00
<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" xsi="http://www.w3.org/2001/XMLSchema-instance" engine="UnityEngine.UIElements" editor="UnityEditor.UIElements" noNamespaceSchemaLocation="../../../../UIElementsSchema/UIElements.xsd" editor-extension-mode="False">
<Style src="project://database/Assets/BITKit/Unity/UX/Common/Common.uss?fileID=7433441132597879392&amp;guid=a3a69d3518fd02b489e721f3c5b0b539&amp;type=3#Common" />
<ui:VisualElement style="position: absolute; left: 32px; top: 32px; padding-top: 24px; padding-right: 32px; padding-bottom: 24px; padding-left: 32px; background-color: rgba(0, 0, 0, 0.78);">
<ui:Label tabindex="-1" text="选择关卡" parse-escape-sequences="true" display-tooltip-when-elided="true" />
<ui:DropdownField label="去哪里" choices="秋叶原,东京街道,郊区" index="0" name="scene-dropdown" />
<ui:Button text="进入场景" parse-escape-sequences="true" display-tooltip-when-elided="true" name="entry-scene-button" />
</ui:VisualElement>
<ui:VisualElement style="position: absolute; left: 32px; bottom: 32px; padding-top: 24px; padding-right: 32px; padding-bottom: 24px; padding-left: 32px; background-color: rgba(0, 0, 0, 0.78);">
<ui:Label tabindex="-1" text="操作说明" parse-escape-sequences="true" display-tooltip-when-elided="true" class="tl" />
<ui:Label tabindex="-1" text="按住[鼠标右键]旋转视角&#10;按住[WASD]移动视角&#10;按住[Shift]启用移动加速度&#10;按住[QE]上下移动" parse-escape-sequences="true" display-tooltip-when-elided="true" />
<ui:Label tabindex="-1" text="灵敏度" parse-escape-sequences="true" display-tooltip-when-elided="true" class="tm" />
<ui:Slider high-value="5" show-input-field="true" low-value="1" name="sensitivity-slider" />
<ui:Label tabindex="-1" text="快捷方式" parse-escape-sequences="true" display-tooltip-when-elided="true" class="tl" />
<ui:Label tabindex="-1" text="快速记录需要互动的点位" parse-escape-sequences="true" display-tooltip-when-elided="true" />
<ui:Button text="打开记录文档" parse-escape-sequences="true" display-tooltip-when-elided="true" name="open-document-button" />
</ui:VisualElement>
</ui:UXML>