This commit is contained in:
MuHua-123
2025-06-17 10:53:45 +08:00
parent c6d9b71e95
commit 5374616980
87 changed files with 2265 additions and 1019 deletions
@@ -1,4 +1,5 @@
.scrollview {
flex-grow: 1;
}
.scrollview-viewport {
@@ -15,6 +16,7 @@
flex-direction: column;
align-self: flex-start;
flex-shrink: 0;
width: 100%;
}
.scrollview-horizontal-scroller {
@@ -1,8 +1,8 @@
<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/MuHua/UITool/UIScrollView/ScrollView.uss?fileID=7433441132597879392&amp;guid=d8db2d69206657346a4fe9aebc592327&amp;type=3#ScrollView" />
<ui:VisualElement name="ScrollView" class="scrollview" style="width: 350px; height: 450px;">
<Style src="project://database/Assets/UI%20Toolkit/Component/ScrollView/ScrollView.uss?fileID=7433441132597879392&amp;guid=d8db2d69206657346a4fe9aebc592327&amp;type=3#ScrollView" />
<ui:VisualElement name="ScrollView" class="scrollview">
<ui:VisualElement name="Viewport" class="scrollview-viewport" style="margin-right: 0;">
<ui:VisualElement name="Container" class="scrollview-container" style="width: 1000px; height: 100%;">
<ui:VisualElement name="Container" class="scrollview-container" style="height: 100%; width: auto; flex-direction: row;">
<ui:Button text="1" parse-escape-sequences="true" display-tooltip-when-elided="true" />
<ui:Button text="2" parse-escape-sequences="true" display-tooltip-when-elided="true" />
<ui:Button text="3" parse-escape-sequences="true" display-tooltip-when-elided="true" />
@@ -1,8 +1,8 @@
<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/MuHua/UITool/UIScrollView/ScrollView.uss?fileID=7433441132597879392&amp;guid=d8db2d69206657346a4fe9aebc592327&amp;type=3#ScrollView" />
<ui:VisualElement name="ScrollView" class="scrollview" style="width: 350px; height: 450px;">
<Style src="project://database/Assets/UI%20Toolkit/Component/ScrollView/ScrollView.uss?fileID=7433441132597879392&amp;guid=d8db2d69206657346a4fe9aebc592327&amp;type=3#ScrollView" />
<ui:VisualElement name="ScrollView" class="scrollview">
<ui:VisualElement name="Viewport" class="scrollview-viewport" style="margin-right: 30px; margin-bottom: 0;">
<ui:VisualElement name="Container" class="scrollview-container" style="width: 100%; height: 1000px;">
<ui:VisualElement name="Container" class="scrollview-container">
<ui:Label tabindex="-1" text="Label" parse-escape-sequences="true" display-tooltip-when-elided="true" />
<ui:Button text="Button" parse-escape-sequences="true" display-tooltip-when-elided="true" />
<ui:Toggle label="Toggle" />
@@ -12,7 +12,7 @@
<ui:FloatField label="Float Field" value="42.2" />
</ui:VisualElement>
</ui:VisualElement>
<ui:VisualElement name="ScrollerHorizontal" class="scroller-horizontal scrollview-horizontal-scroller" style="right: 0; display: none;">
<ui:VisualElement name="ScrollerHorizontal" class="scroller-horizontal scrollview-horizontal-scroller" style="display: none;">
<ui:VisualElement name="Dragger" class="scroller-horizontal-dragger scrollview-horizontal-scroller-dragger" />
</ui:VisualElement>
<ui:VisualElement name="ScrollerVertical" class="scroller-vertical scrollview-vertical-scroller">
@@ -20,4 +20,4 @@
background-color: rgb(255, 126, 126);
width: 100%;
height: 30px;
}
}
@@ -1,4 +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/UI%20Toolkit/Component/Scroller/Scroller.uss?fileID=7433441132597879392&amp;guid=fa60433f4fc03c34e8b51e6a8c9b32db&amp;type=3#Scroller" />
<ui:VisualElement class="scroller-vertical">
<ui:VisualElement name="Dragger" class="scroller-vertical-dragger" />
</ui:VisualElement>