1
This commit is contained in:
@@ -26,3 +26,10 @@
|
||||
flex-grow: 1;
|
||||
transition-duration: 0.2s;
|
||||
}
|
||||
|
||||
.dialogue-container Label {
|
||||
}
|
||||
|
||||
.dialogue-container Label:disabled {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
6
Assets/Artists/UX/ux_dialogue_choose_template.uxml
Normal file
6
Assets/Artists/UX/ux_dialogue_choose_template.uxml
Normal file
@@ -0,0 +1,6 @@
|
||||
<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" editor-extension-mode="False">
|
||||
<ui:Button parse-escape-sequences="true" display-tooltip-when-elided="true" name="Button-0" style="flex-direction: row; align-items: center;">
|
||||
<ui:Label tabindex="-1" text="[1]" parse-escape-sequences="true" display-tooltip-when-elided="true" name="Label--0" style="width: 32px;" />
|
||||
<ui:Label tabindex="-1" text="选择A" parse-escape-sequences="true" display-tooltip-when-elided="true" name="Label--1" />
|
||||
</ui:Button>
|
||||
</ui:UXML>
|
7
Assets/Artists/UX/ux_dialogue_template.uxml
Normal file
7
Assets/Artists/UX/ux_dialogue_template.uxml
Normal file
@@ -0,0 +1,7 @@
|
||||
<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements">
|
||||
<ui:VisualElement style="flex-direction: row; align-items: center;">
|
||||
<ui:Label tabindex="-1" text="Actor" parse-escape-sequences="true" display-tooltip-when-elided="true" name="Label--0" />
|
||||
<ui:Label tabindex="-1" text=":" parse-escape-sequences="true" display-tooltip-when-elided="true" />
|
||||
<ui:Label tabindex="-1" text="Statement" parse-escape-sequences="true" display-tooltip-when-elided="true" name="Label--1" />
|
||||
</ui:VisualElement>
|
||||
</ui:UXML>
|
@@ -1,12 +1,23 @@
|
||||
<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">
|
||||
<ui:Template name="ux_quest_template" src="project://database/Assets/Artists/UX/ux_quest_template.uxml?fileID=9197481963319205126&guid=3e4b142e8b224ce42a5258702fcb6270&type=3#ux_quest_template" />
|
||||
<ui:Template name="ux_dialogue_template" src="project://database/Assets/Artists/UX/ux_dialogue_template.uxml?fileID=9197481963319205126&guid=af60a5419d14491468066d33d8806fc1&type=3#ux_dialogue_template" />
|
||||
<ui:Template name="ux_dialogue_choose_template" src="project://database/Assets/Artists/UX/ux_dialogue_choose_template.uxml?fileID=9197481963319205126&guid=0651c86a74198604da9d71321f73cbd5&type=3#ux_dialogue_choose_template" />
|
||||
<Style src="project://database/Assets/BITKit/Unity/UX/Common/Common.uss?fileID=7433441132597879392&guid=a3a69d3518fd02b489e721f3c5b0b539&type=3#Common" />
|
||||
<ui:VisualElement class="container-my-8" style="position: absolute; left: 32px; top: 32px;">
|
||||
<Style src="project://database/Assets/Artists/UX/Style.uss?fileID=7433441132597879392&guid=506d41b7c5d56a44bb5845e69055a5eb&type=3#Style" />
|
||||
<ui:VisualElement class="container-my-8" style="position: absolute; left: 32px; top: 32px; overflow: hidden;">
|
||||
<ui:VisualElement name="minimap-container" style="background-image: url("project://database/Assets/Artists/Materials/ux_minimap.renderTexture?fileID=8400000&guid=9a9e60eda7295fc47907b25d62d9dd79&type=2#ux_minimap"); width: 256px; height: 256px; background-color: rgba(0, 0, 0, 0.5); border-left-color: rgb(255, 255, 255); border-right-color: rgb(255, 255, 255); border-top-color: rgb(255, 255, 255); border-bottom-color: rgb(255, 255, 255); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px;">
|
||||
<ui:VisualElement name="minimap-player" style="width: 32px; height: 32px; background-color: rgb(255, 255, 255); position: absolute; top: 97px; left: 64px; background-image: url("project://database/Assets/Artists/Arts/Avatars/avatar_player.jpg?fileID=2800000&guid=dc1a7b7a5cc9437438280932e8b541a0&type=3#avatar_player");" />
|
||||
</ui:VisualElement>
|
||||
<ui:Slider label="时间" high-value="24" name="time-slider" show-input-field="false" />
|
||||
</ui:VisualElement>
|
||||
<ui:VisualElement name="quest-container" style="position: absolute; top: 32px; right: 32px; background-color: rgba(0, 0, 0, 0.78);">
|
||||
<ui:Instance template="ux_quest_template" name="ux_quest_template" />
|
||||
</ui:VisualElement>
|
||||
<ui:Label tabindex="-1" text="互动" parse-escape-sequences="true" display-tooltip-when-elided="true" name="interaction-tips" class="flex-center tl" style="top: 32px; background-color: rgba(0, 0, 0, 0.78); padding-top: 4px; padding-right: 8px; padding-bottom: 4px; padding-left: 8px;" />
|
||||
<ui:VisualElement picking-mode="Ignore" class="root">
|
||||
<ui:VisualElement name="dialogue-choose-container">
|
||||
<ui:Instance template="ux_dialogue_choose_template" name="ux_dialogue_choose_template" />
|
||||
</ui:VisualElement>
|
||||
<ui:VisualElement style="margin-top: auto; margin-right: auto; margin-bottom: 16px; margin-left: auto; flex-direction: row; align-items: center; background-color: rgba(0, 0, 0, 0.78); width: 256px;">
|
||||
<ui:VisualElement style="width: 64px; height: 64px; background-image: url("project://database/Assets/Artists/Arts/Avatars/avatar_player.jpg?fileID=2800000&guid=dc1a7b7a5cc9437438280932e8b541a0&type=3#avatar_player");" />
|
||||
<ui:VisualElement style="flex-grow: 1; margin-top: 5px; margin-right: 5px; margin-bottom: 5px; margin-left: 5px;">
|
||||
@@ -14,4 +25,8 @@
|
||||
</ui:VisualElement>
|
||||
</ui:VisualElement>
|
||||
</ui:VisualElement>
|
||||
<ui:ScrollView picking-mode="Ignore" name="dialogue-container" class="flex-center dialogue-container" style="background-color: rgba(0, 0, 0, 0.78); border-top-left-radius: 8px; border-top-right-radius: 8px; border-bottom-right-radius: 8px; border-bottom-left-radius: 8px; min-width: 512px; bottom: -25%; max-height: 300px; padding-top: 8px; padding-right: 8px; padding-bottom: 8px; padding-left: 8px;">
|
||||
<ui:Instance template="ux_dialogue_template" name="ux_dialogue_template" />
|
||||
<ui:Instance template="ux_dialogue_template" name="ux_dialogue_template" />
|
||||
</ui:ScrollView>
|
||||
</ui:UXML>
|
||||
|
@@ -2,7 +2,7 @@
|
||||
<Style src="project://database/Assets/BITKit/Unity/UX/Common/Common.uss?fileID=7433441132597879392&guid=a3a69d3518fd02b489e721f3c5b0b539&type=3#Common" />
|
||||
<ui:VisualElement class="root" style="background-image: url("project://database/Assets/Artists/Arts/Backgrounds/background_menu.jpg?fileID=21300000&guid=5abe2ac5974a6104fbf483cf5f3f19eb&type=3#background_menu"); background-color: rgb(0, 0, 0); -unity-background-image-tint-color: rgba(255, 255, 255, 0.32);" />
|
||||
<ui:VisualElement class="flex-center" style="min-width: 256px;">
|
||||
<ui:ProgressBar value="48.2" name="load-progress" style="background-color: rgba(255, 255, 255, 0.21); height: 4px; width: 512px;" />
|
||||
<ui:ProgressBar value="0.51" name="load-progress" high-value="1" style="background-color: rgba(255, 255, 255, 0.21); height: 4px; width: 512px;" />
|
||||
<ui:VisualElement style="flex-direction: row; justify-content: space-between;">
|
||||
<ui:Label tabindex="-1" text="map_tokyo" parse-escape-sequences="true" display-tooltip-when-elided="true" name="map-label" class="tl" />
|
||||
<ui:Label tabindex="-1" text="加载中..." parse-escape-sequences="true" display-tooltip-when-elided="true" name="load_step-label" />
|
||||
|
6
Assets/Artists/UX/ux_quest_template.uxml
Normal file
6
Assets/Artists/UX/ux_quest_template.uxml
Normal file
@@ -0,0 +1,6 @@
|
||||
<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements">
|
||||
<ui:VisualElement style="flex-grow: 1;">
|
||||
<ui:Label tabindex="-1" text="任务名称" parse-escape-sequences="true" display-tooltip-when-elided="true" name="Label--0" class="tl" />
|
||||
<ui:Label tabindex="-1" text="任务描述" parse-escape-sequences="true" display-tooltip-when-elided="true" name="Label--1" />
|
||||
</ui:VisualElement>
|
||||
</ui:UXML>
|
Reference in New Issue
Block a user