This commit is contained in:
CortexCore
2025-02-24 23:02:43 +08:00
parent 41715e4413
commit 8261a458e2
105 changed files with 2934 additions and 696 deletions

View File

@@ -526,3 +526,122 @@ TabContainer > * {
opacity: 0;
transition-duration: 0.1s;
}
OnScreenButton {
width: 80px;
height: 80px;
border-top-left-radius: 64px;
border-top-right-radius: 64px;
border-bottom-right-radius: 64px;
border-bottom-left-radius: 64px;
-unity-background-image-tint-color: rgb(255, 255, 255);
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-top-color: rgb(255, 255, 255);
border-left-color: rgb(255, 255, 255);
border-right-color: rgb(255, 255, 255);
border-bottom-color: rgb(255, 255, 255);
}
OnScreenButton:hover {
background-color: rgba(200, 200, 200, 0.5);
-unity-background-image-tint-color: rgb(255, 255, 255);
}
OnScreenButton:active {
background-color: rgba(0, 0, 0, 0.5);
-unity-background-image-tint-color: rgb(255, 255, 255);
}
OnScreenButton.selected {
border-left-color: rgb(255, 0, 0);
border-right-color: rgb(255, 0, 0);
border-top-color: rgb(255, 0, 0);
border-bottom-color: rgb(255, 0, 0);
border-top-width: 4px;
border-right-width: 4px;
border-bottom-width: 4px;
border-left-width: 4px;
opacity: 0.5;
}
.gamepad-button {
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;
margin-top: 4px;
margin-right: 4px;
margin-bottom: 4px;
margin-left: 4px;
}
.gamepad-button:hover {
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;
background-color: rgba(255, 255, 255, 0.25);
}
.gamepad-button:active {
background-color: rgba(255, 255, 255, 0.5);
-unity-background-image-tint-color: rgba(0, 0, 0, 0.5);
border-left-color: rgba(0, 0, 0, 0.5);
border-right-color: rgba(0, 0, 0, 0.5);
border-top-color: rgba(0, 0, 0, 0.5);
border-bottom-color: rgba(0, 0, 0, 0.5);
}
.gamepad-button--nw {
background-image: url("project://database/Assets/BITKit/Unity/Art/Icons/Arrows/icon_keyboard-arrow-up-left-rounded.png?fileID=21300000&guid=e2a7dc01d1a854b429e7698649c340bd&type=3#icon_keyboard-arrow-up-left-rounded");
transform-origin: right bottom;
scale: 0.8 0.8;
}
.gamepad-button--n {
background-image: url("project://database/Assets/BITKit/Unity/Art/Icons/Arrows/icon_keyboard-arrow-up-rounded.png?fileID=21300000&guid=f75638302ccf8ba41acbf96be794e86d&type=3#icon_keyboard-arrow-up-rounded");
}
.gamepad-button--ne {
background-image: url("project://database/Assets/BITKit/Unity/Art/Icons/Arrows/icon_keyboard-arrow-up-right-rounded.png?fileID=21300000&guid=08e2edf7cdff08240a792ce62c67014d&type=3#icon_keyboard-arrow-up-right-rounded");
transform-origin: left bottom;
scale: 0.8 0.8;
}
.gamepad-button--w {
background-image: url("project://database/Assets/BITKit/Unity/Art/Icons/Arrows/icon_chevron-left-rounded.png?fileID=21300000&guid=76da1f1cbb542714283e16db9aa8af7c&type=3#icon_chevron-left-rounded");
}
.gamepad-button--c {
}
.gamepad-button--e {
background-image: url("project://database/Assets/BITKit/Unity/Art/Icons/Arrows/icon_chevron-right-rounded.png?fileID=21300000&guid=9e83d4b468bd75a47ab3d72155f367e5&type=3#icon_chevron-right-rounded");
}
.gamepad-button--sw {
background-image: url("project://database/Assets/BITKit/Unity/Art/Icons/Arrows/icon_keyboard-arrow-down-left-rounded.png?fileID=21300000&guid=93b327f2e8bb65f40a1b47d13ecfafcf&type=3#icon_keyboard-arrow-down-left-rounded");
transform-origin: right top;
scale: 0.8 0.8;
}
.gamepad-button--s {
background-image: url("project://database/Assets/BITKit/Unity/Art/Icons/icon_keyboard-arrow-down.png?fileID=21300000&guid=6f14c0574452bf543b5f2f2cd2a24104&type=3#icon_keyboard-arrow-down");
}
.gamepad-button--se {
background-image: url("project://database/Assets/BITKit/Unity/Art/Icons/Arrows/icon_keyboard-arrow-down-right-rounded.png?fileID=21300000&guid=6103653931b39ca41a64af379712495c&type=3#icon_keyboard-arrow-down-right-rounded");
transform-origin: left top;
scale: 0.8 0.8;
}

