This commit is contained in:
CortexCore
2024-05-31 01:23:15 +08:00
parent c798b224be
commit 299082fe27
164 changed files with 3604 additions and 2018 deletions

View File

@@ -14,14 +14,16 @@
border-bottom-left-radius: 2px;
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
-unity-font-definition: url('project://database/Assets/BITKit/Unity/Art/Fonts/SDF/SourceHanMono-Regular%20SDF.asset?fileID=11400000&guid=b3753d022dd4b4545b0e5f3f6e9a997f&type=2#Assets/BITKit/Unity/Art/Fonts/SDF/SourceHanMono-Regular SDF.asset');
-unity-font-definition: url("project://database/Assets/BITKit/Unity/Art/Fonts/SDF/SourceHanMono-Regular%20SDF.asset?fileID=11400000&guid=b3753d022dd4b4545b0e5f3f6e9a997f&type=2#Assets/BITKit/Unity/Art/Fonts/SDF/SourceHanMono-Regular SDF.asset");
min-width: 128px;
-unity-background-image-tint-color: rgba(255, 255, 255, 0.78);
}
.alert-container Button:hover {
color: rgb(0, 0, 0);
background-color: rgba(255, 255, 255, 0.78);
transition-duration: 0.1s;
-unity-background-image-tint-color: rgb(32, 32, 32);
}
.alert-container Button:active {
@@ -36,3 +38,19 @@
border-top-color: rgb(123, 123, 123);
border-bottom-color: rgb(123, 123, 123);
}
.alert-container .unity-base-field__input {
background-color: rgba(255, 255, 255, 0);
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);
}
.alert-container .unity-base-popup-field__arrow {
-unity-background-image-tint-color: rgba(255, 255, 255, 0.78);
}
.alert-container #unity-text-input .unity-text-element {
color: rgba(255, 255, 255, 0.78);
}

View File

@@ -12,8 +12,7 @@ MonoBehaviour:
m_Script: {fileID: 19101, guid: 0000000000000000e000000000000000, type: 0}
m_Name: Common
m_EditorClassIdentifier:
themeUss: {fileID: -4733365628477956816, guid: ac803f0924e239645ac6b2fc9baebc65,
type: 3}
themeUss: {fileID: -4733365628477956816, guid: ac803f0924e239645ac6b2fc9baebc65, type: 3}
m_TargetTexture: {fileID: 0}
m_ScaleMode: 2
m_ReferenceSpritePixelsPerUnit: 100

View File

@@ -314,3 +314,74 @@ Label {
.armorPlate-container:hover {
background-color: rgba(255, 255, 255, 0.78);
}
.flex-center {
}
TranslucentVisualElement {
-unity-background-image-tint-color: rgb(128, 128, 128);
}
.unity-scroller {
width: 8px;
min-width: 0;
}
.unity-scroller--vertical {
width: 8px;
min-width: 0;
display: flex;
}
.unity-scroller--vertical > .unity-scroller__slider {
margin-top: 0;
margin-right: 0;
margin-bottom: 0;
margin-left: 0;
min-width: 0;
}
.unity-repeat-button {
display: none;
}
.unity-scroller .unity-base-slider__tracker {
display: flex;
min-width: 0;
background-color: rgba(255, 255, 255, 0.03);
margin-right: 22px;
border-top-width: 0;
border-right-width: 0;
border-bottom-width: 0;
border-left-width: 0;
}
.unity-base-slider__dragger-border {
min-width: 0;
display: flex;
}
.unity-sllider_input {
}
.unity-base-slider__drag-container {
min-width: 0;
}
.unity-base-slider--vertical .unity-base-slider__input {
width: 8px;
}
.unity-scroller--vertial > .unity-scroller__slider {
min-width: 0;
}
.unity-scroller--vertical .unity-base-slider__dragger {
min-width: 0;
max-width: 0;
background-color: rgba(255, 255, 255, 0.78);
}
Foldout Toggle Label {
color: rgb(0, 0, 0);
}

View File

@@ -10,6 +10,8 @@ ProgressBar {
}
#unity-progress-bar {
min-height: 0;
height: 4px;
}
#unity-progress-bar > VisualElement {
@@ -18,4 +20,23 @@ ProgressBar {
border-right-width: 0;
border-bottom-width: 0;
border-left-width: 0;
margin-top: 0;
margin-right: 0;
margin-bottom: 0;
margin-left: 0;
padding-top: 0;
padding-right: 0;
padding-bottom: 0;
padding-left: 0;
}
.unity-progress-bar__progress {
padding-top: 0;
padding-right: 0;
padding-bottom: 0;
padding-left: 0;
margin-top: 0;
margin-right: 0;
margin-bottom: 0;
margin-left: 0;
}

View File

