User Tools

Site Tools


2_core

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
2_core [2017/06/22 03:42] loywong2_core [2024/06/18 13:42] (current) – external edit 127.0.0.1
Line 5: Line 5:
 ==== UIBinder ==== ==== UIBinder ====
 The ViewModel. 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;
 +protected Action<int, UIEventType>          onUpdateEvent;
 +protected Action<int, Vector2>              onUpdatePos;
 +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;
 +
 +...
 +...
 +</code>
 ==== UIScene ==== ==== UIScene ====
 Manage all ui scenes. 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 ==== ==== UIHub ====
 Offer common public functions. 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.1498102970.txt.gz · Last modified: 2024/06/18 13:44 (external edit)