C# Class TinyFrameWork.UICenterMasterManager

UI Main Manager "the Master" most important Class Control all the "Big Parent" window:UIRank,UIShop,UIGame,UIMainMenu and so on. UIRankManager: control the rank window logic (UIRankDetail sub window) May be UIShopManager:control the UIShopDetailWindow or UIShopSubTwoWindow 枢纽中心,控制整个大界面的显示逻辑UIRank,UIMainMenu等 UIRank排行榜界面可能也会有自己的Manager用来管理Rank系统中自己的子界面,这些子界面不交给"老大"UICenterMasterManager管理 分而治之,不是中央集权
Inheritance: UIManagerBase
Mostrar archivo Open project: tinyantstudio/UIFrameWork Class Usage Examples

Public Properties

Property Type Description
UIRoot Transform
maskAtlas UIAtlas

Public Methods

Method Description
AdjustTargetWindowDepthToTop ( UIBaseWindow targetWindow ) : void
ClearAllWindow ( ) : void
CloseMessageBox ( System.Action onClosed = null ) : void
HideWindow ( WindowID id, Action onComplete = null ) : void
InitWindowManager ( ) : void
PopNavigationWindow ( ) : bool

Return logic When return back navigation check current window's Return Logic If true just execute the return logic If false just immediately enter the RealReturnWindow() logic

ShowMessageBox ( string msg ) : void

MessageBox

ShowMessageBox ( string msg, string centerStr, UIEventListener callBack ) : void
ShowMessageBox ( string msg, string leftStr, UIEventListener leftCallBack, string rightStr, UIEventListener rightCallBack ) : void
ShowWindow ( WindowID id, ShowWindowData showData = null ) : void

Protected Methods

Method Description
Awake ( ) : void
InitWindowControl ( ) : void
ReadyToShowBaseWindow ( WindowID id, ShowWindowData showData = null ) : UIBaseWindow

Private Methods

Method Description
AddColliderBgForWindow ( UIBaseWindow baseWindow ) : void

Add Collider and BgTexture for target window

AdjustBaseWindowDepth ( UIBaseWindow baseWindow ) : void

Calculate right depth with windowType

CheckBackSequenceData ( UIBaseWindow baseWindow ) : void
ExecuteNavigationLogic ( UIBaseWindow baseWindow, ShowWindowData showData ) : void
GetTargetRoot ( UIWindowType type ) : Transform
RefreshBackSequenceData ( UIBaseWindow targetWindow, ShowWindowData showData ) : void

Method Details

AdjustTargetWindowDepthToTop() public static method

public static AdjustTargetWindowDepthToTop ( UIBaseWindow targetWindow ) : void
targetWindow UIBaseWindow
return void

Awake() protected method

protected Awake ( ) : void
return void

ClearAllWindow() public method

public ClearAllWindow ( ) : void
return void

CloseMessageBox() public method

public CloseMessageBox ( System.Action onClosed = null ) : void
onClosed System.Action
return void

HideWindow() public method

public HideWindow ( WindowID id, Action onComplete = null ) : void
id WindowID
onComplete Action
return void

InitWindowControl() protected method

protected InitWindowControl ( ) : void
return void

InitWindowManager() public method

public InitWindowManager ( ) : void
return void

PopNavigationWindow() public method

Return logic When return back navigation check current window's Return Logic If true just execute the return logic If false just immediately enter the RealReturnWindow() logic
public PopNavigationWindow ( ) : bool
return bool

ReadyToShowBaseWindow() protected method

protected ReadyToShowBaseWindow ( WindowID id, ShowWindowData showData = null ) : UIBaseWindow
id WindowID
showData ShowWindowData
return UIBaseWindow

ShowMessageBox() public method

MessageBox
public ShowMessageBox ( string msg ) : void
msg string
return void

ShowMessageBox() public method

public ShowMessageBox ( string msg, string centerStr, UIEventListener callBack ) : void
msg string
centerStr string
callBack UIEventListener
return void

ShowMessageBox() public method

public ShowMessageBox ( string msg, string leftStr, UIEventListener leftCallBack, string rightStr, UIEventListener rightCallBack ) : void
msg string
leftStr string
leftCallBack UIEventListener
rightStr string
rightCallBack UIEventListener
return void

ShowWindow() public method

public ShowWindow ( WindowID id, ShowWindowData showData = null ) : void
id WindowID
showData ShowWindowData
return void

Property Details

UIRoot public_oe property

public Transform UIRoot
return Transform

maskAtlas public_oe property

public UIAtlas maskAtlas
return UIAtlas