User Tools

Site Tools


2_core

This is an old revision of the document!


Table of Contents

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.

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;

UIScene

Manage all ui scenes. API:

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 ()

UIHub

Offer common public functions.

2_core.1498395496.txt.gz · Last modified: 2024/06/18 13:44 (external edit)