View File

@@ -13,13 +13,9 @@ MonoBehaviour:
m_Name: Common_Mobile
m_EditorClassIdentifier:
themeUss: {fileID: -4733365628477956816, guid: ac803f0924e239645ac6b2fc9baebc65, type: 3}
m_DisableNoThemeWarning: 0
m_TargetTexture: {fileID: 0}
m_RenderMode: 0
m_WorldSpaceLayer: 0
m_ScaleMode: 2
m_ReferenceSpritePixelsPerUnit: 100
m_PixelsPerUnit: 100
m_Scale: 1
m_ReferenceDpi: 96
m_FallbackDpi: 96
@@ -28,11 +24,9 @@ MonoBehaviour:
m_Match: 1
m_SortingOrder: 0
m_TargetDisplay: 0
m_BindingLogLevel: 0
m_ClearDepthStencil: 1
m_ClearColor: 0
m_ColorClearValue: {r: 0, g: 0, b: 0, a: 0}
m_VertexBudget: 0
m_DynamicAtlasSettings:
m_MinAtlasSize: 8
m_MaxAtlasSize: 4096
@@ -41,6 +35,4 @@ MonoBehaviour:
m_AtlasBlitShader: {fileID: 9101, guid: 0000000000000000f000000000000000, type: 0}
m_RuntimeShader: {fileID: 9100, guid: 0000000000000000f000000000000000, type: 0}
m_RuntimeWorldShader: {fileID: 9102, guid: 0000000000000000f000000000000000, type: 0}
m_ICUDataAsset: {fileID: 0}
forceGammaRendering: 0
textSettings: {fileID: 0}

View File

@@ -12,8 +12,7 @@ MonoBehaviour:
m_Script: {fileID: 19101, guid: 0000000000000000e000000000000000, type: 0}
m_Name: Common_PC_Overlay
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

@@ -1,10 +0,0 @@
.rank {
}
.D1 .rank {
background-image: url("project://database/Assets/Artists/UX/USS_1/UI/UI_Settlement/%E7%AC%AC1%E5%90%8D.png?fileID=2800000&guid=24cbc98f27967534189bd6172d815874&type=3#第1名");
}
.D2 .rank {
background-image: url("project://database/Assets/Artists/UX/USS_1/UI/UI_Settlement/%E7%AC%AC2%E5%90%8D.png?fileID=2800000&guid=75f797e60a65f654cbfece5f451ec695&type=3#第2名");
}

View File

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

View File

