拼ui 一些业务逻辑x实现
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
/* EasyChart Demo Showcase Styles */
|
||||
/* Screen: 1950x1300, Demo: 450x300, Grid: 4x4 */
|
||||
|
||||
.demo-group {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
flex-direction: column;
|
||||
justify-content: space-around;
|
||||
align-items: center;
|
||||
padding: 25px;
|
||||
}
|
||||
|
||||
.demo-group.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.demo-row {
|
||||
flex-direction: row;
|
||||
justify-content: space-around;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.demo-slot {
|
||||
width: 450px;
|
||||
height: 300px;
|
||||
background-color: rgba(30, 30, 30, 0.9);
|
||||
border-width: 1px;
|
||||
border-color: rgba(80, 80, 80, 0.5);
|
||||
border-radius: 4px;
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2f791a668f4b9c2469cb039c37cab11d
|
||||
ScriptedImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
script: {fileID: 12385, guid: 0000000000000000e000000000000000, type: 0}
|
||||
disableValidation: 0
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 359794
|
||||
packageName: Easy Chart Lite
|
||||
packageVersion: 1.0
|
||||
assetPath: Assets/EasyChart/Demo/UIToolKit/DemoShowcase.uss
|
||||
uploadId: 857482
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-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">
|
||||
<!--
|
||||
EasyChart Demo Showcase
|
||||
UI is dynamically built by DemoShowcaseController.
|
||||
This UXML serves as the root container.
|
||||
-->
|
||||
</ui:UXML>
|
||||
@@ -0,0 +1,17 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6edfcfec44a694141a2ed7630589bf0e
|
||||
ScriptedImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
script: {fileID: 13804, guid: 0000000000000000e000000000000000, type: 0}
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 359794
|
||||
packageName: Easy Chart Lite
|
||||
packageVersion: 1.0
|
||||
assetPath: Assets/EasyChart/Demo/UIToolKit/DemoShowcase.uxml
|
||||
uploadId: 857482
|
||||
@@ -0,0 +1,4 @@
|
||||
<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="BarDemo 4" src="project://database/Assets/EasyChart/LibraryUxml/EasyChartFreeDemo/Bar/BarDemo%204.uxml?fileID=9197481963319205126&guid=a75432bdc682efe45b754348f0f0b882&type=3#BarDemo 4" />
|
||||
<ui:Instance template="BarDemo 4" name="BarDemo 4" style="opacity: 1; position: relative; left: auto; top: 200px; right: auto; flex-direction: column; flex-wrap: nowrap; align-items: center; flex-basis: auto; width: auto; height: auto; overflow: visible; align-self: auto; justify-content: space-between; flex-shrink: 1; flex-grow: 0; -unity-font: url("project://database/Library/unity%20default%20resources?fileID=10102&guid=0000000000000000e000000000000000&type=0#LegacyRuntime"); transform-origin: center;" />
|
||||
</ui:UXML>
|
||||
@@ -0,0 +1,17 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 608d8db57ce9d8e4b96905ce8dda9cb8
|
||||
ScriptedImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
script: {fileID: 13804, guid: 0000000000000000e000000000000000, type: 0}
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 359794
|
||||
packageName: Easy Chart Lite
|
||||
packageVersion: 1.0
|
||||
assetPath: Assets/EasyChart/Demo/UIToolKit/JsonInjectionExample.uxml
|
||||
uploadId: 857482
|
||||
@@ -0,0 +1,22 @@
|
||||
<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="PieDemo 1" src="project://database/Assets/EasyChart/LibraryUxml/EasyChartFreeDemo/Pie/PieDemo%201.uxml?fileID=9197481963319205126&guid=b6893e9dfde1ca944bfc01b0f2a3fe66&type=3#PieDemo 1" />
|
||||
<ui:Template name="BarDemo 6" src="project://database/Assets/EasyChart/LibraryUxml/EasyChartFreeDemo/Bar/BarDemo%206.uxml?fileID=9197481963319205126&guid=895de91df190ccb4297ff0fecb8598a1&type=3#BarDemo 6" />
|
||||
<ui:Template name="MixDemo 1" src="project://database/Assets/EasyChart/LibraryUxml/EasyChartFreeDemo/Mix/MixDemo%201.uxml?fileID=9197481963319205126&guid=0ad11053c5a32264cb176122a8967343&type=3#MixDemo 1" />
|
||||
<ui:Template name="ScatterDemo 1" src="project://database/Assets/EasyChart/LibraryUxml/EasyChartFreeDemo/Scatter/ScatterDemo%201.uxml?fileID=9197481963319205126&guid=bba1e4c05bce1564cb8c1964fd57689d&type=3#ScatterDemo 1" />
|
||||
<ui:Template name="Line 3" src="project://database/Assets/EasyChart/LibraryUxml/EasyChartFreeDemo/Line/Line%203.uxml?fileID=9197481963319205126&guid=28985a4482c94004fb2c4a161021213f&type=3#Line 3" />
|
||||
<ui:Template name="MixDemo" src="project://database/Assets/EasyChart/LibraryUxml/EasyChartFreeDemo/Mix/MixDemo.uxml?fileID=9197481963319205126&guid=2c00c8e081864ad489da071129432457&type=3#MixDemo" />
|
||||
<ui:Template name="PieDemo 5" src="project://database/Assets/EasyChart/LibraryUxml/EasyChartFreeDemo/Pie/PieDemo%205.uxml?fileID=9197481963319205126&guid=9f95abc9f9a9e2143acd2fb1054a15a8&type=3#PieDemo 5" />
|
||||
<ui:Template name="ScatterDemo" src="project://database/Assets/EasyChart/LibraryUxml/EasyChartFreeDemo/Scatter/ScatterDemo.uxml?fileID=9197481963319205126&guid=16da5bc8851b7064d909ca38cd2c30be&type=3#ScatterDemo" />
|
||||
<ui:VisualElement name="Left" style="flex-grow: 1; right: auto; position: absolute; top: auto; bottom: auto; justify-content: flex-start; align-self: flex-start; align-items: auto; height: 100%;">
|
||||
<ui:Instance template="PieDemo 1" name="PieDemo 1" />
|
||||
<ui:Instance template="BarDemo 6" name="BarDemo 6" />
|
||||
<ui:Instance template="MixDemo 1" name="MixDemo 1" />
|
||||
<ui:Instance template="ScatterDemo 1" name="ScatterDemo 1" />
|
||||
</ui:VisualElement>
|
||||
<ui:VisualElement name="Right" style="flex-grow: 1; position: absolute; align-items: auto; align-self: flex-end; justify-content: flex-start; flex-direction: column; flex-wrap: nowrap; height: 100%;">
|
||||
<ui:Instance template="Line 3" name="Line 3" />
|
||||
<ui:Instance template="MixDemo" name="MixDemo" />
|
||||
<ui:Instance template="PieDemo 5" name="PieDemo 5" />
|
||||
<ui:Instance template="ScatterDemo" name="ScatterDemo" />
|
||||
</ui:VisualElement>
|
||||
</ui:UXML>
|
||||
@@ -0,0 +1,17 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0044bf39d4262e64c802d170043656ca
|
||||
ScriptedImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
script: {fileID: 13804, guid: 0000000000000000e000000000000000, type: 0}
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 359794
|
||||
packageName: Easy Chart Lite
|
||||
packageVersion: 1.0
|
||||
assetPath: Assets/EasyChart/Demo/UIToolKit/QuickStart UXML.uxml
|
||||
uploadId: 857482
|
||||
@@ -0,0 +1,35 @@
|
||||
%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: 19103, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_Name: UITK Text Settings
|
||||
m_EditorClassIdentifier:
|
||||
m_Version:
|
||||
m_DefaultFontAsset: {fileID: 11400000, guid: 473c618f4b1abb244bca8a3b5090c54b, type: 2}
|
||||
m_DefaultFontAssetPath: Fonts & Materials/
|
||||
m_FallbackFontAssets: []
|
||||
m_MatchMaterialPreset: 0
|
||||
m_MissingCharacterUnicode: 0
|
||||
m_ClearDynamicDataOnBuild: 1
|
||||
m_DefaultSpriteAsset: {fileID: 0}
|
||||
m_DefaultSpriteAssetPath: Sprite Assets/
|
||||
m_FallbackSpriteAssets: []
|
||||
m_MissingSpriteCharacterUnicode: 0
|
||||
m_DefaultStyleSheet: {fileID: 0}
|
||||
m_StyleSheetsResourcePath: Text Style Sheets/
|
||||
m_DefaultColorGradientPresetsPath: Text Color Gradients/
|
||||
m_UnicodeLineBreakingRules:
|
||||
m_UnicodeLineBreakingRules: {fileID: 0}
|
||||
m_LeadingCharacters: {fileID: 0}
|
||||
m_FollowingCharacters: {fileID: 0}
|
||||
m_UseModernHangulLineBreakingRules: 0
|
||||
m_UseModernHangulLineBreakingRules: 0
|
||||
m_DisplayWarnings: 0
|
||||
@@ -0,0 +1,15 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0f3bdf2e866c8ba4f888ef1aee469463
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 359794
|
||||
packageName: Easy Chart Lite
|
||||
packageVersion: 1.0
|
||||
assetPath: Assets/EasyChart/Demo/UIToolKit/UITK Text Settings.asset
|
||||
uploadId: 857482
|
||||
Reference in New Issue
Block a user