C# Class TinyFrameWork.UIBaseWindow

Base window
Inheritance: UnityEngine.MonoBehaviour
Show file Open project: tinyantstudio/UIFrameWork Class Usage Examples

Public Properties

Property Type Description
windowData WindowCoreData

Protected Properties

Property Type Description
isShown bool
mTrs UnityEngine.Transform
originPanel UIPanel
preWindowID WindowID

Public Methods

Method Description
DestroyWindow ( ) : void
ExecuteReturnLogic ( ) : bool
HideWindow ( System.Action action = null ) : void
HideWindowDirectly ( ) : void
InitWindowOnAwake ( ) : void

Called on Awake() used for window data Init

OnAddColliderBg ( GameObject obj ) : void
ResetWindow ( ) : void

Reset the window

ShowWindow ( BaseWindowContextData contextData = null ) : void

Protected Methods

Method Description
Awake ( ) : void
BeforeDestroyWindow ( ) : void
InitWindowCoreData ( ) : void

Init the window core data

RegisterReturnLogic ( BoolDelegate newLogic ) : void

Register call back method before the window returned(closed) Case: when you exit a window to pop up a confirm MessageBox

SetWindowId ( ) : void

Method Details

Awake() protected method

protected Awake ( ) : void
return void

BeforeDestroyWindow() protected method

protected BeforeDestroyWindow ( ) : void
return void

DestroyWindow() public method

public DestroyWindow ( ) : void
return void

ExecuteReturnLogic() public method

public ExecuteReturnLogic ( ) : bool
return bool

HideWindow() public method

public HideWindow ( System.Action action = null ) : void
action System.Action
return void

HideWindowDirectly() public method

public HideWindowDirectly ( ) : void
return void

InitWindowCoreData() protected method

Init the window core data
protected InitWindowCoreData ( ) : void
return void

InitWindowOnAwake() public method

Called on Awake() used for window data Init
public InitWindowOnAwake ( ) : void
return void

OnAddColliderBg() public method

public OnAddColliderBg ( GameObject obj ) : void
obj UnityEngine.GameObject
return void

RegisterReturnLogic() protected method

Register call back method before the window returned(closed) Case: when you exit a window to pop up a confirm MessageBox
protected RegisterReturnLogic ( BoolDelegate newLogic ) : void
newLogic BoolDelegate
return void

ResetWindow() public method

Reset the window
public ResetWindow ( ) : void
return void

SetWindowId() protected abstract method

protected abstract SetWindowId ( ) : void
return void

ShowWindow() public method

public ShowWindow ( BaseWindowContextData contextData = null ) : void
contextData BaseWindowContextData
return void

Property Details

isShown protected property

protected bool isShown
return bool

mTrs protected property

protected Transform,UnityEngine mTrs
return UnityEngine.Transform

originPanel protected property

protected UIPanel originPanel
return UIPanel

preWindowID protected property

protected WindowID preWindowID
return WindowID

windowData public property

public WindowCoreData,TinyFrameWork windowData
return WindowCoreData