@@ -4,56 +4,51 @@
<Style src="project://database/Assets/BITKit/Unity/UX/UXModService.uss?fileID=7433441132597879392&amp;guid=4603eeaf39bae3448a93680711a15c42&amp;type=3#UXModService" />
<Style src="project://database/Assets/BITKit/Unity/UX/BITAlert.uss?fileID=7433441132597879392&amp;guid=8d0db0fee932f5342988f09217d6309a&amp;type=3#BITAlert" />
<ui:VisualElement class="root" style="background-color: rgba(0, 0, 0, 0.92);" />
<ui:VisualElement name="VisualElement" class="root --mod-service" style="flex-grow: 1;">
<ui:VisualElement class="flex-center">
<ui:VisualElement style="flex-direction: row;">
<ui:VisualElement style="flex-grow: 1;">
<ui:Label tabindex="-1" text="Mod列表" parse-escape-sequences="true" display-tooltip-when-elided="true" class="tl" />
<ui:ScrollView>
<ui:VisualElement name="mods-container" style="width: 1024px; height: 768px;">
<ui:Instance template="ModTemplate" name="ModTemplate" />
<ui:Instance template="ModTemplate" name="ModTemplate" />
<ui:Instance template="ModTemplate" name="ModTemplate" />
<ui:Instance template="ModTemplate" name="ModTemplate" />
<ui:Instance template="ModTemplate" name="ModTemplate" />
<ui:Instance template="ModTemplate" name="ModTemplate" />
<ui:Instance template="ModTemplate" name="ModTemplate" />
<ui:Instance template="ModTemplate" name="ModTemplate" />
<ui:Instance template="ModTemplate" name="ModTemplate" />
<ui:Instance template="ModTemplate" name="ModTemplate" />
<ui:Instance template="ModTemplate" name="ModTemplate" />
<ui:Instance template="ModTemplate" name="ModTemplate" />
<ui:Instance template="ModTemplate" name="ModTemplate" />
<ui:Instance template="ModTemplate" name="ModTemplate" />
</ui:VisualElement>
</ui:ScrollView>
</ui:VisualElement>
<ui:VisualElement style="width: 384px; margin-left: 64px;">
<ui:Label tabindex="-1" text="Mod列表" parse-escape-sequences="true" display-tooltip-when-elided="true" class="tl" />
<ui:VisualElement name="info-container" style="flex-grow: 1;">
<ui:VisualElement name="mod-image" style="height: 256px; background-color: rgba(0, 0, 0, 0); background-image: url(&quot;project://database/Assets/BITKit/Unity/Art/Images/Mod_Package.png?fileID=2800000&amp;guid=7ef0888883a3a7442989365c2dc57862&amp;type=3#Mod_Package&quot;); -unity-background-scale-mode: scale-and-crop;" />
<ui:VisualElement style="padding-top: 8px; padding-right: 0; padding-bottom: 8px; padding-left: 0; flex-grow: 1;">
<ui:Label tabindex="-1" text="加载一个Mod" parse-escape-sequences="true" display-tooltip-when-elided="true" name="mod-name-label" class="tl" />
<ui:VisualElement name="VisualElement" class="root --mod-service" style="margin-top: 32px; margin-right: 32px; margin-bottom: 32px; margin-left: 32px;">
<ui:VisualElement style="flex-direction: row; flex-grow: 1;">
<ui:VisualElement style="flex-grow: 1;">
<ui:Label tabindex="-1" text="Mod列表" parse-escape-sequences="true" display-tooltip-when-elided="true" class="tl" />
<ui:ScrollView style="flex-grow: 1;">
<ui:VisualElement name="mods-container" style="flex-grow: 1;">
<ui:Instance template="ModTemplate" name="ModTemplate" />
<ui:Instance template="ModTemplate" name="ModTemplate" />
<ui:Instance template="ModTemplate" name="ModTemplate" />
<ui:Instance template="ModTemplate" name="ModTemplate" />
<ui:Instance template="ModTemplate" name="ModTemplate" />
<ui:Instance template="ModTemplate" name="ModTemplate" />
<ui:Instance template="ModTemplate" name="ModTemplate" />
<ui:Instance template="ModTemplate" name="ModTemplate" />
<ui:Instance template="ModTemplate" name="ModTemplate" />
<ui:Instance template="ModTemplate" name="ModTemplate" />
<ui:Instance template="ModTemplate" name="ModTemplate" />
<ui:Instance template="ModTemplate" name="ModTemplate" />
<ui:Instance template="ModTemplate" name="ModTemplate" />
<ui:Instance template="ModTemplate" name="ModTemplate" />
</ui:VisualElement>
</ui:ScrollView>
</ui:VisualElement>
<ui:VisualElement style="width: 384px; margin-left: 64px;">
<ui:Label tabindex="-1" text="Mod列表" parse-escape-sequences="true" display-tooltip-when-elided="true" class="tl" />
<ui:VisualElement name="info-container" style="flex-grow: 1;">
<ui:VisualElement name="mod-image" style="height: 256px; background-color: rgba(0, 0, 0, 0); background-image: url(&quot;project://database/Assets/BITKit/Unity/Art/Images/Mod_Package.png?fileID=2800000&amp;guid=7ef0888883a3a7442989365c2dc57862&amp;type=3#Mod_Package&quot;); -unity-background-scale-mode: scale-and-crop;" />
<ui:VisualElement style="padding-top: 8px; padding-right: 0; padding-bottom: 8px; padding-left: 0; flex-grow: 1;">
<ui:Label tabindex="-1" text="加载一个Mod" parse-escape-sequences="true" display-tooltip-when-elided="true" name="mod-name-label" class="tl" />
<ui:ScrollView style="flex-grow: 1;">
<ui:Label tabindex="-1" text="通过Windows Explorer选择Mod后,需要等待一段时间才能加载,这是因为explorer内部的延迟&#10;&#10;可以直接加载编译好的dll&#10;加载.cs需要安装MonoBleedingEdge&#10;&#10;已加载的脚本mod无法动态完成卸载,可能需要重启应用&#10;&#10;动态加载的Mod不会保存,如需要每次启动都自动加载,需要将Mod放置在/Mods/{ModName}/文件夹中,并创建PackageInfo.json描述文件" parse-escape-sequences="true" display-tooltip-when-elided="true" name="mod-description-label" style="white-space: normal;" />
<ui:VisualElement style="flex-grow: 1;" />
<ui:Button text="打开开发手册" parse-escape-sequences="true" display-tooltip-when-elided="true" name="open-manual-button" />
<ui:Button text="打开Mod目录" parse-escape-sequences="true" display-tooltip-when-elided="true" name="open_folder-button" />
</ui:VisualElement>
</ui:ScrollView>
<ui:VisualElement style="flex-grow: 1;" />
<ui:Button text="打开开发手册" parse-escape-sequences="true" display-tooltip-when-elided="true" name="open-manual-button" />
<ui:Button text="打开Mod目录" parse-escape-sequences="true" display-tooltip-when-elided="true" name="open_folder-button" />
</ui:VisualElement>
</ui:VisualElement>
</ui:VisualElement>
<ui:VisualElement class="theme-dark alert-container" style="flex-grow: 1; flex-direction: row; margin-top: 16px;">
<ui:Button text="返回" parse-escape-sequences="true" display-tooltip-when-elided="true" name="return-button" />
<ui:VisualElement style="flex-grow: 1; align-items: stretch; flex-direction: row; justify-content: flex-end;">
<ui:Label tabindex="-1" text="安装Roslyn" parse-escape-sequences="true" display-tooltip-when-elided="true" style="-unity-text-align: middle-left;" />
<ui:Button text="安装" parse-escape-sequences="true" display-tooltip-when-elided="true" name="install-roslyn-button">
<ui:VisualElement name="install-roslyn-fill" class="root" style="background-color: rgba(255, 255, 255, 0.5); width: 49%;" />
</ui:Button>
<ui:Button text="卸载" parse-escape-sequences="true" display-tooltip-when-elided="true" name="uninstall-roslyn-button" />
<ui:VisualElement style="width: 384px; align-items: flex-end; flex-direction: row; justify-content: flex-end;">
<ui:Button text="重载Mod" parse-escape-sequences="true" display-tooltip-when-elided="true" name="reload-mod-button" />
<ui:Button text="加载Mod" parse-escape-sequences="true" display-tooltip-when-elided="true" name="open-mod-button" />
</ui:VisualElement>
</ui:VisualElement>
<ui:VisualElement class="theme-dark alert-container" style="margin-top: 16px; flex-direction: row;">
<ui:Button text="返回" parse-escape-sequences="true" display-tooltip-when-elided="true" name="return-button" />
<ui:VisualElement style="flex-grow: 1; align-items: stretch; flex-direction: row; justify-content: flex-end;">
<ui:VisualElement style="width: 384px; align-items: flex-end; flex-direction: row; justify-content: flex-end;">
<ui:Button text="重载Mod" parse-escape-sequences="true" display-tooltip-when-elided="true" name="reload-mod-button" />
<ui:Button text="加载Mod" parse-escape-sequences="true" display-tooltip-when-elided="true" name="open-mod-button" />
</ui:VisualElement>
</ui:VisualElement>
</ui:VisualElement>