@@ -1,9 +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/BITKit/Unity/UX/UXInitialize.uss?fileID=7433441132597879392&amp;guid=9c77c6f7bebff2b4ebf4079d48de27c7&amp;type=3#UXInitialize" />
<ui:VisualElement style="position: absolute; left: 0; top: 0; right: 0; bottom: 0; background-color: rgb(8, 8, 8);">
<ui:VisualElement style="position: absolute; left: 0; top: 0; right: 0; bottom: 0; background-color: rgb(8, 8, 8); overflow: hidden;">
<ui:VisualElement style="margin-top: auto; margin-right: auto; margin-bottom: auto; margin-left: auto; width: 512px;">
<ui:ProgressBar value="81.7" name="progress-bar" />
<ui:Label tabindex="-1" text="加载中..." parse-escape-sequences="true" display-tooltip-when-elided="true" name="progress-label" style="-unity-text-align: upper-right; -unity-font-style: bold; color: rgb(247, 247, 247);" />
<ui:ProgressBar value="81.7" name="progress-bar" style="overflow: hidden; border-top-left-radius: 2px; border-top-right-radius: 2px; border-bottom-right-radius: 2px; border-bottom-left-radius: 2px;" />
<ui:Label tabindex="-1" text="加载中..." parse-escape-sequences="true" display-tooltip-when-elided="true" name="progress-label" style="-unity-text-align: upper-right; -unity-font-style: bold; color: rgba(255, 255, 255, 0.5);" />
</ui:VisualElement>
</ui:VisualElement>
</ui:UXML>

32
Src/Unity/UX/UXPlayer.uss Normal file
View File

@@ -0,0 +1,32 @@
.prev {
background-image: url("project://database/Assets/BITKit/Unity/Art/Icons/Icon_player-track-prev-filled.png?fileID=21300000&guid=7d1187fbf91d0ac418a4f5d768b99c3f&type=3#Icon_player-track-prev-filled");
}
.player-container {
}
.player-container Button {
margin-top: 8px;
margin-right: 0;
margin-bottom: 8px;
margin-left: 0;
width: 24px;
height: 16px;
background-color: rgba(0, 0, 0, 0);
border-top-width: 0;
border-right-width: 0;
border-bottom-width: 0;
border-left-width: 0;
-unity-background-image-tint-color: rgba(255, 255, 255, 0.5);
}
.next {
background-image: url("project://database/Assets/BITKit/Unity/Art/Icons/Icon_player-track-next-filled.png?fileID=21300000&guid=20c29de72b51c9344b5fef47e6472693&type=3#Icon_player-track-next-filled");
}
.play-or-pause {
}
.player-container Label {
min-width: 24px;
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: ae56738606eb6b949a289e852f0d4818
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 12385, guid: 0000000000000000e000000000000000, type: 0}
disableValidation: 0

View File

@@ -0,0 +1,19 @@
<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" />
<Style src="project://database/Assets/BITKit/Unity/UX/UXPlayer.uss?fileID=7433441132597879392&amp;guid=ae56738606eb6b949a289e852f0d4818&amp;type=3#UXPlayer" />
<ui:VisualElement class="player-container" style="flex-direction: row; align-items: center; justify-content: center;">
<ui:VisualElement name="VisualElement" style="flex-direction: row; align-items: center;">
<ui:Button parse-escape-sequences="true" display-tooltip-when-elided="true" name="prev-button" class="prev" />
<ui:Button parse-escape-sequences="true" display-tooltip-when-elided="true" name="play-button" class="play-or-pause" style="background-image: url(&quot;project://database/Assets/BITKit/Unity/Art/Icons/Icon_player-play-filled.png?fileID=2800000&amp;guid=a1f9760a9770ae24aabe1a346a44d2a5&amp;type=3#Icon_player-play-filled&quot;);" />
<ui:Button parse-escape-sequences="true" display-tooltip-when-elided="true" name="next-button" class="next" />
</ui:VisualElement>
<ui:VisualElement style="flex-grow: 1; flex-direction: column-reverse; justify-content: center;">
<ui:Slider high-value="1" name="play-slider" />
</ui:VisualElement>
<ui:VisualElement style="flex-direction: row; align-items: center;">
<ui:Label tabindex="-1" text="1:24" parse-escape-sequences="true" display-tooltip-when-elided="true" name="current-label" />
<ui:Label tabindex="-1" text="/" parse-escape-sequences="true" display-tooltip-when-elided="true" />
<ui:Label tabindex="-1" text="2:58" parse-escape-sequences="true" display-tooltip-when-elided="true" name="total-label" />
</ui:VisualElement>
</ui:VisualElement>
</ui:UXML>

View File

@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 82c74b8844c9fdb4c93ee5bdca2d1ccc
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 13804, guid: 0000000000000000e000000000000000, type: 0}

View File

@@ -7,6 +7,8 @@
<ui:Label text="等待中" display-tooltip-when-elided="true" class="tl" style="-unity-font-style: bold;" />
<ui:VisualElement name="waiting-container" style="flex-grow: 1; background-color: rgb(87, 87, 87);">
<ui:Instance template="UXWaiting_Handle_Template" name="UXWaiting_Handle_Template" />
<ui:Instance template="UXWaiting_Handle_Template" name="UXWaiting_Handle_Template" />
<ui:Instance template="UXWaiting_Handle_Template" name="UXWaiting_Handle_Template" />
</ui:VisualElement>
</ui:VisualElement>
</ui:VisualElement>