├── .vs └── UnityRepository │ └── v14 │ └── .suo ├── Assets ├── SpringGUI.meta ├── SpringGUI │ ├── Demo.meta │ ├── Demo │ │ ├── 01_FunctionalGraph.meta │ │ ├── 01_FunctionalGraph │ │ │ ├── 01_FunctionalGraph.unity │ │ │ ├── 01_FunctionalGraph.unity.meta │ │ │ ├── FunctionalGraphExample.cs │ │ │ └── FunctionalGraphExample.cs.meta │ │ ├── 02_PieGraph.meta │ │ ├── 02_PieGraph │ │ │ ├── 02_PieGraph.unity │ │ │ ├── 02_PieGraph.unity.meta │ │ │ ├── PieGraphExample.cs │ │ │ └── PieGraphExample.cs.meta │ │ ├── 03_DoubleClickButton_LongClick.meta │ │ ├── 03_DoubleClickButton_LongClick │ │ │ ├── 03_DoubleClickButton&&LongClickButton.unity │ │ │ ├── 03_DoubleClickButton&&LongClickButton.unity.meta │ │ │ ├── DoubleLongClickButton.cs │ │ │ └── DoubleLongClickButton.cs.meta │ │ ├── 04_UITree TreeView.meta │ │ ├── 04_UITree TreeView │ │ │ ├── 04_TreeView.unity │ │ │ ├── 04_TreeView.unity.meta │ │ │ ├── UITreeExample.cs │ │ │ └── UITreeExample.cs.meta │ │ ├── 05_DatePicker.meta │ │ ├── 05_DatePicker │ │ │ ├── 05_DatePicker.unity │ │ │ ├── 05_DatePicker.unity.meta │ │ │ ├── DatePickerExample.cs │ │ │ └── DatePickerExample.cs.meta │ │ ├── 06_ColoredTape.meta │ │ ├── 06_ColoredTape │ │ │ ├── 06_ColoredTape.unity │ │ │ ├── 06_ColoredTape.unity.meta │ │ │ ├── ColoredTapeExample.cs │ │ │ └── ColoredTapeExample.cs.meta │ │ ├── 07_ColorPicker.meta │ │ ├── 07_ColorPicker │ │ │ ├── 07_ColorPicker.unity │ │ │ ├── 07_ColorPicker.unity.meta │ │ │ ├── ColorPickerExample.cs │ │ │ └── ColorPickerExample.cs.meta │ │ ├── 08_LineChartGraph.meta │ │ ├── 08_LineChartGraph │ │ │ ├── 08_LineChartGraph.unity │ │ │ ├── 08_LineChartGraph.unity.meta │ │ │ ├── LineChartGraphExample.cs │ │ │ └── LineChartGraphExample.cs.meta │ │ ├── 09_RadarMap.meta │ │ ├── 09_RadarMap │ │ │ ├── 09_RadarMap.unity │ │ │ ├── 09_RadarMap.unity.meta │ │ │ ├── RadarMapExample.cs │ │ │ └── RadarMapExample.cs.meta │ │ ├── 10_BarChartGraph.meta │ │ └── 10_BarChartGraph │ │ │ ├── BarChartExample.cs │ │ │ ├── BarChartExample.cs.meta │ │ │ ├── BarChartGraph.unity │ │ │ └── BarChartGraph.unity.meta │ ├── Doc.meta │ ├── Doc │ │ ├── Read Me.pdf │ │ └── Read Me.pdf.meta │ ├── Editor.meta │ ├── Editor │ │ ├── SpringGUI.meta │ │ └── SpringGUI │ │ │ ├── ColorPicker.meta │ │ │ ├── ColorPicker │ │ │ ├── ColoredTapeEditor.cs │ │ │ ├── ColoredTapeEditor.cs.meta │ │ │ ├── MainColorTapeEditor.cs │ │ │ ├── MainColorTapeEditor.cs.meta │ │ │ ├── MultiColoredTapeEditor.cs │ │ │ ├── MultiColoredTapeEditor.cs.meta │ │ │ ├── SuckerImageEditor.cs │ │ │ └── SuckerImageEditor.cs.meta │ │ │ ├── Common.meta │ │ │ ├── Common │ │ │ ├── SpringGUIMenuOptions.cs │ │ │ └── SpringGUIMenuOptions.cs.meta │ │ │ ├── Data Graph.meta │ │ │ ├── Data Graph │ │ │ └── LineChartGraph.meta │ │ │ ├── UITree.meta │ │ │ └── UITree │ │ │ ├── UITreeEditor.cs │ │ │ └── UITreeEditor.cs.meta │ ├── Scripts.meta │ └── Scripts │ │ ├── SpringGUI.meta │ │ └── SpringGUI │ │ ├── Buttons.meta │ │ ├── Buttons │ │ ├── DoubleClickButton.cs │ │ ├── DoubleClickButton.cs.meta │ │ ├── LongClickButton.cs │ │ └── LongClickButton.cs.meta │ │ ├── Calendar.meta │ │ ├── Calendar │ │ ├── Calendar.cs │ │ ├── Calendar.cs.meta │ │ ├── DatePicker.cs │ │ └── DatePicker.cs.meta │ │ ├── ColorPicker.meta │ │ ├── ColorPicker │ │ ├── ColorPalette.cs │ │ ├── ColorPalette.cs.meta │ │ ├── ColorPicker.cs │ │ ├── ColorPicker.cs.meta │ │ ├── ColoredTape.cs │ │ ├── ColoredTape.cs.meta │ │ ├── Mesh.meta │ │ └── Mesh │ │ │ ├── ColorNonius.cs │ │ │ ├── ColorNonius.cs.meta │ │ │ ├── ImageMesh.cs │ │ │ ├── ImageMesh.cs.meta │ │ │ ├── MainColorTape.cs │ │ │ ├── MainColorTape.cs.meta │ │ │ ├── MultiColoredTape.cs │ │ │ ├── MultiColoredTape.cs.meta │ │ │ ├── SliderHandler.cs │ │ │ ├── SliderHandler.cs.meta │ │ │ ├── SuckerImage.cs │ │ │ └── SuckerImage.cs.meta │ │ ├── Data Graph.meta │ │ ├── Data Graph │ │ ├── BarChart.meta │ │ ├── BarChart │ │ │ ├── BarBase.meta │ │ │ ├── BarBase │ │ │ │ ├── BarChartData.cs │ │ │ │ ├── BarChartData.cs.meta │ │ │ │ ├── BarChartDataProxy.cs │ │ │ │ ├── BarChartDataProxy.cs.meta │ │ │ │ ├── BarChartFactory.meta │ │ │ │ ├── BarChartFactory │ │ │ │ │ ├── BarChartFactory.cs │ │ │ │ │ ├── BarChartFactory.cs.meta │ │ │ │ │ ├── BarChartFactory1.cs │ │ │ │ │ ├── BarChartFactory1.cs.meta │ │ │ │ │ ├── IBarChartFactory.cs │ │ │ │ │ └── IBarChartFactory.cs.meta │ │ │ │ ├── BarChartSetting.cs │ │ │ │ └── BarChartSetting.cs.meta │ │ │ ├── BarChart.cs │ │ │ └── BarChart.cs.meta │ │ ├── FunctionalGraph.meta │ │ ├── FunctionalGraph │ │ │ ├── FunctionalGraph.cs │ │ │ ├── FunctionalGraph.cs.meta │ │ │ ├── FunctionalGraphBase.cs │ │ │ └── FunctionalGraphBase.cs.meta │ │ ├── LineChart.meta │ │ ├── LineChart │ │ │ ├── LineChart.cs │ │ │ ├── LineChart.cs.meta │ │ │ ├── LineChartData.cs │ │ │ ├── LineChartData.cs.meta │ │ │ ├── LineChartDataMediator.cs │ │ │ ├── LineChartDataMediator.cs.meta │ │ │ ├── LineCharts.meta │ │ │ └── LineCharts │ │ │ │ ├── BaseLineChart.cs │ │ │ │ ├── BaseLineChart.cs.meta │ │ │ │ ├── ILineChart.cs │ │ │ │ ├── ILineChart.cs.meta │ │ │ │ ├── LineChart1.cs │ │ │ │ ├── LineChart1.cs.meta │ │ │ │ ├── LineChart2.cs │ │ │ │ ├── LineChart2.cs.meta │ │ │ │ ├── LineChart3.cs │ │ │ │ └── LineChart3.cs.meta │ │ ├── PieGraph.meta │ │ ├── PieGraph │ │ │ ├── PieGraph.cs │ │ │ └── PieGraph.cs.meta │ │ ├── RadarMap.meta │ │ └── RadarMap │ │ │ ├── RadarBase.meta │ │ │ ├── RadarBase │ │ │ ├── RadarData.cs │ │ │ ├── RadarData.cs.meta │ │ │ ├── RadarDataProxy.cs │ │ │ ├── RadarDataProxy.cs.meta │ │ │ ├── RadarFactory.meta │ │ │ └── RadarFactory │ │ │ │ ├── BaseRadarFactory.cs │ │ │ │ ├── BaseRadarFactory.cs.meta │ │ │ │ ├── IRadarFactory.cs │ │ │ │ ├── IRadarFactory.cs.meta │ │ │ │ ├── RadarFactory1.cs │ │ │ │ └── RadarFactory1.cs.meta │ │ │ ├── RadarMap.cs │ │ │ └── RadarMap.cs.meta │ │ ├── DefaultControls.meta │ │ ├── DefaultControls │ │ ├── BaseClass.meta │ │ ├── BaseClass │ │ │ ├── Interface.meta │ │ │ ├── Interface │ │ │ │ ├── IDataGraphFactory.cs │ │ │ │ ├── IDataGraphFactory.cs.meta │ │ │ │ ├── IInject.cs │ │ │ │ ├── IInject.cs.meta │ │ │ │ ├── ISpringGUIBase.cs │ │ │ │ └── ISpringGUIBase.cs.meta │ │ │ ├── sgBase.cs │ │ │ ├── sgBase.cs.meta │ │ │ ├── sgDataGraphBase.cs │ │ │ ├── sgDataGraphBase.cs.meta │ │ │ ├── sgSettingBase.cs │ │ │ └── sgSettingBase.cs.meta │ │ ├── DefaultControls.meta │ │ └── DefaultControls │ │ │ ├── SpringGUIDefaultControls.cs │ │ │ └── SpringGUIDefaultControls.cs.meta │ │ ├── Icons.meta │ │ ├── Icons │ │ ├── Circle.meta │ │ ├── Circle │ │ │ ├── Circle.cs │ │ │ └── Circle.cs.meta │ │ ├── SpringGUI Icon Doc.txt │ │ └── SpringGUI Icon Doc.txt.meta │ │ ├── UITree.meta │ │ └── UITree │ │ ├── UITree.cs │ │ ├── UITree.cs.meta │ │ ├── UITreeData.cs │ │ ├── UITreeData.cs.meta │ │ ├── UITreeNode.cs │ │ └── UITreeNode.cs.meta ├── SpringShader.meta └── SpringShader │ ├── Demo.meta │ ├── Demo │ ├── 01_LowPoly.meta │ └── 01_LowPoly │ │ ├── 01_LowPoly.mat │ │ ├── 01_LowPoly.mat.meta │ │ ├── 01_LowPoly.unity │ │ ├── 01_LowPoly.unity.meta │ │ ├── LowPoly.cs │ │ └── LowPoly.cs.meta │ ├── Doc.meta │ ├── Editor.meta │ ├── Reference.meta │ ├── Reference │ ├── QQlogin.png │ └── QQlogin.png.meta │ └── Scripts.meta ├── EFFECTS ├── 01_FunctionalGraph │ ├── FunctionalGraph.png │ └── Inspector.png ├── 02_PieGraph │ ├── Inspector.png │ ├── Pie.gif │ └── PieGraph.png ├── 03_DoubleLongClickButton │ └── DoubleLongClickButton.png ├── 04_TreeView │ ├── TreeView.png │ ├── TreeView1.png │ └── ViewTree.gif ├── 05_DatePicker │ ├── Calendar.gif │ └── DatePicker.png ├── 06_ColoredTape │ └── CT.png ├── 07_ColorPicker │ ├── ColorPicker.png │ └── Colorpicker.gif ├── 08_LineChartGraph │ ├── 20170717210846192.png │ ├── Example.png │ └── LineChart.gif └── 09_RadarMap │ ├── All.png │ ├── Effect1.png │ ├── Effect4.png │ ├── Effect5.png │ ├── Effect6.png │ ├── RadarMap.gif │ ├── effect2.png │ └── effect3.png ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── NetworkManager.asset ├── Physics2DSettings.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset ├── UnityAdsSettings.asset └── UnityConnectSettings.asset ├── README.md └── _config.yml /.vs/UnityRepository/v14/.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spr1ngd/UnityCodes/dd7ab075b820cf9ad93ab03a622a9f48fc9e2c72/.vs/UnityRepository/v14/.suo -------------------------------------------------------------------------------- /Assets/SpringGUI.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4f4ae546125b8e94fa6154381afd626d 3 | folderAsset: yes 4 | timeCreated: 1501304474 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 48796652b35340148a9c0c9b606ba5ae 3 | folderAsset: yes 4 | timeCreated: 1493944740 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/01_FunctionalGraph.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1fe2f1236d5389e4c84ef57ff844378a 3 | folderAsset: yes 4 | timeCreated: 1500186961 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/01_FunctionalGraph/01_FunctionalGraph.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spr1ngd/UnityCodes/dd7ab075b820cf9ad93ab03a622a9f48fc9e2c72/Assets/SpringGUI/Demo/01_FunctionalGraph/01_FunctionalGraph.unity -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/01_FunctionalGraph/01_FunctionalGraph.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dc8197eb714a2a341a4ee9c8eadeb580 3 | timeCreated: 1500186986 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/01_FunctionalGraph/FunctionalGraphExample.cs: -------------------------------------------------------------------------------- 1 |  2 | /*========================================= 3 | * Author: springDong 4 | * Description: functional formula graph example. 5 | ==========================================*/ 6 | 7 | using UnityEngine; 8 | using System.Collections.Generic; 9 | using SpringGUI; 10 | 11 | public class FunctionalGraphExample : MonoBehaviour 12 | { 13 | public FunctionalGraph FunctionalGraph = null; 14 | 15 | private void Start() 16 | { 17 | // method one 18 | FunctionalGraph.Inject(Mathf.Sin , Color.red , 2.0f); 19 | 20 | // method two 21 | FunctionalGraph.Inject(new FunctionFormula(Mathf.Cos , Color.green , 2.0f)); 22 | 23 | // method three 24 | FunctionalGraph.Inject( new List() 25 | { 26 | new FunctionFormula(Mathf.Log10,Color.yellow,2.0f), 27 | new FunctionFormula(Mathf.Abs,Color.cyan,2.0f) 28 | } ); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/01_FunctionalGraph/FunctionalGraphExample.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 961e106e2ddd9da44bb280b93cc3dc7f 3 | timeCreated: 1501310445 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/02_PieGraph.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b93aeefd6b36f5349b8391033f2025c3 3 | folderAsset: yes 4 | timeCreated: 1500187384 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/02_PieGraph/02_PieGraph.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spr1ngd/UnityCodes/dd7ab075b820cf9ad93ab03a622a9f48fc9e2c72/Assets/SpringGUI/Demo/02_PieGraph/02_PieGraph.unity -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/02_PieGraph/02_PieGraph.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6b6c098f584fb4748808137da90f12b6 3 | timeCreated: 1500187406 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/02_PieGraph/PieGraphExample.cs: -------------------------------------------------------------------------------- 1 |  2 | /*========================================= 3 | * Author: springDong 4 | * Description: pie graph example. 5 | ==========================================*/ 6 | 7 | using UnityEngine; 8 | using System.Collections.Generic; 9 | using SpringGUI; 10 | 11 | public class PieGraphExample : MonoBehaviour 12 | { 13 | public PieGraph PieGraph = null; 14 | 15 | private void Start() 16 | { 17 | // method 1: 18 | PieGraph.Inject(new Pies(new List() 19 | { 20 | new PieData(26 ,Color.white) 21 | })); 22 | 23 | // method 2: 24 | PieGraph.Inject(new List() 25 | { 26 | new PieData(22,Color.magenta), 27 | new PieData(15 ,Color.red), 28 | }); 29 | 30 | // method 3: 31 | PieGraph.Inject( 32 | new List() { 12 , 10 } , 33 | new List() { Color.blue , Color.black }); 34 | 35 | // method 4: 36 | PieGraph.Inject(new List() { 8 , 7 }); 37 | } 38 | } -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/02_PieGraph/PieGraphExample.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3959da05434a7de44a13a651981c67dc 3 | timeCreated: 1501313052 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/03_DoubleClickButton_LongClick.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cfadc3fd27fd9544b8920a0e65fcd153 3 | folderAsset: yes 4 | timeCreated: 1500187513 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/03_DoubleClickButton_LongClick/03_DoubleClickButton&&LongClickButton.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spr1ngd/UnityCodes/dd7ab075b820cf9ad93ab03a622a9f48fc9e2c72/Assets/SpringGUI/Demo/03_DoubleClickButton_LongClick/03_DoubleClickButton&&LongClickButton.unity -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/03_DoubleClickButton_LongClick/03_DoubleClickButton&&LongClickButton.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d280a102d5120114688f26b0e15447cb 3 | timeCreated: 1500187553 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/03_DoubleClickButton_LongClick/DoubleLongClickButton.cs: -------------------------------------------------------------------------------- 1 |  2 | //SpringGUI. 3 | 4 | using SpringGUI; 5 | using UnityEngine; 6 | using UnityEngine.UI; 7 | 8 | public class DoubleLongClickButton : MonoBehaviour 9 | { 10 | public DoubleClickButton DoubleClickButton = null; 11 | public LongClickButton LongClickButton = null; 12 | 13 | public void Start() 14 | { 15 | DoubleClickButton.onDoubleClick.AddListener(() => 16 | { 17 | Debug.Log("Double click button"); 18 | }); 19 | LongClickButton.onLongClick.AddListener(() => 20 | { 21 | Debug.Log("Long click button"); 22 | }); 23 | } 24 | } -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/03_DoubleClickButton_LongClick/DoubleLongClickButton.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5dd10925c667c0c48bae5f28d4e04203 3 | timeCreated: 1500187658 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/04_UITree TreeView.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ab2ba84669143e047828bfafb9563a04 3 | folderAsset: yes 4 | timeCreated: 1500187933 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/04_UITree TreeView/04_TreeView.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spr1ngd/UnityCodes/dd7ab075b820cf9ad93ab03a622a9f48fc9e2c72/Assets/SpringGUI/Demo/04_UITree TreeView/04_TreeView.unity -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/04_UITree TreeView/04_TreeView.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6aa0e49b6138a5641a9a9aefb4bf6dab 3 | timeCreated: 1500187971 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/04_UITree TreeView/UITreeExample.cs: -------------------------------------------------------------------------------- 1 |  2 | /*========================================= 3 | * Author: springDong 4 | * Description: SpringGUI.UITree example 5 | ==========================================*/ 6 | 7 | using UnityEngine; 8 | using System.Collections.Generic; 9 | using SpringGUI; 10 | 11 | public class UITreeExample : MonoBehaviour 12 | { 13 | public UITree UITree = null; 14 | 15 | public void Awake() 16 | { 17 | var data = new UITreeData("SpringGUI",new List() 18 | { 19 | new UITreeData("Button",new List() 20 | { 21 | new UITreeData("DoubleClickButton"), 22 | new UITreeData("LongClickButton") 23 | }), 24 | new UITreeData("Pie"), 25 | new UITreeData("DatePicker"), 26 | new UITreeData("C#",new List() 27 | { 28 | new UITreeData("high-level syntax",new List() 29 | { 30 | new UITreeData("Action",new List() 31 | { 32 | new UITreeData("One parameter"), 33 | new UITreeData("Two parameter"), 34 | new UITreeData("Three parameter"), 35 | new UITreeData("Four parameter"), 36 | new UITreeData("Five parameter") 37 | }), 38 | new UITreeData("Func"), 39 | new UITreeData("delegate") 40 | }), 41 | new UITreeData("Reflect") 42 | }) 43 | }); 44 | //UITree.SetData(data); 45 | UITree.Inject(data); 46 | } 47 | } -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/04_UITree TreeView/UITreeExample.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 54382f9f34d633e4f8d1be555e1ec8f6 3 | timeCreated: 1500187991 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/05_DatePicker.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 20d17913154e7174eb177c18f748db06 3 | folderAsset: yes 4 | timeCreated: 1500188579 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/05_DatePicker/05_DatePicker.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spr1ngd/UnityCodes/dd7ab075b820cf9ad93ab03a622a9f48fc9e2c72/Assets/SpringGUI/Demo/05_DatePicker/05_DatePicker.unity -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/05_DatePicker/05_DatePicker.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4ba1542057226234e8dc1aa84fc2db1b 3 | timeCreated: 1500188604 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/05_DatePicker/DatePickerExample.cs: -------------------------------------------------------------------------------- 1 |  2 | /*========================================= 3 | * Author: springDong 4 | * Description: SpringGUI.Calendar example. 5 | ==========================================*/ 6 | 7 | using UnityEngine; 8 | using SpringGUI; 9 | 10 | public class DatePickerExample : MonoBehaviour 11 | { 12 | public DatePicker DatePicker = null; 13 | public Calendar Calendar = null; 14 | 15 | public void Awake() 16 | { 17 | Calendar.onDayClick.AddListener(time => 18 | { 19 | Debug.Log(string.Format("Today is {0}Yeah{1}Month{2}Day" , 20 | time.Year , time.Month , time.Day)); 21 | }); 22 | Calendar.onMonthClick.AddListener(time => 23 | { 24 | Debug.Log(string.Format("This month is {0}Yeah{1}Month" , 25 | time.Year , time.Month)); 26 | }); 27 | Calendar.onYearClick.AddListener(time => 28 | { 29 | Debug.Log(string.Format("This yeah{0}Yeah" , time.Year)); 30 | }); 31 | } 32 | } -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/05_DatePicker/DatePickerExample.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f1abbd3d23e44b941ac9284f71a40f29 3 | timeCreated: 1500188740 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/06_ColoredTape.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dc9a4c66f4b66e84a92af5ddb33d1248 3 | folderAsset: yes 4 | timeCreated: 1500189154 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/06_ColoredTape/06_ColoredTape.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spr1ngd/UnityCodes/dd7ab075b820cf9ad93ab03a622a9f48fc9e2c72/Assets/SpringGUI/Demo/06_ColoredTape/06_ColoredTape.unity -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/06_ColoredTape/06_ColoredTape.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fc6c39475abea4f4a865f2ee4a3e1aae 3 | timeCreated: 1500189171 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/06_ColoredTape/ColoredTapeExample.cs: -------------------------------------------------------------------------------- 1 |  2 | /*========================================= 3 | * Author: springDong 4 | * Description: SpringGUI.ColoredTape example. 5 | ==========================================*/ 6 | 7 | using UnityEngine; 8 | using SpringGUI; 9 | 10 | public class ColoredTapeExample : MonoBehaviour 11 | { 12 | private Color[] Colors = new Color[] 13 | { 14 | UnityEngine.Color.red, 15 | UnityEngine.Color.magenta, 16 | UnityEngine.Color.blue, 17 | UnityEngine.Color.cyan, 18 | UnityEngine.Color.green, 19 | UnityEngine.Color.yellow, 20 | UnityEngine.Color.red 21 | }; 22 | 23 | private Color[] Color = new Color[] 24 | { 25 | UnityEngine.Color.red, 26 | UnityEngine.Color.green 27 | }; 28 | 29 | public ColoredTape VerticalCT = null; 30 | public ColoredTape HorizontalCT = null; 31 | 32 | private void OnGUI() 33 | { 34 | if (GUILayout.Button("Change vertical colored tape's color")) 35 | { 36 | VerticalCT.SetColors(Colors); 37 | } 38 | 39 | if (GUILayout.Button("Change horizontal colored tape's color") ) 40 | { 41 | HorizontalCT.SetColors(Colors); 42 | } 43 | 44 | if (GUILayout.Button("Reset")) 45 | { 46 | VerticalCT.SetColors(Color); 47 | HorizontalCT.SetColors(Color); 48 | } 49 | } 50 | } -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/06_ColoredTape/ColoredTapeExample.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0a4c8d39a9ca1b642b873bf1cb9a0267 3 | timeCreated: 1500189185 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/07_ColorPicker.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8c65ce480b9dff24bb930b5a0b07ddf7 3 | folderAsset: yes 4 | timeCreated: 1500189599 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/07_ColorPicker/07_ColorPicker.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spr1ngd/UnityCodes/dd7ab075b820cf9ad93ab03a622a9f48fc9e2c72/Assets/SpringGUI/Demo/07_ColorPicker/07_ColorPicker.unity -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/07_ColorPicker/07_ColorPicker.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a00ce856f60877e46a262fcf0bd3dd83 3 | timeCreated: 1500189609 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/07_ColorPicker/ColorPickerExample.cs: -------------------------------------------------------------------------------- 1 |  2 | /*========================================= 3 | * Author: springDong 4 | * Description: SpringGUI.Calendar example. 5 | ==========================================*/ 6 | 7 | using UnityEngine; 8 | using SpringGUI; 9 | using UnityEngine.UI; 10 | 11 | public class ColorPickerExample : MonoBehaviour 12 | { 13 | public ColorPicker ColorPicker = null; 14 | public Image Image = null; 15 | 16 | private void Awake() 17 | { 18 | ColorPicker.onPicker.AddListener(color => { Image.color = color; }); 19 | } 20 | } -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/07_ColorPicker/ColorPickerExample.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 82be6fb289e1e754ab53c7be2fdad1f2 3 | timeCreated: 1500189625 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/08_LineChartGraph.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f7480588a2d3dbd4d8a36f22c53a3105 3 | folderAsset: yes 4 | timeCreated: 1500189992 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/08_LineChartGraph/08_LineChartGraph.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spr1ngd/UnityCodes/dd7ab075b820cf9ad93ab03a622a9f48fc9e2c72/Assets/SpringGUI/Demo/08_LineChartGraph/08_LineChartGraph.unity -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/08_LineChartGraph/08_LineChartGraph.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 22580184124961443bd8923ab5304d6f 3 | timeCreated: 1500190034 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/08_LineChartGraph/LineChartGraphExample.cs: -------------------------------------------------------------------------------- 1 |  2 | /*========================================= 3 | * Author: springDong 4 | * Description: SpringGUI.LineChartGraph example. 5 | ==========================================*/ 6 | 7 | using System.Collections.Generic; 8 | using SpringGUI; 9 | using UnityEngine; 10 | 11 | public class LineChartGraphExample : MonoBehaviour 12 | { 13 | public class TestData 14 | { 15 | public float xValue { get; set; } 16 | public float yValue { get; set; } 17 | 18 | public TestData( float x ,float y ) 19 | { 20 | xValue = x; 21 | yValue = y; 22 | } 23 | } 24 | 25 | public LineChart LineChart = null; 26 | 27 | public void Awake() 28 | { 29 | var data1 = new List() 30 | { 31 | new TestData(0.0f,0.0f), 32 | new TestData(0.1f,0.9f), 33 | new TestData(0.2f,0.2f), 34 | new TestData(0.3f,0.8f), 35 | new TestData(0.4f,0.3f), 36 | new TestData(0.5f,0.7f), 37 | new TestData(0.6f,0.4f), 38 | new TestData(0.7f,0.6f), 39 | new TestData(0.8f,0.5f), 40 | new TestData(0.9f,0.2f), 41 | new TestData(1f,0.5f), 42 | }; 43 | var data2 = new List() 44 | { 45 | new TestData(0.0f,0.7f), 46 | new TestData(0.1f,0.1f), 47 | new TestData(0.2f,0.5f), 48 | new TestData(0.3f,0.6f), 49 | new TestData(0.4f,0.7f), 50 | new TestData(0.5f,0.2f), 51 | new TestData(0.6f,0.72f), 52 | new TestData(0.7f,0.24f), 53 | new TestData(0.8f,0.52f), 54 | new TestData(0.9f,0.1f), 55 | new TestData(1f,0.0f), 56 | }; 57 | LineChart.Inject(data1); 58 | LineChart.Inject(data2); 59 | LineChart.ShowUnit(); 60 | } 61 | 62 | public void OnGUI() 63 | { 64 | if (GUILayout.Button("Reset")) 65 | { 66 | LineChart.Refresh(); 67 | } 68 | GUILayout.Label("Static Data"); 69 | if (GUILayout.Button("Mode1")) 70 | { 71 | LineChart.lineChartType = LineChart.LineChartType.LineChart1; 72 | LineChart.Refresh(); 73 | } 74 | if (GUILayout.Button("Mode2")) 75 | { 76 | LineChart.lineChartType = LineChart.LineChartType.LineChart2; 77 | LineChart.Refresh(); 78 | } 79 | if (GUILayout.Button("Mode3")) 80 | { 81 | LineChart.lineChartType = LineChart.LineChartType.LineChart3; 82 | LineChart.Refresh(); 83 | } 84 | if (GUILayout.Button("Delete one line ")) 85 | { 86 | LineChart.RemoveLine(1); 87 | } 88 | GUILayout.Label("Dynamic Data"); 89 | GUILayout.Space(5); 90 | if (GUILayout.Button("Replace all data")) 91 | { 92 | LineChart.Replace(1 , new List() 93 | { 94 | new TestData(0.0f,0.11f), 95 | new TestData(0.1f,0.1f), 96 | new TestData(0.2f,0.27f), 97 | new TestData(0.3f,0.16f), 98 | new TestData(0.4f,0.1f), 99 | new TestData(0.5f,0.14f), 100 | new TestData(0.6f,0.52f), 101 | new TestData(0.7f,0.2f), 102 | new TestData(0.8f,0.11f), 103 | new TestData(0.9f,0.8f), 104 | new TestData(1f,0.18f), 105 | }); 106 | } 107 | GUILayout.Space(5); 108 | if ( GUILayout.Button(" Dynamic stream data ") ) 109 | { 110 | LineChart.InjectVertexStream(1 , new List() 111 | { 112 | new TestData(0.0f,0.9f), 113 | new TestData(0.0f,0.2f), 114 | new TestData(0.0f,0.4f), 115 | new TestData(0.0f,0.5f), 116 | new TestData(0.0f,0.6f), 117 | new TestData(0.0f,0.1f), 118 | new TestData(0.0f,0.23f), 119 | new TestData(0.0f,0.15f), 120 | new TestData(0.0f,0.61f), 121 | new TestData(0.0f,0.1f), 122 | new TestData(0.0f,0.5f), 123 | new TestData(0.0f,0.1f), 124 | }); 125 | } 126 | } 127 | } -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/08_LineChartGraph/LineChartGraphExample.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8a2b2a40b0bb9914796344f87de1c0ae 3 | timeCreated: 1500276552 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/09_RadarMap.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c6f1d97ae2bad1b46a8c3dd29591e04b 3 | folderAsset: yes 4 | timeCreated: 1500883513 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/09_RadarMap/09_RadarMap.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spr1ngd/UnityCodes/dd7ab075b820cf9ad93ab03a622a9f48fc9e2c72/Assets/SpringGUI/Demo/09_RadarMap/09_RadarMap.unity -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/09_RadarMap/09_RadarMap.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3834bbf12ad700e41a983f41170cadb0 3 | timeCreated: 1500883585 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/09_RadarMap/RadarMapExample.cs: -------------------------------------------------------------------------------- 1 |  2 | /*========================================= 3 | * Author: spring 4 | * DateTime:2017/7/25 14:59:38 5 | * Description:SpringGUI.RadarMap example. 6 | ==========================================*/ 7 | 8 | using UnityEngine; 9 | using SpringGUI; 10 | using System.Collections.Generic; 11 | 12 | public class RMExampleData 13 | { 14 | public float value{get;set;} 15 | 16 | public RMExampleData(float value) 17 | { 18 | this.value = value; 19 | } 20 | } 21 | 22 | public class RadarMapExample : MonoBehaviour 23 | { 24 | public RadarMap RadarMap1 = null; 25 | public RadarMap RadarMap2 = null; 26 | public RadarMap RadarMap3 = null; 27 | public RadarMap RadarMap4 = null; 28 | public RadarMap RadarMap5 = null; 29 | public RadarMap RadarMap6 = null; 30 | 31 | private void Awake() 32 | { 33 | IList radarone = new List() 34 | { 35 | new RMExampleData(0.36f), 36 | new RMExampleData(0.6f), 37 | new RMExampleData(0.69f), 38 | new RMExampleData(0.9f), 39 | new RMExampleData(0.2f), 40 | new RMExampleData(0.5f) 41 | }; 42 | IList radartwo = new List() 43 | { 44 | new RMExampleData(0.1f), 45 | new RMExampleData(0.3f), 46 | new RMExampleData(0.5f), 47 | new RMExampleData(0.7f), 48 | new RMExampleData(0.9f), 49 | new RMExampleData(0.0f) 50 | }; 51 | 52 | RadarMap1.Inject(radarone); 53 | RadarMap1.Inject(radartwo); 54 | 55 | RadarMap2.Inject(radarone); 56 | RadarMap2.Inject(radartwo); 57 | 58 | RadarMap3.Inject(radarone); 59 | RadarMap3.Inject(radartwo); 60 | 61 | RadarMap4.Inject(radarone); 62 | RadarMap4.Inject(radartwo); 63 | 64 | RadarMap5.Inject(radarone); 65 | RadarMap5.Inject(radartwo); 66 | 67 | IList radarthree = new List() 68 | { 69 | new RMExampleData(0.0f), 70 | new RMExampleData(0.1f), 71 | new RMExampleData(0.2f), 72 | new RMExampleData(0.3f), 73 | new RMExampleData(0.4f), 74 | new RMExampleData(0.5f), 75 | new RMExampleData(0.6f), 76 | new RMExampleData(0.7f), 77 | new RMExampleData(0.8f), 78 | new RMExampleData(0.9f), 79 | new RMExampleData(1f), 80 | }; 81 | RadarMap6.Inject(radarthree); 82 | } 83 | } -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/09_RadarMap/RadarMapExample.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ab6cbb73cbce9bf44924c228deb6602f 3 | timeCreated: 1500965306 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/10_BarChartGraph.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 75e5628dc86ecfa4291272181a151105 3 | folderAsset: yes 4 | timeCreated: 1502008921 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/10_BarChartGraph/BarChartExample.cs: -------------------------------------------------------------------------------- 1 |  2 | /*========================================= 3 | * Author: Administrator 4 | * DateTime:2017/8/6 17:43:41 5 | * Description:$safeprojectname$ 6 | ==========================================*/ 7 | 8 | using UnityEngine; 9 | using System.Collections.Generic; 10 | using SpringGUI; 11 | 12 | public class BarChartExample : MonoBehaviour 13 | { 14 | public BarChart BarChart = null; 15 | 16 | private void Awake() 17 | { 18 | IList bars = new List(){ 0.6f,0.8f,0.1f,0.2f,0.5f}; 19 | 20 | IList[] barss = new IList[] 21 | { 22 | new List(){0.1f,0.7f,0.2f}, 23 | new List(){0.2f,0.4f,0.9f}, 24 | new List(){0.5f,0.1f,0.2f}, 25 | new List(){0.8f,0.2f,0.8f}, 26 | }; 27 | 28 | BarChart.Inject(barss); 29 | BarChart.UnitEnable(true); 30 | } 31 | } -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/10_BarChartGraph/BarChartExample.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 590184d2903389a44a4051f64d286459 3 | timeCreated: 1502080742 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/10_BarChartGraph/BarChartGraph.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spr1ngd/UnityCodes/dd7ab075b820cf9ad93ab03a622a9f48fc9e2c72/Assets/SpringGUI/Demo/10_BarChartGraph/BarChartGraph.unity -------------------------------------------------------------------------------- /Assets/SpringGUI/Demo/10_BarChartGraph/BarChartGraph.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8a56ba36976872a4ea5318b200a8fafb 3 | timeCreated: 1502008972 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Doc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c46f19b4b1d569848ae053c5551956c5 3 | folderAsset: yes 4 | timeCreated: 1501329120 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Doc/Read Me.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spr1ngd/UnityCodes/dd7ab075b820cf9ad93ab03a622a9f48fc9e2c72/Assets/SpringGUI/Doc/Read Me.pdf -------------------------------------------------------------------------------- /Assets/SpringGUI/Doc/Read Me.pdf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4b26ca0d628ccac479f91261b0fd9fcd 3 | timeCreated: 1501329126 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f2d392e305cfbc644a64c9e37f18cac7 3 | folderAsset: yes 4 | timeCreated: 1490677523 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Editor/SpringGUI.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6a9a46023f521d6439954ce7456d1058 3 | folderAsset: yes 4 | timeCreated: 1495780374 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Editor/SpringGUI/ColorPicker.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 141590d0d0cbb4d419d56fb3271c1041 3 | folderAsset: yes 4 | timeCreated: 1496997768 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Editor/SpringGUI/ColorPicker/ColoredTapeEditor.cs: -------------------------------------------------------------------------------- 1 |  2 | /*========================================= 3 | * Author: SpringDong 4 | * DateTime:2017/6/9 16:41:36 5 | * Description: 6 | * 对ColoredTape面板进行重写但是博主在重写ColorList时遇到问题,无法将其展示在Inpector面板上 7 | * 如果你知道如何在OnInspector方法中重写List,可以联系博主告诉我(Email:540637360@qq.com) 8 | * Thanks! 9 | ==========================================*/ 10 | 11 | using UnityEditor; 12 | using UnityEditor.UI; 13 | using UnityEngine; 14 | 15 | namespace SpringGUI 16 | { 17 | //[CustomEditor(typeof(ColoredTape))] 18 | //[CanEditMultipleObjects] 19 | internal class ColoredTapeEditor : GraphicEditor 20 | { 21 | private SerializedProperty m_tapeDirection = null; 22 | private SerializedProperty m_ouline = null; 23 | private SerializedProperty m_outlineWidth = null; 24 | private SerializedProperty m_outlineColor = null; 25 | private SerializedProperty m_colors = null; 26 | private SerializedProperty _colors = null; 27 | 28 | protected override void OnEnable() 29 | { 30 | base.OnEnable(); 31 | //m_tapeDirection = serializedObject.FindProperty("TapeDirection"); 32 | //m_ouline = serializedObject.FindProperty("Outline"); 33 | //m_outlineWidth = serializedObject.FindProperty("OuelineWidth"); 34 | //m_outlineColor = serializedObject.FindProperty("OutlineColor"); 35 | //m_colors = serializedObject.FindProperty("m_Colors"); 36 | //_colors = serializedObject.FindProperty("_colors"); 37 | } 38 | 39 | protected override void OnDisable( ) 40 | { 41 | 42 | } 43 | 44 | public override void OnInspectorGUI() 45 | { 46 | base.OnInspectorGUI(); 47 | } 48 | } 49 | } -------------------------------------------------------------------------------- /Assets/SpringGUI/Editor/SpringGUI/ColorPicker/ColoredTapeEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 91b3f57d40ca8bb43a9818b742641c03 3 | timeCreated: 1497078172 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Editor/SpringGUI/ColorPicker/MainColorTapeEditor.cs: -------------------------------------------------------------------------------- 1 |  2 | /*========================================= 3 | * Author: Administrator 4 | * DateTime:2017/6/11 15:17:39 5 | * Description:$safeprojectname$ 6 | ==========================================*/ 7 | 8 | using UnityEditor; 9 | using UnityEditor.UI; 10 | 11 | namespace SpringGUI 12 | { 13 | [CustomEditor(typeof(MainColorTape))] 14 | [CanEditMultipleObjects] 15 | internal class MainColorTapeEditor : GraphicEditor 16 | { 17 | private SerializedProperty _Color = null; 18 | private SerializedProperty m_ouline = null; 19 | private SerializedProperty m_outlineWidth = null; 20 | private SerializedProperty m_outlineColor = null; 21 | 22 | protected override void OnEnable( ) 23 | { 24 | _Color = serializedObject.FindProperty("m_Color"); 25 | m_ouline = serializedObject.FindProperty("Outline"); 26 | m_outlineWidth = serializedObject.FindProperty("OuelineWidth"); 27 | m_outlineColor = serializedObject.FindProperty("OutlineColor"); 28 | } 29 | 30 | protected override void OnDisable( ) 31 | { 32 | 33 | } 34 | 35 | public override void OnInspectorGUI( ) 36 | { 37 | serializedObject.Update(); 38 | EditorGUILayout.Space(); 39 | EditorGUILayout.LabelField("Selected Color" , EditorStyles.boldLabel); 40 | EditorGUI.indentLevel = 1; 41 | _Color.colorValue = EditorGUILayout.ColorField("MainColor" , _Color.colorValue); 42 | EditorGUI.indentLevel = 0; 43 | EditorGUILayout.LabelField("Outline Setting" , EditorStyles.boldLabel); 44 | EditorGUI.indentLevel = 1; 45 | EditorGUILayout.PropertyField(m_ouline); 46 | if ( m_ouline.boolValue ) 47 | { 48 | EditorGUILayout.PropertyField(m_outlineWidth); 49 | EditorGUILayout.PropertyField(m_outlineColor); 50 | } 51 | serializedObject.ApplyModifiedProperties(); 52 | } 53 | } 54 | } -------------------------------------------------------------------------------- /Assets/SpringGUI/Editor/SpringGUI/ColorPicker/MainColorTapeEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3c1535a8a463e7d4bb85c1d87fc60faf 3 | timeCreated: 1497165706 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Editor/SpringGUI/ColorPicker/MultiColoredTapeEditor.cs: -------------------------------------------------------------------------------- 1 |  2 | /*========================================= 3 | * Author: Administrator 4 | * DateTime:2017/6/12 15:58:54 5 | * Description:$safeprojectname$ 6 | ==========================================*/ 7 | 8 | using UnityEditor; 9 | using UnityEditor.UI; 10 | 11 | namespace SpringGUI 12 | { 13 | [CustomEditor(typeof(MultiColoredTape))] 14 | [CanEditMultipleObjects] 15 | public class MultiColoredTapeEditor : GraphicEditor 16 | { 17 | private SerializedProperty TopLeft = null; 18 | private SerializedProperty TopRight = null; 19 | private SerializedProperty BottomLeft = null; 20 | private SerializedProperty BottomRight = null; 21 | private SerializedProperty m_ouline = null; 22 | private SerializedProperty m_outlineWidth = null; 23 | private SerializedProperty m_outlineColor = null; 24 | 25 | protected override void OnEnable( ) 26 | { 27 | TopLeft = serializedObject.FindProperty("TopLeft"); 28 | TopRight = serializedObject.FindProperty("TopRight"); 29 | BottomLeft = serializedObject.FindProperty("BottomLeft"); 30 | BottomRight = serializedObject.FindProperty("BottomRight"); 31 | m_ouline = serializedObject.FindProperty("Outline"); 32 | m_outlineWidth = serializedObject.FindProperty("OuelineWidth"); 33 | m_outlineColor = serializedObject.FindProperty("OutlineColor"); 34 | } 35 | 36 | protected override void OnDisable( ) 37 | { 38 | 39 | } 40 | 41 | public override void OnInspectorGUI( ) 42 | { 43 | serializedObject.Update(); 44 | EditorGUILayout.Space(); 45 | EditorGUILayout.LabelField("Colors" , EditorStyles.boldLabel); 46 | EditorGUI.indentLevel = 1; 47 | TopLeft.colorValue = EditorGUILayout.ColorField("TopLeft" , TopLeft.colorValue); 48 | TopRight.colorValue = EditorGUILayout.ColorField("TopRight" , TopRight.colorValue); 49 | BottomLeft.colorValue = EditorGUILayout.ColorField("BottomLeft" , BottomLeft.colorValue); 50 | BottomRight.colorValue = EditorGUILayout.ColorField("BottomRight" , BottomRight.colorValue); 51 | EditorGUI.indentLevel = 0; 52 | EditorGUILayout.LabelField("Outline Setting" , EditorStyles.boldLabel); 53 | EditorGUI.indentLevel = 1; 54 | EditorGUILayout.PropertyField(m_ouline); 55 | if ( m_ouline.boolValue ) 56 | { 57 | EditorGUILayout.PropertyField(m_outlineWidth); 58 | EditorGUILayout.PropertyField(m_outlineColor); 59 | } 60 | serializedObject.ApplyModifiedProperties(); 61 | } 62 | } 63 | } -------------------------------------------------------------------------------- /Assets/SpringGUI/Editor/SpringGUI/ColorPicker/MultiColoredTapeEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4b84b6c4f829ddf4586826c12791b13d 3 | timeCreated: 1497254514 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Editor/SpringGUI/ColorPicker/SuckerImageEditor.cs: -------------------------------------------------------------------------------- 1 |  2 | /*========================================= 3 | * Author : SpringDong 4 | * DateTime : 2017/6/11 15:40:14 5 | * Email : 540637360@qq.com 6 | * Description : 重写ScukerImage Inspector面板 7 | ==========================================*/ 8 | 9 | using UnityEditor; 10 | using UnityEditor.UI; 11 | 12 | namespace SpringGUI 13 | { 14 | [CustomEditor(typeof(SuckerImage))] 15 | [CanEditMultipleObjects] 16 | internal class SuckerImageEditor : GraphicEditor 17 | { 18 | protected override void OnEnable() 19 | { 20 | 21 | } 22 | protected override void OnDisable() 23 | { 24 | 25 | } 26 | public override void OnInspectorGUI() 27 | { 28 | 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /Assets/SpringGUI/Editor/SpringGUI/ColorPicker/SuckerImageEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 536a116a0041e1d419d6323564756955 3 | timeCreated: 1497166975 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Editor/SpringGUI/Common.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 259c0478bd918be4b86c107e48345d00 3 | folderAsset: yes 4 | timeCreated: 1496395556 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Editor/SpringGUI/Common/SpringGUIMenuOptions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 04d4e4668705f76449c0581ce7af5d20 3 | timeCreated: 1495673744 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Editor/SpringGUI/Data Graph.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5f6100eb9d6c288429508db9a0882eba 3 | folderAsset: yes 4 | timeCreated: 1500283074 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Editor/SpringGUI/Data Graph/LineChartGraph.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 94739a8f2cddfaf4482ee7257e728bab 3 | folderAsset: yes 4 | timeCreated: 1500283085 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Editor/SpringGUI/UITree.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dbb62223f5a63d44997860eba879ecb7 3 | folderAsset: yes 4 | timeCreated: 1495781112 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Editor/SpringGUI/UITree/UITreeEditor.cs: -------------------------------------------------------------------------------- 1 |  2 | using UnityEditor; 3 | using UnityEngine; 4 | 5 | namespace SpringGUI 6 | { 7 | [CustomEditor(typeof(UITree),true)] 8 | [CanEditMultipleObjects] 9 | public class UITreeEditor : Editor 10 | { 11 | private SerializedProperty m_closeIcon = null; 12 | private SerializedProperty m_openIcon = null; 13 | private SerializedProperty m_lastLayerIcon = null; 14 | 15 | protected virtual void OnEnable() 16 | { 17 | m_closeIcon = serializedObject.FindProperty("m_closeIcon"); 18 | m_openIcon = serializedObject.FindProperty("m_openIcon"); 19 | m_lastLayerIcon = serializedObject.FindProperty("m_lastLayerIcon"); 20 | } 21 | 22 | public override void OnInspectorGUI( ) 23 | { 24 | EditorGUILayout.Space(); 25 | EditorGUILayout.LabelField("Icon Setting",EditorStyles.boldLabel); 26 | EditorGUILayout.PropertyField(m_closeIcon); 27 | EditorGUILayout.PropertyField(m_openIcon); 28 | EditorGUILayout.PropertyField(m_lastLayerIcon); 29 | serializedObject.ApplyModifiedProperties(); 30 | } 31 | } 32 | } -------------------------------------------------------------------------------- /Assets/SpringGUI/Editor/SpringGUI/UITree/UITreeEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 68e1f92f20bb1d34f85f5888cfc38d66 3 | timeCreated: 1495781112 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7232744a7ab50d24882661c5b8e8cc09 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Scripts/SpringGUI.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ebb54a6b2eb6fd04e96bc3202bd38258 3 | folderAsset: yes 4 | timeCreated: 1495780355 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Scripts/SpringGUI/Buttons.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b5375ead8ba267f4aa4ffb29efee7841 3 | folderAsset: yes 4 | timeCreated: 1496387266 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Scripts/SpringGUI/Buttons/DoubleClickButton.cs: -------------------------------------------------------------------------------- 1 |  2 | /*========================================= 3 | * Author: springDong 4 | * Description: SpringGUI.DoubleClickButton,you can use it like use normal button by addListener. 5 | ==========================================*/ 6 | 7 | using System; 8 | using UnityEngine; 9 | using UnityEngine.Events; 10 | using UnityEngine.EventSystems; 11 | using UnityEngine.UI; 12 | 13 | namespace SpringGUI 14 | { 15 | [AddComponentMenu("UI/DoubleClickButton")] 16 | public class DoubleClickButton : Button 17 | { 18 | [Serializable] 19 | public class DoubleClickedEvent : UnityEvent {} 20 | 21 | [SerializeField] 22 | private DoubleClickedEvent m_onDoubleClick = new DoubleClickedEvent(); 23 | public DoubleClickedEvent onDoubleClick 24 | { 25 | get { return m_onDoubleClick; } 26 | set { m_onDoubleClick = value; } 27 | } 28 | 29 | private DateTime m_firstTime; 30 | private DateTime m_secondTime; 31 | 32 | private void Press() 33 | { 34 | if (null != onDoubleClick ) 35 | onDoubleClick.Invoke(); 36 | resetTime(); 37 | } 38 | 39 | public override void OnPointerDown(PointerEventData eventData) 40 | { 41 | base.OnPointerDown(eventData); 42 | if (m_firstTime.Equals(default(DateTime))) 43 | m_firstTime = DateTime.Now; 44 | else 45 | m_secondTime = DateTime.Now; 46 | } 47 | 48 | public override void OnPointerUp(PointerEventData eventData) 49 | { 50 | base.OnPointerUp(eventData); 51 | if (!m_firstTime.Equals(default(DateTime)) && !m_secondTime.Equals(default(DateTime))) 52 | { 53 | var intervalTime = m_secondTime - m_firstTime; 54 | float milliSeconds = intervalTime.Seconds * 1000 + intervalTime.Milliseconds; 55 | if (milliSeconds < 400) 56 | Press(); 57 | else 58 | resetTime(); 59 | } 60 | } 61 | 62 | public override void OnPointerExit(PointerEventData eventData) 63 | { 64 | base.OnPointerExit(eventData); 65 | resetTime(); 66 | } 67 | 68 | private void resetTime() 69 | { 70 | m_firstTime = default(DateTime); 71 | m_secondTime = default(DateTime); 72 | } 73 | } 74 | } -------------------------------------------------------------------------------- /Assets/SpringGUI/Scripts/SpringGUI/Buttons/DoubleClickButton.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 045b8544cabbf954c96d3653e343a8ea 3 | timeCreated: 1496387266 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Scripts/SpringGUI/Buttons/LongClickButton.cs: -------------------------------------------------------------------------------- 1 |  2 | /*========================================= 3 | * Author: springDong 4 | * Description: SpringGUI.LongClickButton,you can use it like use normal button by addListener. 5 | ==========================================*/ 6 | 7 | using System; 8 | using UnityEngine; 9 | using UnityEngine.Events; 10 | using UnityEngine.EventSystems; 11 | using UnityEngine.UI; 12 | 13 | namespace SpringGUI 14 | { 15 | [AddComponentMenu("UI/LongClickButton")] 16 | public class LongClickButton : Button 17 | { 18 | [Serializable] 19 | public class LongClickEvent : UnityEvent {} 20 | 21 | [SerializeField] 22 | private LongClickEvent m_onLongClick = null; 23 | public LongClickEvent onLongClick 24 | { 25 | get { return m_onLongClick; } 26 | set { m_onLongClick = value; } 27 | } 28 | 29 | private DateTime m_firstTime = default(DateTime); 30 | private DateTime m_secondTime = default(DateTime); 31 | 32 | private void Press() 33 | { 34 | if( null != onLongClick) 35 | onLongClick.Invoke(); 36 | resetTime(); 37 | } 38 | 39 | public override void OnPointerDown(PointerEventData eventData) 40 | { 41 | base.OnPointerDown(eventData); 42 | if(m_firstTime.Equals(default(DateTime))) 43 | m_firstTime = DateTime.Now; 44 | } 45 | 46 | public override void OnPointerUp(PointerEventData eventData) 47 | { 48 | base.OnPointerUp(eventData); 49 | if(!m_firstTime.Equals(default(DateTime))) 50 | m_secondTime = DateTime.Now; 51 | if (!m_firstTime.Equals(default(DateTime)) && !m_secondTime.Equals(default(DateTime))) 52 | { 53 | var intervalTime = m_secondTime - m_firstTime; 54 | int milliSeconds = intervalTime.Seconds * 1000 + intervalTime.Milliseconds; 55 | if (milliSeconds > 600) Press(); 56 | else resetTime(); 57 | } 58 | } 59 | 60 | public override void OnPointerExit(PointerEventData eventData) 61 | { 62 | base.OnPointerExit(eventData); 63 | resetTime(); 64 | } 65 | 66 | private void resetTime() 67 | { 68 | m_firstTime = default(DateTime); 69 | m_secondTime = default(DateTime); 70 | } 71 | } 72 | } -------------------------------------------------------------------------------- /Assets/SpringGUI/Scripts/SpringGUI/Buttons/LongClickButton.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 41def6baf18c28841bedee4b9ad06f30 3 | timeCreated: 1496387266 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Scripts/SpringGUI/Calendar.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ef8e03b1c951db94083eefdb123150a5 3 | folderAsset: yes 4 | timeCreated: 1496387266 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Scripts/SpringGUI/Calendar/Calendar.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 95ea371d254c7694ba4f7907cbaa2077 3 | timeCreated: 1496396913 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SpringGUI/Scripts/SpringGUI/Calendar/DatePicker.cs: -------------------------------------------------------------------------------- 1 |  2 | /*========================================= 3 | * Author: springDong 4 | * Description: SpringGUI.DatePicker 5 | * DatePicker has lisened onDayClick/onMonthClick/onYearClick three interfaces . 6 | * You can set date by DateTime property. 7 | ==========================================*/ 8 | 9 | using System; 10 | using UnityEngine.EventSystems; 11 | using UnityEngine.UI; 12 | 13 | namespace SpringGUI 14 | { 15 | public class DatePicker : UIBehaviour 16 | { 17 | private Text _dateText = null; 18 | private Calendar _calendar = null; 19 | private DateTime _dateTime = DateTime.Today; 20 | 21 | // get data from this property 22 | public DateTime DateTime 23 | { 24 | get { return _dateTime; } 25 | set 26 | { 27 | _dateTime = value; 28 | refreshDateText(); 29 | } 30 | } 31 | 32 | protected override void Awake() 33 | { 34 | _dateText = this.transform.FindChild("DateText").GetComponent(); 35 | _calendar = this.transform.FindChild("Calendar").GetComponent(); 36 | _calendar.onDayClick.AddListener(dateTime => { DateTime = dateTime; }); 37 | transform.FindChild("PickButton").GetComponent