View File

@@ -1,14 +1,14 @@
<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" 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/UXModService.uss?fileID=7433441132597879392&amp;guid=4603eeaf39bae3448a93680711a15c42&amp;type=3#UXModService" />
<ui:Button parse-escape-sequences="true" display-tooltip-when-elided="true" name="main-button" class="mod-element" style="flex-direction: row; margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; height: 48px;">
<ui:Toggle name="context-toggle" style="margin-right: 8px; margin-left: 8px;" />
<ui:Button parse-escape-sequences="true" display-tooltip-when-elided="true" name="Button--0" class="mod-element" style="flex-direction: row; margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; height: 48px;">
<ui:Toggle name="Toggle--0" style="margin-right: 8px; margin-left: 8px;" />
<ui:VisualElement picking-mode="Ignore" style="flex-direction: row; flex-grow: 1;">
<ui:VisualElement picking-mode="Ignore" style="width: 48px; height: 48px;">
<ui:VisualElement name="icon-image" picking-mode="Ignore" style="flex-grow: 1; background-image: url(&apos;project://database/Assets/BITKit/Unity/Art/Icons/EditorIcons/processed/unityengine/d_GameObject%20Icon.png?fileID=2800000&amp;guid=e45835505036acc4a92dbbf8fb2d4848&amp;type=3#d_GameObject Icon&apos;); margin-top: 8px; margin-right: 8px; margin-bottom: 8px; margin-left: 8px;" />
<ui:VisualElement name="VisualElement--0" picking-mode="Ignore" style="flex-grow: 1; background-image: url(&quot;project://database/Assets/BITKit/Unity/Art/Editor_Icons/processed/unityengine/d_GameObject%20Icon.png?fileID=2800000&amp;guid=e45835505036acc4a92dbbf8fb2d4848&amp;type=3#d_GameObject Icon&quot;); margin-top: 8px; margin-right: 8px; margin-bottom: 8px; margin-left: 8px;" />
</ui:VisualElement>
<ui:VisualElement picking-mode="Ignore" style="flex-grow: 1; flex-direction: row; align-items: stretch; margin-left: 8px;">
<ui:Label tabindex="-1" text="Mod名称" parse-escape-sequences="true" display-tooltip-when-elided="true" name="title-label" picking-mode="Ignore" style="margin-top: 0; margin-bottom: 0; -unity-text-align: middle-left;" />
<ui:Label tabindex="-1" text="Mod名称" parse-escape-sequences="true" display-tooltip-when-elided="true" name="Label--0" picking-mode="Ignore" style="margin-top: 0; margin-bottom: 0; -unity-text-align: middle-left;" />
<ui:Label tabindex="-1" text="描述" parse-escape-sequences="true" display-tooltip-when-elided="true" name="description-label" picking-mode="Ignore" style="margin-top: 0; margin-bottom: 0; -unity-text-align: lower-left; display: none;" />
</ui:VisualElement>
</ui:VisualElement>