1
This commit is contained in:
38
Unity/UX/BITAlert.uss
Normal file
38
Unity/UX/BITAlert.uss
Normal file
@@ -0,0 +1,38 @@
|
||||
Label {
|
||||
-unity-font-definition: url('project://database/Assets/BITKits/Art/Fonts/NotoSansSC-Regular%20SDF.asset?fileID=11400000&guid=4897d78d91e2fa34bbc06b9e213ac6d4&type=2#NotoSansSC-Regular SDF');
|
||||
color: rgba(255, 255, 255, 0.78);
|
||||
}
|
||||
|
||||
Button {
|
||||
background-color: rgba(0, 0, 0, 0);
|
||||
color: rgba(255, 255, 255, 0.5);
|
||||
border-left-color: rgba(255, 255, 255, 0.5);
|
||||
border-right-color: rgba(255, 255, 255, 0.5);
|
||||
border-top-color: rgba(255, 255, 255, 0.5);
|
||||
border-bottom-color: rgba(255, 255, 255, 0.5);
|
||||
border-top-left-radius: 2px;
|
||||
border-bottom-left-radius: 2px;
|
||||
border-top-right-radius: 2px;
|
||||
border-bottom-right-radius: 2px;
|
||||
max-width: 128px;
|
||||
-unity-font-definition: url('project://database/Assets/BITKits/Art/Fonts/NotoSansSC-Bold%20SDF.asset?fileID=11400000&guid=033cc1a4c6c35c6488ad74f4cee476ac&type=2#NotoSansSC-Bold SDF');
|
||||
}
|
||||
|
||||
Button:hover {
|
||||
color: rgba(0, 0, 0, 255);
|
||||
background-color: rgba(255, 255, 255, 0.78);
|
||||
transition-duration: 0.1s;
|
||||
}
|
||||
|
||||
Button:active {
|
||||
background-color: rgba(120, 120, 120, 255);
|
||||
color: rgba(0, 0, 0, 255);
|
||||
border-left-width: 1px;
|
||||
border-right-width: 1px;
|
||||
border-top-width: 1px;
|
||||
border-bottom-width: 1px;
|
||||
border-left-color: rgba(123, 123, 123, 255);
|
||||
border-right-color: rgba(123, 123, 123, 255);
|
||||
border-top-color: rgba(123, 123, 123, 255);
|
||||
border-bottom-color: rgba(123, 123, 123, 255);
|
||||
}
|
9
Unity/UX/BITAlert.uxml
Normal file
9
Unity/UX/BITAlert.uxml
Normal file
@@ -0,0 +1,9 @@
|
||||
<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/BITKits/UX/BITAlert.uss?fileID=7433441132597879392&guid=8d0db0fee932f5342988f09217d6309a&type=3#BITAlert" />
|
||||
<ui:VisualElement name="Background" style="position: absolute; left: 0; top: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.91);" />
|
||||
<ui:VisualElement name="Center" style="margin-left: auto; margin-right: auto; margin-top: auto; margin-bottom: auto; -unity-text-align: upper-center;">
|
||||
<ui:Label text="Label" display-tooltip-when-elided="true" name="title-label" style="-unity-font-style: bold; font-size: 24px;" />
|
||||
<ui:Label text="Label" display-tooltip-when-elided="true" name="context-label" style="font-size: 20px;" />
|
||||
<ui:Button text="确认" display-tooltip-when-elided="true" name="main-button" style="margin-left: auto; margin-right: auto; width: 128px; max-width: 256px;" />
|
||||
</ui:VisualElement>
|
||||
</ui:UXML>
|
64
Unity/UX/BITConsole.uss
Normal file
64
Unity/UX/BITConsole.uss
Normal file
@@ -0,0 +1,64 @@
|
||||
.Console {
|
||||
background-color: rgb(113, 113, 113);
|
||||
}
|
||||
|
||||
.Console-Text {
|
||||
font-size: 18px;
|
||||
color: rgba(233, 233, 233, 0.63);
|
||||
-unity-font-definition: url('project://database/Assets/BITKits/Art/Fonts/NotoSansSC-Regular%20SDF.asset?fileID=11400000&guid=4897d78d91e2fa34bbc06b9e213ac6d4&type=2#NotoSansSC-Regular SDF');
|
||||
-unity-font-style: bold;
|
||||
}
|
||||
|
||||
.Console-ScrollView {
|
||||
background-color: rgb(87, 87, 87);
|
||||
}
|
||||
|
||||
.Console-TextField {
|
||||
margin-left: -2px;
|
||||
margin-right: 0;
|
||||
margin-top: 8px;
|
||||
margin-bottom: 8px;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
padding-top: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.unity-text-field__input {
|
||||
background-color: rgb(87, 87, 87);
|
||||
color: rgba(221, 221, 221, 0.94);
|
||||
-unity-font-style: normal;
|
||||
font-size: 16px;
|
||||
border-left-width: 0;
|
||||
border-right-width: 0;
|
||||
border-top-width: 0;
|
||||
border-bottom-width: 0;
|
||||
}
|
||||
|
||||
ListView {
|
||||
background-color: rgb(87, 87, 87);
|
||||
color: rgba(233, 233, 233, 0.63);
|
||||
-unity-background-image-tint-color: rgba(233, 233, 233, 0.63);
|
||||
}
|
||||
|
||||
.unity-base-dropdown__container-outer .unity-scroll-view {
|
||||
background-color: rgb(120, 120, 120);
|
||||
}
|
||||
|
||||
.unity-text-field__input:hover {
|
||||
border-left-width: 0;
|
||||
border-right-width: 0;
|
||||
border-top-width: 0;
|
||||
border-bottom-width: 0;
|
||||
}
|
||||
|
||||
ListView Label {
|
||||
padding-left: 8px;
|
||||
padding-right: 8px;
|
||||
padding-top: 4px;
|
||||
padding-bottom: 4px;
|
||||
}
|
||||
|
||||
ListView Label:hover {
|
||||
color: rgba(32, 32, 32, 255);
|
||||
}
|
13
Unity/UX/BITConsole.uxml
Normal file
13
Unity/UX/BITConsole.uxml
Normal file
@@ -0,0 +1,13 @@
|
||||
<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/BITKits/UX/BITConsole.uss?fileID=7433441132597879392&guid=9175bfb75cd47b9488b9f12bd34e50fd&type=3#BITConsole" />
|
||||
<ui:VisualElement name="Root" style="position: absolute; left: 0; top: 0; right: 0; bottom: 0;">
|
||||
<ui:VisualElement name="Console" class="Console" style="width: 1024px; height: 768px; border-top-left-radius: 16px; border-bottom-left-radius: 16px; border-top-right-radius: 16px; border-bottom-right-radius: 16px; padding-left: 16px; padding-right: 16px; padding-top: 8px; padding-bottom: 8px; margin-left: auto; margin-right: auto; margin-top: auto; margin-bottom: auto;">
|
||||
<ui:Label text="Console" display-tooltip-when-elided="true" class="Console-Text" />
|
||||
<ui:ScrollView name="context-scrollview" class="Console-ScrollView" style="height: auto; flex-grow: 1; display: flex;">
|
||||
<ui:Label text="This is Console This is <size=24>Rich Text</size> This is <color=yellow>Warning</color> This is <color=red>Error</color> This is loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong text This is Console This is <size=24>Rich Text</size> This is <color=yellow>Warning</color> This is <color=red>Error</color> This is loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong text This is Console This is <size=24>Rich Text</size> This is <color=yellow>Warning</color> This is <color=red>Error</color> This is loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong text This is Console This is <size=24>Rich Text</size> This is <color=yellow>Warning</color> This is <color=red>Error</color> This is loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong text This is Console This is <size=24>Rich Text</size> This is <color=yellow>Warning</color> This is <color=red>Error</color> This is loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong text" display-tooltip-when-elided="true" name="Text" class="Console-Text" style="padding-left: 8px; padding-right: 8px; padding-top: 4px; padding-bottom: 4px; white-space: normal;" />
|
||||
</ui:ScrollView>
|
||||
<ui:TextField picking-mode="Ignore" value="filler text" text="filler text" name="TextField" class="Console-TextField" style="height: 48px;" />
|
||||
</ui:VisualElement>
|
||||
</ui:VisualElement>
|
||||
<ui:ListView focusable="true" name="commands-listview" />
|
||||
</ui:UXML>
|
12
Unity/UX/BITContextMenu.uxml
Normal file
12
Unity/UX/BITContextMenu.uxml
Normal file
@@ -0,0 +1,12 @@
|
||||
<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/BITKits/UX/Common/Common.uss?fileID=7433441132597879392&guid=a3a69d3518fd02b489e721f3c5b0b539&type=3#Common" />
|
||||
<Style src="project://database/Assets/BITKits/UX/MaterialDesign.uss?fileID=7433441132597879392&guid=e4dec78bf3c31184ca4f258af4dd1f8e&type=3#MaterialDesign" />
|
||||
<ui:VisualElement name="menu-container" class="material context-menu">
|
||||
<ui:Label text="文件" display-tooltip-when-elided="true" />
|
||||
<ui:Button text="新建" display-tooltip-when-elided="true" />
|
||||
<ui:Button text="复制" display-tooltip-when-elided="true" />
|
||||
<ui:Button text="粘贴" display-tooltip-when-elided="true" />
|
||||
<ui:Label text="属性" display-tooltip-when-elided="true" enable-rich-text="false" />
|
||||
<ui:Button text="创建到快捷方式" display-tooltip-when-elided="true" />
|
||||
</ui:VisualElement>
|
||||
</ui:UXML>
|
3
Unity/UX/BITDebuger.uss
Normal file
3
Unity/UX/BITDebuger.uss
Normal file
@@ -0,0 +1,3 @@
|
||||
Label {
|
||||
color: rgb(255, 255, 255);
|
||||
}
|
7
Unity/UX/BITDebuger.uxml
Normal file
7
Unity/UX/BITDebuger.uxml
Normal file
@@ -0,0 +1,7 @@
|
||||
<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="True">
|
||||
<Style src="project://database/Assets/BITKits/UX/BITDebuger.uss?fileID=7433441132597879392&guid=57e4df573faca4c42a9b11b5939353e1&type=3#BITDebuger" />
|
||||
<ui:VisualElement name="Root" picking-mode="Ignore" style="background-color: rgba(0, 0, 0, 0.5); padding-left: 8px; padding-right: 8px; padding-top: 8px; padding-bottom: 8px; margin-right: auto; visibility: visible; display: none;">
|
||||
<ui:Label text="调试数据" display-tooltip-when-elided="true" />
|
||||
<ui:ListView focusable="true" name="ListView" />
|
||||
</ui:VisualElement>
|
||||
</ui:UXML>
|
5
Unity/UX/BITExit.uxml
Normal file
5
Unity/UX/BITExit.uxml
Normal file
@@ -0,0 +1,5 @@
|
||||
<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/BITKits/UX/Common/Common.uss?fileID=7433441132597879392&guid=a3a69d3518fd02b489e721f3c5b0b539&type=3#Common" />
|
||||
<ui:VisualElement style="position: absolute; left: 0; top: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.94);" />
|
||||
<ui:Label text="正在退出应用程序" display-tooltip-when-elided="true" style="margin-left: auto; margin-right: auto; margin-top: auto; margin-bottom: auto; color: rgba(210, 210, 210, 255); font-size: 32px;" />
|
||||
</ui:UXML>
|
15
Unity/UX/BITPlayer_Maximize.uxml
Normal file
15
Unity/UX/BITPlayer_Maximize.uxml
Normal file
@@ -0,0 +1,15 @@
|
||||
<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" editor-extension-mode="False">
|
||||
<Style src="project://database/Assets/BITKits/UX/Common/Common.uss?fileID=7433441132597879392&guid=a3a69d3518fd02b489e721f3c5b0b539&type=3#Common" />
|
||||
<Style src="project://database/Assets/BITKits/UX/Common/Common_VideoPlayer.uss?fileID=7433441132597879392&guid=2789a9a4f892e99498132aac625854b7&type=3#Common_VideoPlayer[UNSUPPORTED_IN_UI_BUILDER]" />
|
||||
<ui:VisualElement name="maximize-container" class="video" style="background-color: rgb(0, 0, 0); -unity-background-scale-mode: scale-to-fit; flex-grow: 1;">
|
||||
<ui:VisualElement style="position: absolute; left: 0; right: 0; bottom: 0; height: 48px; background-color: rgba(0, 0, 0, 0.78); flex-direction: row; align-items: center; justify-content: space-around;">
|
||||
<ui:Button text=" " display-tooltip-when-elided="true" name="play-button" class="playerButton" style="left: 0; top: 0; right: 0; bottom: 0;" />
|
||||
<ui:Label text="16:59:01" display-tooltip-when-elided="true" name="currentTime-label" />
|
||||
<ui:VisualElement style="flex-grow: 1;">
|
||||
<ui:Slider high-value="1" name="player-slider" />
|
||||
</ui:VisualElement>
|
||||
<ui:Label text="16:57:57" display-tooltip-when-elided="true" name="totalTime-label" />
|
||||
<ui:Button text=" " display-tooltip-when-elided="true" name="minimize-button" class="playerButton" style="left: 0; top: 0; right: 0; bottom: 0; background-image: url('project://database/Assets/BITKits/Art/Icons/Icon_close-fullscreen.png?fileID=2800000&guid=7e1f4060a3bd8324d80ddf91be477e49&type=3#Icon_close-fullscreen');" />
|
||||
</ui:VisualElement>
|
||||
</ui:VisualElement>
|
||||
</ui:UXML>
|
23
Unity/UX/BITPlayer_Minimize.uxml
Normal file
23
Unity/UX/BITPlayer_Minimize.uxml
Normal file
@@ -0,0 +1,23 @@
|
||||
<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" editor-extension-mode="False">
|
||||
<ui:VisualElement name="minimize-container" style="background-color: rgb(31, 31, 31); -unity-background-scale-mode: scale-and-crop; margin-left: auto; margin-right: auto; margin-top: auto; margin-bottom: auto; border-top-left-radius: 8px; border-bottom-left-radius: 8px; border-top-right-radius: 8px; border-bottom-right-radius: 8px;">
|
||||
<ui:VisualElement style="background-color: rgb(255, 255, 255); padding-left: 16px; padding-right: 0; flex-direction: row; align-items: center; height: 48px; border-top-left-radius: 8px; border-top-right-radius: 8px; border-left-color: rgba(0, 0, 0, 0); border-right-color: rgba(0, 0, 0, 0); border-top-color: rgba(0, 0, 0, 0); border-bottom-color: rgba(0, 0, 0, 0);">
|
||||
<ui:Label text="videoName" display-tooltip-when-elided="true" name="videoName-label" style="color: rgb(48, 48, 48); font-size: 24px;" />
|
||||
<ui:Button display-tooltip-when-elided="true" name="maximize-button" class="windowButton" style="margin-left: auto;">
|
||||
<ui:VisualElement name="icon-image" />
|
||||
</ui:Button>
|
||||
<ui:Button display-tooltip-when-elided="true" name="close-button" class="windowButton alert">
|
||||
<ui:VisualElement name="icon-image" style="background-image: url('project://database/Assets/BITKits/Art/Icons/Icon_symbols_close.png?fileID=2800000&guid=aae5806b415655d41898c5712ec55d46&type=3#Icon_symbols_close');" />
|
||||
</ui:Button>
|
||||
</ui:VisualElement>
|
||||
<ui:VisualElement name="video" class="video" style="width: 1024px; height: 768px; flex-grow: 1; -unity-background-scale-mode: scale-to-fit;" />
|
||||
<ui:VisualElement style="position: absolute; left: 0; right: 0; bottom: 0; height: 48px; background-color: rgba(0, 0, 0, 0.78); flex-direction: row; align-items: center; justify-content: space-around;">
|
||||
<ui:Button text=" " display-tooltip-when-elided="true" name="play-button" class="playerButton" style="left: 0; top: 0; right: 0; bottom: 0;" />
|
||||
<ui:Label text="16:59:01" display-tooltip-when-elided="true" name="currentTime-label" />
|
||||
<ui:VisualElement style="flex-grow: 1;">
|
||||
<ui:Slider high-value="1" name="player-slider" />
|
||||
</ui:VisualElement>
|
||||
<ui:Label text="16:57:57" display-tooltip-when-elided="true" name="totalTime-label" />
|
||||
<ui:Button text=" " display-tooltip-when-elided="true" name="maximize-button" class="playerButton" style="left: 0; top: 0; right: 0; bottom: 0; background-image: url('project://database/Assets/BITKits/Art/Icons/Icon_chrome-full-screen.png?fileID=2800000&guid=14369dec7c1910746a4a0cfb41056f53&type=3#Icon_chrome-full-screen');" />
|
||||
</ui:VisualElement>
|
||||
</ui:VisualElement>
|
||||
</ui:UXML>
|
34
Unity/UX/BITQuest.uss
Normal file
34
Unity/UX/BITQuest.uss
Normal file
@@ -0,0 +1,34 @@
|
||||
.quest-title {
|
||||
font-size: 32px;
|
||||
-unity-font-definition: url('project://database/Assets/BITKits/Art/Fonts/NotoSansSC-Bold%20SDF.asset?fileID=11400000&guid=033cc1a4c6c35c6488ad74f4cee476ac&type=2#NotoSansSC-Bold SDF');
|
||||
-unity-text-align: middle-left;
|
||||
}
|
||||
|
||||
.quest-icon {
|
||||
background-image: url('project://database/Assets/Artist/Configs/UI%20Toolkit/UnityThemes/UnityDefaultRuntimeTheme.tss?fileID=2346436936791262179&guid=ac803f0924e239645ac6b2fc9baebc65&type=3#console.infoicon');
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
}
|
||||
|
||||
.quest-description {
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
.complete {
|
||||
}
|
||||
|
||||
.quest {
|
||||
}
|
||||
|
||||
.completed .quest #icon-image {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.completed .quest #title-label {
|
||||
display: flex;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.completed .quest #description-label {
|
||||
display: none;
|
||||
}
|
11
Unity/UX/BITQuestElement.uxml
Normal file
11
Unity/UX/BITQuestElement.uxml
Normal file
@@ -0,0 +1,11 @@
|
||||
<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" editor-extension-mode="False">
|
||||
<Style src="project://database/Assets/BITKits/UX/Common/Common.uss?fileID=7433441132597879392&guid=a3a69d3518fd02b489e721f3c5b0b539&type=3#Common" />
|
||||
<Style src="project://database/Assets/BITKits/UX/BITQuest.uss?fileID=7433441132597879392&guid=5c2d746d52de8e340b788034994ee23e&type=3#BITQuest" />
|
||||
<ui:VisualElement name="quest-element" class="quest">
|
||||
<ui:VisualElement name="Header" class="flex-horizontal">
|
||||
<ui:VisualElement name="icon-image" class="quest-icon" />
|
||||
<ui:Label text="NewQuest" display-tooltip-when-elided="true" name="title-label" class="quest-title" />
|
||||
</ui:VisualElement>
|
||||
<ui:Label text="Fnish This Quest" display-tooltip-when-elided="true" name="description-label" class="quest-description" />
|
||||
</ui:VisualElement>
|
||||
</ui:UXML>
|
10
Unity/UX/BITVideoPlayer.uxml
Normal file
10
Unity/UX/BITVideoPlayer.uxml
Normal file
@@ -0,0 +1,10 @@
|
||||
<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="BITPlayer_Maximize" src="project://database/Assets/BITKits/UX/BITPlayer_Maximize.uxml?fileID=9197481963319205126&guid=c2b372448a15ee2479a3a1433478a9e2&type=3#BITPlayer_Maximize" />
|
||||
<ui:Template name="BITPlayer_Minimize" src="project://database/Assets/BITKits/UX/BITPlayer_Minimize.uxml?fileID=9197481963319205126&guid=9ab1094fbb6435e4bbe5e0d97e6b4932&type=3#BITPlayer_Minimize" />
|
||||
<Style src="project://database/Assets/BITKits/UX/Common/Common.uss?fileID=7433441132597879392&guid=a3a69d3518fd02b489e721f3c5b0b539&type=3#Common" />
|
||||
<Style src="project://database/Assets/BITKits/UX/Common/Common_VideoPlayer.uss?fileID=7433441132597879392&guid=2789a9a4f892e99498132aac625854b7&type=3#Common_VideoPlayer" />
|
||||
<ui:VisualElement name="player-container" picking-mode="Ignore" class="root">
|
||||
<ui:Instance template="BITPlayer_Maximize" name="BITPlayer_Maximize" picking-mode="Ignore" class="root" />
|
||||
<ui:Instance template="BITPlayer_Minimize" name="BITPlayer_Minimize" picking-mode="Ignore" class="root" />
|
||||
</ui:VisualElement>
|
||||
</ui:UXML>
|
3
Unity/UX/BlackScreen.uxml
Normal file
3
Unity/UX/BlackScreen.uxml
Normal file
@@ -0,0 +1,3 @@
|
||||
<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="True">
|
||||
<ui:VisualElement style="position: absolute; left: 0; top: 0; right: 0; bottom: 0; background-color: rgb(0, 0, 0);" />
|
||||
</ui:UXML>
|
38
Unity/UX/Common/Common.asset
Normal file
38
Unity/UX/Common/Common.asset
Normal file
@@ -0,0 +1,38 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 19101, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_Name: Common
|
||||
m_EditorClassIdentifier:
|
||||
themeUss: {fileID: -4733365628477956816, guid: ac803f0924e239645ac6b2fc9baebc65,
|
||||
type: 3}
|
||||
m_TargetTexture: {fileID: 0}
|
||||
m_ScaleMode: 2
|
||||
m_Scale: 1
|
||||
m_ReferenceDpi: 96
|
||||
m_FallbackDpi: 96
|
||||
m_ReferenceResolution: {x: 1920, y: 1080}
|
||||
m_ScreenMatchMode: 0
|
||||
m_Match: 0.421
|
||||
m_SortingOrder: 0
|
||||
m_TargetDisplay: 0
|
||||
m_ClearDepthStencil: 1
|
||||
m_ClearColor: 0
|
||||
m_ColorClearValue: {r: 0, g: 0, b: 0, a: 0}
|
||||
m_DynamicAtlasSettings:
|
||||
m_MinAtlasSize: 8
|
||||
m_MaxAtlasSize: 4096
|
||||
m_MaxSubTextureSize: 64
|
||||
m_ActiveFilters: 31
|
||||
m_AtlasBlitShader: {fileID: 9101, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_RuntimeShader: {fileID: 9100, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_RuntimeWorldShader: {fileID: 9102, guid: 0000000000000000f000000000000000, type: 0}
|
||||
textSettings: {fileID: 0}
|
334
Unity/UX/Common/Common.uss
Normal file
334
Unity/UX/Common/Common.uss
Normal file
@@ -0,0 +1,334 @@
|
||||
Label {
|
||||
-unity-font-definition: url('project://database/Assets/BITKits/Art/Fonts/NotoSansSC-Regular%20SDF.asset?fileID=11400000&guid=4897d78d91e2fa34bbc06b9e213ac6d4&type=2#NotoSansSC-Regular SDF');
|
||||
color: rgb(210, 210, 210);
|
||||
}
|
||||
|
||||
Label.context {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
Label.subtitle {
|
||||
color: rgba(210, 210, 210, 0.82);
|
||||
font-size: 16px;
|
||||
-unity-text-align: middle-left;
|
||||
}
|
||||
|
||||
Label.title {
|
||||
font-size: 32px;
|
||||
-unity-font-style: bold;
|
||||
}
|
||||
|
||||
.context Label {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
Button {
|
||||
-unity-font-definition: url('project://database/Assets/BITKits/Art/Fonts/NotoSansSC-Regular%20SDF.asset?fileID=11400000&guid=4897d78d91e2fa34bbc06b9e213ac6d4&type=2#NotoSansSC-Regular SDF');
|
||||
border-left-width: 0;
|
||||
border-right-width: 0;
|
||||
border-top-width: 0;
|
||||
border-bottom-width: 0;
|
||||
border-left-color: rgba(0, 0, 0, 0);
|
||||
border-right-color: rgba(0, 0, 0, 0);
|
||||
border-top-color: rgba(0, 0, 0, 0);
|
||||
border-bottom-color: rgba(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
Button.context {
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
RadioButtonGroup Label {
|
||||
font-size: 18px;
|
||||
-unity-font-definition: url('project://database/Assets/BITKits/Art/Fonts/NotoSansSC-Bold%20SDF.asset?fileID=11400000&guid=033cc1a4c6c35c6488ad74f4cee476ac&type=2#NotoSansSC-Bold SDF');
|
||||
}
|
||||
|
||||
Toggle {
|
||||
}
|
||||
|
||||
Toggle Label {
|
||||
font-size: 16px;
|
||||
-unity-font: url('project://database/Assets/BITKits/Art/Fonts/TTF/SourceHanMono/SourceHanMono-Bold.ttc?fileID=12800000&guid=70e08abd745a9214299a520605342101&type=3#SourceHanMono-Bold');
|
||||
}
|
||||
|
||||
#unity-checkmark {
|
||||
}
|
||||
|
||||
.fullScreen {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
.markElement {
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
.flex-row {
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.profiler {
|
||||
flex-direction: row;
|
||||
padding-left: 8px;
|
||||
padding-right: 8px;
|
||||
padding-top: 2px;
|
||||
padding-bottom: 2px;
|
||||
color: rgba(255, 255, 255, 0.5);
|
||||
background-color: rgba(0, 0, 0, 0.91);
|
||||
-unity-text-align: middle-left;
|
||||
}
|
||||
|
||||
.profiler Label {
|
||||
color: rgba(255, 255, 255, 0.5);
|
||||
}
|
||||
|
||||
.square-button {
|
||||
background-color: rgba(0, 0, 0, 0.91);
|
||||
padding-left: 8px;
|
||||
padding-right: 8px;
|
||||
padding-top: 8px;
|
||||
padding-bottom: 8px;
|
||||
border-left-width: 0;
|
||||
border-right-width: 0;
|
||||
border-top-width: 0;
|
||||
border-bottom-width: 0;
|
||||
}
|
||||
|
||||
.square-button:hover {
|
||||
background-color: rgb(180, 180, 180);
|
||||
border-left-width: 0;
|
||||
border-right-width: 0;
|
||||
border-top-width: 0;
|
||||
border-bottom-width: 0;
|
||||
}
|
||||
|
||||
.square-button:active {
|
||||
background-color: rgb(32, 32, 32);
|
||||
}
|
||||
|
||||
.square-button:hover #icon-image {
|
||||
}
|
||||
|
||||
.navigation:active {
|
||||
background-color: rgba(255, 255, 255, 0.13);
|
||||
}
|
||||
|
||||
.invisable {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.scaleToFit {
|
||||
-unity-background-scale-mode: scale-to-fit;
|
||||
}
|
||||
|
||||
.scaleAndCrop {
|
||||
-unity-background-scale-mode: scale-to-fit;
|
||||
}
|
||||
|
||||
.return-button {
|
||||
border-left-width: 0;
|
||||
border-right-width: 0;
|
||||
border-top-width: 0;
|
||||
border-bottom-width: 0;
|
||||
height: 64px;
|
||||
border-top-left-radius: 6px;
|
||||
border-bottom-left-radius: 6px;
|
||||
border-top-right-radius: 6px;
|
||||
border-bottom-right-radius: 6px;
|
||||
flex-direction: row;
|
||||
min-width: 64px;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
font-size: 24px;
|
||||
-unity-font-definition: url('project://database/Assets/BITKits/Art/Fonts/NotoSansSC-Bold%20SDF.asset?fileID=11400000&guid=033cc1a4c6c35c6488ad74f4cee476ac&type=2#NotoSansSC-Bold SDF');
|
||||
background-color: rgb(210, 210, 210);
|
||||
}
|
||||
|
||||
.return-button:hover {
|
||||
background-color: rgb(156, 156, 156);
|
||||
}
|
||||
|
||||
.return-button:active {
|
||||
background-color: rgb(108, 108, 108);
|
||||
}
|
||||
|
||||
.return-button VisualElement#icon-image {
|
||||
background-image: url('project://database/Assets/BITKits/Art/Icons/Icon_return.png?fileID=2800000&guid=300cc21a26336b542a7fc85d6f9333f6&type=3#Icon_return');
|
||||
-unity-background-image-tint-color: rgb(64, 64, 64);
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
}
|
||||
|
||||
.return-button:active VisualElement#icon-image {
|
||||
-unity-background-image-tint-color: rgb(200, 200, 200);
|
||||
}
|
||||
|
||||
.return-button #context-label {
|
||||
color: rgb(106, 106, 106);
|
||||
font-size: 24px;
|
||||
-unity-text-align: middle-left;
|
||||
-unity-font-style: normal;
|
||||
-unity-font-definition: url('project://database/Assets/BITKits/Art/Fonts/NotoSansSC-Bold%20SDF.asset?fileID=11400000&guid=033cc1a4c6c35c6488ad74f4cee476ac&type=2#NotoSansSC-Bold SDF');
|
||||
}
|
||||
|
||||
.magin {
|
||||
margin-left: 8px;
|
||||
margin-right: 8px;
|
||||
margin-top: 8px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.underline {
|
||||
border-bottom-width: 2px;
|
||||
}
|
||||
|
||||
.underline .dark-theme {
|
||||
border-left-color: rgb(195, 195, 195);
|
||||
border-right-color: rgb(195, 195, 195);
|
||||
border-top-color: rgb(195, 195, 195);
|
||||
border-bottom-color: rgb(195, 195, 195);
|
||||
}
|
||||
|
||||
.root {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
-unity-background-scale-mode: scale-and-crop;
|
||||
}
|
||||
|
||||
.flex-horizontal {
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.auto {
|
||||
}
|
||||
|
||||
.center {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
margin-top: auto;
|
||||
margin-bottom: auto;
|
||||
}
|
||||
|
||||
.context {
|
||||
}
|
||||
|
||||
Label.theme-dark {
|
||||
color: rgb(38, 38, 38);
|
||||
}
|
||||
|
||||
.theme-dark RadioButtonGroup Label {
|
||||
color: rgb(75, 75, 75);
|
||||
}
|
||||
|
||||
.theme-dark Label {
|
||||
color: rgba(7, 7, 7, 0.74);
|
||||
-unity-font-definition: url('project://database/Assets/BITKits/Art/Fonts/NotoSansSC-Bold%20SDF.asset?fileID=11400000&guid=033cc1a4c6c35c6488ad74f4cee476ac&type=2#NotoSansSC-Bold SDF');
|
||||
}
|
||||
|
||||
.circle {
|
||||
}
|
||||
|
||||
.noMargin {
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.profiler--light {
|
||||
color: rgb(161, 161, 161);
|
||||
}
|
||||
|
||||
.return-button.dark {
|
||||
background-color: rgb(64, 64, 64);
|
||||
padding-left: 15px;
|
||||
align-items: center;
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.return-button.dark VisualElement#icon-image {
|
||||
-unity-background-image-tint-color: rgb(212, 212, 212);
|
||||
}
|
||||
|
||||
.return-button.dark:hover {
|
||||
background-color: rgb(128, 128, 128);
|
||||
}
|
||||
|
||||
.return-button.dark:active {
|
||||
background-color: rgb(210, 210, 210);
|
||||
}
|
||||
|
||||
.return-button.dark:active VisualElement#icon-image {
|
||||
-unity-background-image-tint-color: rgb(32, 32, 32);
|
||||
}
|
||||
|
||||
.return-button:hover #context-label {
|
||||
color: rgb(209, 209, 209);
|
||||
}
|
||||
|
||||
.unity-scroll-view.unity-scroll-view--vertical.unity-scroll-view--scroll.unity-base-dropdown__container-inner {
|
||||
border-left-width: 0;
|
||||
border-right-width: 0;
|
||||
border-top-width: 0;
|
||||
border-bottom-width: 0;
|
||||
}
|
||||
|
||||
.return-button.dark Label#context-label {
|
||||
color: rgba(212, 212, 212, 0.82);
|
||||
}
|
||||
|
||||
.return-button:active.dark Label#context-label {
|
||||
color: rgb(32, 32, 32);
|
||||
}
|
||||
|
||||
.clear {
|
||||
background-color: rgba(64, 64, 64, 0);
|
||||
-unity-background-image-tint-color: rgba(255, 255, 255, 0);
|
||||
}
|
||||
|
||||
.return-toggle > Label {
|
||||
-unity-font-definition: initial;
|
||||
-unity-font: url('project://database/Assets/BITKits/Art/Fonts/TTF/SourceHanMono/SourceHanMono-Bold.ttc?fileID=12800000&guid=70e08abd745a9214299a520605342101&type=3#SourceHanMono-Bold');
|
||||
font-size: 24px;
|
||||
-unity-text-align: middle-left;
|
||||
}
|
||||
|
||||
.return-toggle > VisualElement {
|
||||
flex-shrink: 1;
|
||||
flex-basis: auto;
|
||||
}
|
||||
|
||||
.return-toggle {
|
||||
height: 64px;
|
||||
background-color: rgb(64, 64, 64);
|
||||
border-top-left-radius: 8px;
|
||||
border-bottom-left-radius: 8px;
|
||||
border-top-right-radius: 8px;
|
||||
border-bottom-right-radius: 8px;
|
||||
padding-left: 12px;
|
||||
padding-right: 12px;
|
||||
}
|
||||
|
||||
.return-radiogroup {
|
||||
flex-direction: column;
|
||||
background-color: rgb(64, 64, 64);
|
||||
border-top-left-radius: 8px;
|
||||
border-bottom-left-radius: 8px;
|
||||
border-top-right-radius: 8px;
|
||||
border-bottom-right-radius: 8px;
|
||||
padding-left: 12px;
|
||||
padding-right: 12px;
|
||||
padding-top: 8px;
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
|
||||
.return-radiogroup > VisualElement {
|
||||
flex-direction: row;
|
||||
}
|
68
Unity/UX/Common/Common_VideoPlayer.uss
Normal file
68
Unity/UX/Common/Common_VideoPlayer.uss
Normal file
@@ -0,0 +1,68 @@
|
||||
.video {
|
||||
background-image: url('project://database/Assets/BITKits/Materials/UX_Video.renderTexture?fileID=8400000&guid=a8660e3193ce9b54cba583778de427c9&type=2#UX_Video');
|
||||
}
|
||||
|
||||
.playerButton {
|
||||
background-color: rgba(0, 0, 0, 0);
|
||||
background-image: url('project://database/Assets/Artist/Arts/Icons/Icon_player-play-filled.png?fileID=2800000&guid=a1f9760a9770ae24aabe1a346a44d2a5&type=3#Icon_player-play-filled');
|
||||
border-left-width: 0;
|
||||
border-right-width: 0;
|
||||
border-top-width: 0;
|
||||
border-bottom-width: 0;
|
||||
-unity-background-image-tint-color: rgb(210, 210, 210);
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
}
|
||||
|
||||
.playerButton:hover {
|
||||
-unity-background-image-tint-color: rgb(255, 255, 255);
|
||||
scale: 1.2 1.2;
|
||||
}
|
||||
|
||||
.playerButton:active {
|
||||
-unity-background-image-tint-color: rgb(128, 128, 128);
|
||||
}
|
||||
|
||||
.playerButton.paused {
|
||||
background-image: url('project://database/Assets/BITKits/Art/Icons/EditorIcons/d_PauseButton.png?fileID=2800000&guid=484fbfdad170e6f4980216bdc7259818&type=3#d_PauseButton');
|
||||
}
|
||||
|
||||
Button.windowButton {
|
||||
background-color: rgba(0, 0, 0, 0);
|
||||
border-left-width: 0;
|
||||
border-right-width: 0;
|
||||
border-top-width: 0;
|
||||
border-bottom-width: 0;
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
-unity-background-image-tint-color: rgb(32, 32, 32);
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
padding-top: 0;
|
||||
padding-bottom: 0;
|
||||
margin-right: 0;
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
Button.windowButton:hover {
|
||||
background-color: rgb(204, 204, 204);
|
||||
}
|
||||
|
||||
Button.windowButton:active {
|
||||
background-color: rgb(132, 132, 132);
|
||||
}
|
||||
|
||||
Button.windowButton #icon-image {
|
||||
background-image: url('project://database/Assets/BITKits/Art/Icons/Icon_chrome-full-screen.png?fileID=2800000&guid=14369dec7c1910746a4a0cfb41056f53&type=3#Icon_chrome-full-screen');
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
-unity-background-image-tint-color: rgb(32, 32, 32);
|
||||
}
|
||||
|
||||
Button.windowButton.alert:hover {
|
||||
background-color: rgb(255, 35, 35);
|
||||
}
|
17
Unity/UX/DataPlayer.uxml
Normal file
17
Unity/UX/DataPlayer.uxml
Normal file
@@ -0,0 +1,17 @@
|
||||
<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" editor-extension-mode="False">
|
||||
<ui:VisualElement name="player-bar" class="player" style="flex-direction: column-reverse; display: flex; padding-left: 8px; padding-right: 8px; padding-top: 4px; padding-bottom: 4px; background-color: rgba(0, 0, 0, 0.82); border-top-left-radius: 8px; border-bottom-left-radius: 8px; border-top-right-radius: 8px; border-bottom-right-radius: 8px;">
|
||||
<ui:VisualElement style="flex-direction: row; align-items: center;">
|
||||
<ui:Button display-tooltip-when-elided="true" name="player_track_prev-button" class="playerButton" style="margin-left: 0; margin-right: 0; margin-top: 0; margin-bottom: 0; padding-left: 0; padding-right: 0; padding-top: 0; padding-bottom: 0; background-image: url('project://database/Assets/Artist/Arts/Icons/Icon_player-track-prev-filled.png?fileID=2800000&guid=7d1187fbf91d0ac418a4f5d768b99c3f&type=3#Icon_player-track-prev-filled'); width: 24px; height: 24px; background-color: rgba(188, 188, 188, 0); border-left-width: 0; border-right-width: 0; border-top-width: 0; border-bottom-width: 0;" />
|
||||
<ui:Button display-tooltip-when-elided="true" name="play-button" class="playerButton" style="margin-left: 0; margin-right: 0; margin-top: 0; margin-bottom: 0; padding-left: 0; padding-right: 0; padding-top: 0; padding-bottom: 0; background-image: url('project://database/Assets/Artist/Arts/Icons/Icon_player-play-filled.png?fileID=2800000&guid=a1f9760a9770ae24aabe1a346a44d2a5&type=3#Icon_player-play-filled'); width: 24px; height: 24px; background-color: rgba(188, 188, 188, 0); border-left-width: 0; border-right-width: 0; border-top-width: 0; border-bottom-width: 0;" />
|
||||
<ui:Button display-tooltip-when-elided="true" name="pause-button" class="playerButton" style="margin-left: 0; margin-right: 0; margin-top: 0; margin-bottom: 0; padding-left: 0; padding-right: 0; padding-top: 0; padding-bottom: 0; background-image: url('project://database/Assets/Artist/Arts/Icons/Icon_player-pause-filled.png?fileID=2800000&guid=d0bbb0fbd038fd04e92661341531c8ab&type=3#Icon_player-pause-filled'); width: 24px; height: 24px; background-color: rgba(188, 188, 188, 0); border-left-width: 0; border-right-width: 0; border-top-width: 0; border-bottom-width: 0;" />
|
||||
<ui:Button display-tooltip-when-elided="true" name="player_track_next-button" class="playerButton" style="margin-left: 0; margin-right: 0; margin-top: 0; margin-bottom: 0; padding-left: 0; padding-right: 0; padding-top: 0; padding-bottom: 0; background-image: url('project://database/Assets/Artist/Arts/Icons/Icon_player-track-next-filled.png?fileID=2800000&guid=20c29de72b51c9344b5fef47e6472693&type=3#Icon_player-track-next-filled'); width: 24px; height: 24px; background-color: rgba(188, 188, 188, 0); border-left-width: 0; border-right-width: 0; border-top-width: 0; border-bottom-width: 0;" />
|
||||
<ui:Slider picking-mode="Ignore" value="0.64" high-value="1" name="player-slider" style="height: 6px; flex-grow: 1;" />
|
||||
</ui:VisualElement>
|
||||
<ui:VisualElement name="player-labls" style="flex-direction: row-reverse;">
|
||||
<ui:Label text="00:32" display-tooltip-when-elided="true" name="playerTotalTime-label" style="-unity-text-align: upper-right;" />
|
||||
<ui:Label text="/" display-tooltip-when-elided="true" name="line" />
|
||||
<ui:Label text="00:16" display-tooltip-when-elided="true" name="playerTime-label" style="-unity-text-align: upper-right;" />
|
||||
<ui:Label text="播放中" display-tooltip-when-elided="true" name="playerState-label" style="color: rgb(255, 115, 4);" />
|
||||
</ui:VisualElement>
|
||||
</ui:VisualElement>
|
||||
</ui:UXML>
|
19
Unity/UX/HttpGetSync.uxml
Normal file
19
Unity/UX/HttpGetSync.uxml
Normal file
@@ -0,0 +1,19 @@
|
||||
<<<<<<< HEAD
|
||||
<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/BITKits/UX/Editor/Inspector.uss?fileID=7433441132597879392&guid=3a78fb5b182fa434781baf5c9f733586&type=3#Inspector" />
|
||||
<ui:Label text="HttpClient" display-tooltip-when-elided="true" class="title" />
|
||||
<ui:Label text="设置" display-tooltip-when-elided="true" class="subTitle" />
|
||||
<ui:TextField picking-mode="Ignore" label="URL" max-length="-2" />
|
||||
<ui:Label text="输出" display-tooltip-when-elided="true" class="subTitle" />
|
||||
<ui:Label text="Printf("HelloWorld");" display-tooltip-when-elided="true" binding-path="result" style="white-space: normal;" />
|
||||
</ui:UXML>
|
||||
=======
|
||||
<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/BITKits/UX/Editor/Inspector.uss?fileID=7433441132597879392&guid=3a78fb5b182fa434781baf5c9f733586&type=3#Inspector" />
|
||||
<ui:Label text="HttpClient" display-tooltip-when-elided="true" class="title" />
|
||||
<ui:Label text="设置" display-tooltip-when-elided="true" class="subTitle" />
|
||||
<ui:TextField picking-mode="Ignore" label="URL" max-length="-2" />
|
||||
<ui:Label text="输出" display-tooltip-when-elided="true" class="subTitle" />
|
||||
<ui:Label text="Printf("HelloWorld");" display-tooltip-when-elided="true" binding-path="result" style="white-space: normal;" />
|
||||
</ui:UXML>
|
||||
>>>>>>> b6ecb6389be6872d7d4965b7dbe0835168c62e8d
|
20
Unity/UX/Inspector.uss
Normal file
20
Unity/UX/Inspector.uss
Normal file
@@ -0,0 +1,20 @@
|
||||
Label {
|
||||
-unity-font-definition: url('project://database/Assets/BITKits/Art/Fonts/NotoSansSC-Regular%20SDF.asset?fileID=11400000&guid=4897d78d91e2fa34bbc06b9e213ac6d4&type=2#NotoSansSC-Regular SDF');
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 24px;
|
||||
margin-bottom: 4px;
|
||||
-unity-font-definition: url('project://database/Assets/BITKits/Art/Fonts/NotoSansSC-Regular%20SDF.asset?fileID=11400000&guid=4897d78d91e2fa34bbc06b9e213ac6d4&type=2#NotoSansSC-Regular SDF');
|
||||
}
|
||||
|
||||
.subTitle {
|
||||
-unity-font-style: bold;
|
||||
margin-top: 4px;
|
||||
margin-bottom: 4px;
|
||||
border-bottom-width: 1px;
|
||||
border-left-color: rgb(149, 149, 149);
|
||||
border-right-color: rgb(149, 149, 149);
|
||||
border-top-color: rgb(149, 149, 149);
|
||||
border-bottom-color: rgb(149, 149, 149);
|
||||
}
|
209
Unity/UX/MaterialDesign.uss
Normal file
209
Unity/UX/MaterialDesign.uss
Normal file
@@ -0,0 +1,209 @@
|
||||
.material .container {
|
||||
padding-left: 32px;
|
||||
padding-right: 32px;
|
||||
padding-top: 24px;
|
||||
padding-bottom: 24px;
|
||||
border-left-width: 1px;
|
||||
border-right-width: 1px;
|
||||
border-top-width: 1px;
|
||||
border-bottom-width: 1px;
|
||||
border-left-color: rgba(0, 0, 0, 0.09);
|
||||
border-right-color: rgba(0, 0, 0, 0.09);
|
||||
border-top-color: rgba(0, 0, 0, 0.09);
|
||||
border-bottom-color: rgba(0, 0, 0, 0.09);
|
||||
border-top-left-radius: 20px;
|
||||
border-bottom-left-radius: 20px;
|
||||
border-top-right-radius: 20px;
|
||||
border-bottom-right-radius: 20px;
|
||||
margin-left: 8px;
|
||||
margin-right: 8px;
|
||||
margin-top: 8px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.material Label {
|
||||
color: rgb(32, 33, 36);
|
||||
-unity-font-definition: initial;
|
||||
-unity-font: url('project://database/Assets/BITKits/Art/Fonts/TTF/SourceHanMono/SourceHanMono-Medium.ttc?fileID=12800000&guid=c8058440fb1ea26488e022a5ee5b3b35&type=3#SourceHanMono-Medium');
|
||||
}
|
||||
|
||||
.material Label.title {
|
||||
color: rgb(32, 33, 36);
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
Label.material.subtitle {
|
||||
color: rgb(95, 99, 104);
|
||||
}
|
||||
|
||||
Slider.material {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.material Button {
|
||||
background-color: rgba(26, 115, 232, 0.06);
|
||||
border-left-width: 0;
|
||||
border-right-width: 0;
|
||||
border-top-width: 0;
|
||||
border-bottom-width: 0;
|
||||
color: rgb(26, 115, 232);
|
||||
transition-duration: 0.32s;
|
||||
-unity-font: url('project://database/Assets/BITKits/Art/Fonts/TTF/NotoSansSC/NotoSansSC-Bold.otf?fileID=12800000&guid=e530f1efcc7d4194f906fb563685b850&type=3#NotoSansSC-Bold');
|
||||
-unity-font-definition: initial;
|
||||
border-top-left-radius: 4px;
|
||||
border-bottom-left-radius: 4px;
|
||||
border-top-right-radius: 4px;
|
||||
border-bottom-right-radius: 4px;
|
||||
}
|
||||
|
||||
.material Button:hover {
|
||||
background-color: rgba(26, 115, 232, 0.25);
|
||||
transition-duration: 0.32s;
|
||||
}
|
||||
|
||||
.material Button:active {
|
||||
background-color: rgba(26, 115, 232, 0.39);
|
||||
transition-duration: 0s;
|
||||
}
|
||||
|
||||
.material Slider #unity-dragger {
|
||||
border-top-left-radius: 12px;
|
||||
border-bottom-left-radius: 12px;
|
||||
border-top-right-radius: 12px;
|
||||
border-bottom-right-radius: 12px;
|
||||
height: 24px;
|
||||
width: 24px;
|
||||
border-left-width: 0;
|
||||
border-right-width: 0;
|
||||
border-top-width: 0;
|
||||
border-bottom-width: 0;
|
||||
background-color: rgb(26, 115, 232);
|
||||
}
|
||||
|
||||
.material Slider #unity-drag-container {
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
min-width: 128px;
|
||||
}
|
||||
|
||||
.material Slider #unity-tracker {
|
||||
border-left-width: 0;
|
||||
border-right-width: 0;
|
||||
border-top-width: 0;
|
||||
border-bottom-width: 0;
|
||||
background-color: rgba(26, 115, 232, 0.25);
|
||||
border-top-left-radius: 3px;
|
||||
border-bottom-left-radius: 3px;
|
||||
border-top-right-radius: 3px;
|
||||
border-bottom-right-radius: 3px;
|
||||
}
|
||||
|
||||
.material .unity-base-field Label {
|
||||
color: rgb(95, 99, 104);
|
||||
-unity-font-definition: initial;
|
||||
-unity-font: url('project://database/Assets/BITKits/Art/Fonts/TTF/SourceHanMono/SourceHanMono-Medium.ttc?fileID=12800000&guid=c8058440fb1ea26488e022a5ee5b3b35&type=3#SourceHanMono-Medium');
|
||||
-unity-text-align: middle-left;
|
||||
}
|
||||
|
||||
.material #unity-text-input {
|
||||
background-color: rgba(0, 0, 0, 0.06);
|
||||
border-left-width: 0;
|
||||
border-right-width: 0;
|
||||
border-top-width: 0;
|
||||
border-bottom-width: 0.1px;
|
||||
border-left-color: rgba(0, 0, 0, 0.39);
|
||||
border-right-color: rgba(0, 0, 0, 0.39);
|
||||
border-top-color: rgba(0, 0, 0, 0.39);
|
||||
border-bottom-color: rgba(0, 0, 0, 0.39);
|
||||
}
|
||||
|
||||
.material #unity-checkmark {
|
||||
border-left-color: rgba(0, 0, 0, 0.13);
|
||||
border-right-color: rgba(0, 0, 0, 0.13);
|
||||
border-top-color: rgba(0, 0, 0, 0.13);
|
||||
border-bottom-color: rgba(0, 0, 0, 0.13);
|
||||
border-top-left-radius: 6px;
|
||||
border-bottom-left-radius: 6px;
|
||||
border-top-right-radius: 6px;
|
||||
border-bottom-right-radius: 6px;
|
||||
-unity-background-image-tint-color: rgb(26, 115, 232);
|
||||
}
|
||||
|
||||
.material DropdownField > VisualElement {
|
||||
border-left-width: 0;
|
||||
border-right-width: 0;
|
||||
border-top-width: 0;
|
||||
border-bottom-width: 0;
|
||||
border-top-left-radius: 8px;
|
||||
border-bottom-left-radius: 8px;
|
||||
border-top-right-radius: 8px;
|
||||
border-bottom-right-radius: 8px;
|
||||
background-color: rgba(26, 115, 232, 0.13);
|
||||
}
|
||||
|
||||
.material DropdownField > VisualElement > PopupTextElement {
|
||||
color: rgb(26, 115, 232);
|
||||
-unity-font-definition: initial;
|
||||
-unity-font: url('project://database/Assets/BITKits/Art/Fonts/TTF/SourceHanMono/SourceHanMono-Bold.ttc?fileID=12800000&guid=70e08abd745a9214299a520605342101&type=3#SourceHanMono-Bold');
|
||||
}
|
||||
|
||||
.material DropdownField > VisualElement > VisualElement {
|
||||
-unity-background-image-tint-color: rgb(26, 115, 232);
|
||||
}
|
||||
|
||||
.unity-base-popup-field:active > .unity-base-popup-field_input {
|
||||
color: rgb(255, 0, 0);
|
||||
background-color: rgb(255, 0, 0);
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.material .h2 {
|
||||
font-size: 30px;
|
||||
-unity-font-definition: initial;
|
||||
-unity-font: url('project://database/Assets/BITKits/Art/Fonts/TTF/SourceHanMono/SourceHanMono-Bold.ttc?fileID=12800000&guid=70e08abd745a9214299a520605342101&type=3#SourceHanMono-Bold');
|
||||
}
|
||||
|
||||
.unity-base-dropdown > VisualElement {
|
||||
border-left-width: 0;
|
||||
border-right-width: 0;
|
||||
border-top-width: 0;
|
||||
border-bottom-width: 0;
|
||||
}
|
||||
|
||||
.unity-base-dropdown__label {
|
||||
color: rgb(26, 115, 232);
|
||||
-unity-font: url('project://database/Assets/BITKits/Art/Fonts/TTF/SourceHanMono/SourceHanMono-Bold.ttc?fileID=12800000&guid=70e08abd745a9214299a520605342101&type=3#SourceHanMono-Bold');
|
||||
-unity-font-definition: initial;
|
||||
}
|
||||
|
||||
.context-menu {
|
||||
background-color: rgb(255, 255, 255);
|
||||
border-top-left-radius: 8px;
|
||||
border-bottom-left-radius: 8px;
|
||||
border-top-right-radius: 8px;
|
||||
border-bottom-right-radius: 8px;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
padding-top: 4px;
|
||||
padding-bottom: 0;
|
||||
position: absolute;
|
||||
min-width: 256px;
|
||||
}
|
||||
|
||||
.context-menu > Label {
|
||||
margin-left: 12px;
|
||||
margin-right: 12px;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.context-menu Button {
|
||||
-unity-text-align: upper-left;
|
||||
border-top-left-radius: 0;
|
||||
border-bottom-left-radius: 0;
|
||||
border-top-right-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
15
Unity/UX/ReferenceEditor.uxml
Normal file
15
Unity/UX/ReferenceEditor.uxml
Normal file
@@ -0,0 +1,15 @@
|
||||
<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="True">
|
||||
<Style src="project://database/Assets/BITKits/UX/Common/Common.uss?fileID=7433441132597879392&guid=a3a69d3518fd02b489e721f3c5b0b539&type=3#Common" />
|
||||
<Style src="project://database/Assets/BITKits/UX/Editor/Inspector.uss?fileID=7433441132597879392&guid=3a78fb5b182fa434781baf5c9f733586&type=3#Inspector" />
|
||||
<ui:VisualElement name="root-container" style="align-items: stretch;">
|
||||
<ui:VisualElement name="toolbar-container" style="flex-direction: row; justify-content: space-between; padding-left: 4px; padding-right: 4px; padding-top: 4px; padding-bottom: 4px;">
|
||||
<ui:Label text="搜索" display-tooltip-when-elided="true" />
|
||||
<uie:ToolbarPopupSearchField focusable="true" />
|
||||
</ui:VisualElement>
|
||||
<ui:ScrollView>
|
||||
<ui:GroupBox>
|
||||
<ui:ListView focusable="true" name="context-listview" />
|
||||
</ui:GroupBox>
|
||||
</ui:ScrollView>
|
||||
</ui:VisualElement>
|
||||
</ui:UXML>
|
19
Unity/UX/SubMenu.uss
Normal file
19
Unity/UX/SubMenu.uss
Normal file
@@ -0,0 +1,19 @@
|
||||
Button {
|
||||
background-color: rgba(0, 0, 0, 0);
|
||||
color: rgba(255, 255, 255, 0.5);
|
||||
-unity-font-definition: url('project://database/Assets/Artist/Art/Fonts/NotoSansSC-Bold%20SDF.asset?fileID=11400000&guid=033cc1a4c6c35c6488ad74f4cee476ac&type=2#NotoSansSC-Bold SDF');
|
||||
border-left-width: 0;
|
||||
border-right-width: 0;
|
||||
border-top-width: 0;
|
||||
border-bottom-width: 0;
|
||||
-unity-text-align: middle-left;
|
||||
}
|
||||
|
||||
Button:hover {
|
||||
background-color: rgba(64, 64, 64, 255);
|
||||
}
|
||||
|
||||
Button:active {
|
||||
background-color: rgba(125, 125, 125, 255);
|
||||
color: rgba(29, 29, 29, 255);
|
||||
}
|
14
Unity/UX/SubMenu.uxml
Normal file
14
Unity/UX/SubMenu.uxml
Normal file
@@ -0,0 +1,14 @@
|
||||
<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="True">
|
||||
<Style src="project://database/Assets/Toolkits/UX/SubMenu.uss?fileID=7433441132597879392&guid=9dd2e958543191d4e9875b6029234323&type=3#SubMenu" />
|
||||
<ui:VisualElement style="background-color: rgb(34, 34, 34); transform-origin: left top; width: 256px; position: absolute;">
|
||||
<ui:Label text="子菜单" display-tooltip-when-elided="true" name="Label" style="color: rgba(255, 255, 255, 0.5); -unity-font-definition: url('project://database/Assets/Artist/Art/Fonts/NotoSansSC-Regular%20SDF.asset?fileID=11400000&guid=4897d78d91e2fa34bbc06b9e213ac6d4&type=2#NotoSansSC-Regular SDF'); -unity-font-style: bold; font-size: 18px; margin-left: 8px; margin-right: 8px; margin-top: 8px; margin-bottom: 8px; align-items: flex-start; -unity-text-align: middle-left;" />
|
||||
<ui:VisualElement name="Context">
|
||||
<ui:Button text="Button" display-tooltip-when-elided="true" />
|
||||
<ui:Button text="Button" display-tooltip-when-elided="true" />
|
||||
<ui:Button text="Button" display-tooltip-when-elided="true" />
|
||||
<ui:Button text="Button" display-tooltip-when-elided="true" />
|
||||
<ui:Button text="Button" display-tooltip-when-elided="true" />
|
||||
<ui:Button text="Button" display-tooltip-when-elided="true" />
|
||||
</ui:VisualElement>
|
||||
</ui:VisualElement>
|
||||
</ui:UXML>
|
6
Unity/UX/WaitingScreen.uxml
Normal file
6
Unity/UX/WaitingScreen.uxml
Normal file
@@ -0,0 +1,6 @@
|
||||
<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="True">
|
||||
<ui:VisualElement name="Background" picking-mode="Ignore" style="background-color: rgba(0, 0, 0, 0.03); position: absolute; left: 0; top: 0; bottom: 0; right: 0;" />
|
||||
<ui:VisualElement style="margin-left: auto; margin-right: auto; margin-top: auto; margin-bottom: auto; -unity-font-definition: url('project://database/Assets/BITKits/Art/Fonts/NotoSansSC-Bold%20SDF.asset?fileID=11400000&guid=033cc1a4c6c35c6488ad74f4cee476ac&type=2#NotoSansSC-Bold SDF'); color: rgb(144, 144, 144);">
|
||||
<ui:Label text="等待中" display-tooltip-when-elided="true" style="font-size: 32px;" />
|
||||
</ui:VisualElement>
|
||||
</ui:UXML>
|
Reference in New Issue
Block a user