This commit is contained in:
MuHua-123
2025-07-14 17:05:54 +08:00
parent edde81a2a3
commit 1255b68f7e
15 changed files with 427 additions and 31 deletions
@@ -0,0 +1,45 @@
.slidebutton-bg {
background-color: rgb(44, 62, 80);
border-top-left-radius: 10px;
border-top-right-radius: 10px;
border-bottom-right-radius: 10px;
border-bottom-left-radius: 10px;
width: 80px;
height: auto;
padding-top: 5px;
padding-right: 5px;
padding-bottom: 5px;
padding-left: 5px;
}
.slidebutton-button {
border-top-left-radius: 5px;
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
border-bottom-left-radius: 5px;
border-top-width: 0;
border-right-width: 0;
border-bottom-width: 0;
border-left-width: 0;
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);
margin-top: 0;
margin-right: 0;
margin-bottom: 0;
margin-left: 0;
padding-top: 5px;
padding-right: 5px;
padding-bottom: 5px;
padding-left: 5px;
color: rgb(255, 255, 255);
height: 30px;
font-size: 18px;
background-color: rgba(0, 0, 0, 0);
transition-duration: 0.2s;
}
.slidebutton-button-s {
color: rgb(51, 51, 51);
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: a188682137c1d204a9a873d3ab8a815f
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 12385, guid: 0000000000000000e000000000000000, type: 0}
disableValidation: 0
@@ -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">
<ui:Template name="SlideButtonTemplate" src="project://database/Assets/UI%20Toolkit/Component/SlideButton/SlideButtonTemplate.uxml?fileID=9197481963319205126&amp;guid=9452bd34d4b5bff4084d975753638b86&amp;type=3#SlideButtonTemplate" />
<Style src="project://database/Assets/UI%20Toolkit/Component/SlideButton/SlideButton.uss?fileID=7433441132597879392&amp;guid=a188682137c1d204a9a873d3ab8a815f&amp;type=3#SlideButton" />
<ui:VisualElement name="SlideButton" class="slidebutton-bg">
<ui:VisualElement name="Slide" style="position: absolute; left: 5px; right: 5px; background-color: rgb(255, 255, 255); height: 30px; border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px;" />
<ui:VisualElement name="Container" style="flex-grow: 1;">
<ui:Instance template="SlideButtonTemplate" name="SlideButtonTemplate" />
<ui:Instance template="SlideButtonTemplate" name="SlideButtonTemplate" />
<ui:Instance template="SlideButtonTemplate" name="SlideButtonTemplate" />
<ui:Instance template="SlideButtonTemplate" name="SlideButtonTemplate" />
</ui:VisualElement>
</ui:VisualElement>
</ui:UXML>
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 6fe6a77ecbfa24d43ad45ccf188d5aee
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 13804, guid: 0000000000000000e000000000000000, type: 0}
@@ -0,0 +1,4 @@
<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" editor-extension-mode="False">
<Style src="project://database/Assets/UI%20Toolkit/Component/SlideButton/SlideButton.uss?fileID=7433441132597879392&amp;guid=a188682137c1d204a9a873d3ab8a815f&amp;type=3#SlideButton" />
<ui:Button text="按钮" parse-escape-sequences="true" display-tooltip-when-elided="true" name="Button" class="slidebutton-button" />
</ui:UXML>
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 9452bd34d4b5bff4084d975753638b86
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 13804, guid: 0000000000000000e000000000000000, type: 0}