User Tools

Site Tools


2_core

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
2_core [2017/06/22 02:55] – external edit 127.0.0.12_core [2024/06/18 13:42] (current) – external edit 127.0.0.1
Line 1: Line 1:
-目录+====== Core ====== 
 +The core scripts of the framework. 
 +==== UILinker ==== 
 +The View of MVVM(Model, ViewModel, View), holds all holder(panel) and components to response for model updates. 
 +==== UIBinder ==== 
 +The ViewModel. 
 +<code c#> 
 +protected Action<int>                       onPlayEfx; //particular for Efx type of Particle
  
----- +protected Action<int, UIStateType>          onUpdateState; 
-  * 快速上手 +protected Action<int, bool>                 onUpdateState_ShowOrHide; 
-    * [[1_guide:summary|summary]] +protected Action<int, UIEventType>          onUpdateEvent; 
-    * [[1_guide:make_panel|make_panel]] +protected Action<int, Vector2>              onUpdatePos; 
-    * [[1_guide:workflow|workflow]] +protected Action<int, Vector2>              onUpdateSize; 
-  * 核心 +protected Action<int, string>               onUpdateTxt; 
-  * 视觉 +protected Action<int, string>               onUpdateName; 
-      *面板(组件的复合) +protected Action<int, List<string>>         onUpdateGroupNames; 
-      *组件+protected Action<int, TextAnchor>           onUpdateTxtAlign; 
 +protected Action<int, string>               onUpdateImg;//net image surpport 
 +protected Func<int, string, GameObject>     onUpdateWebView; 
 +protected Action<int, ValueType, ValueType> onUpdateProg; 
 +protected Action<int, float>                onUpdateSlider; 
 +protected Action<int, int,int>              onUpdateSliderMaxAndMinValue; 
 +protected Action<int, bool>                 onUpdateTogl; 
 +protected Action<int, int>                  onUpdateGroupIdx; 
 +protected Action<int, string>               onUpdateIptInitStr; 
 +protected Action<int, int>                  onUpdateIptLimit; 
 +protected Action<int, Color>                onUpdateColor; 
 +protected Action<int, string>               onUpdateEmoji;
  
-----+protected Action<int, int>                  onUpdateLstFocus;//for lst self 
 +protected Action<int, Vector2>              onUpdateLstPos; 
 +protected Action<GameObject, int>           onSetParent;
  
- +... 
-LowoUI-UN 正等待着你的使用… +... 
- +</code> 
-  ● 快速上手 +==== UIScene ==== 
-在浅层次的应用层面,只需要掌握尽量少的知识点就可以使用框架 +Manage all ui scenes. 
- +\\ API: 
- +<code c#> 
-  ● 核心 +public bool HasEntered (int sceneid) 
-框架核心代码 +public void EnterScene(int sceneid) 
- +public void ExitScene () 
- +public void OnEnd () 
-  ● 视觉 +public bool IsSceneDefaultUI (int panelTypID) 
-○ 面板(组件的复合) +public int GetSceneDefaultToppestUI (int sceneID) 
-○ 组件+public bool Logout () 
 +... 
 +... 
 +</code> 
 +==== UIHub ==== 
 +Offer common public functions. 
 +<code c#> 
 +public GameObject Load (int panelTypeID) 
 +public GameObject Load (UIPanelType uiPanelType, string prefabName = null) 
 +public void Close (int instanceID) 
 +public void ToggleGO (GameObject go, bool isActive) 
 +public void Show(int insID) 
 +public void Hide(int insID) 
 +public void ShowAll() 
 +public void HideAll() 
 +public void RestartAll () 
 +public void CommonBack () 
 +public void LoadCheckDialog (string title, string des, IDictionary<UIEnum_CheckDlgBtnType, string> btnsTextDict = null, Action<UIEnum_CheckDlgBtnType> onBtnResponce = null) 
 +... 
 +... 
 +</code>
2_core.1498100124.txt.gz · Last modified: 2024/06/18 13:44 (external edit)