Battle Talent  V11
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
CrossLink.UIMgr Class Reference

Inherits CrossLink.CoreMgr.

Inherited by CrossLink.HUDMgr.

Public Member Functions

override void OnStateClear ()
 
Canvas GetCanvas ()
 
void SetCanvas (Canvas c)
 
PanelBase CreateUIButRemoveIfExist (string name)
 
PanelBase CreateUI (string name, Transform parent=null)
 
PanelBase GetPanel (string name)
 
PanelBase GetOrCreatePanel (string name)
 
void CloseOrCreatePanel (string name)
 
bool RemoveUI (PanelBase panel)
 
bool RemoveUI (string name)
 

Static Public Member Functions

static bool IsOffScreen (Vector3 screenPos, float screenWidth, float screenHeight)
 
static bool ClampScreenPos (Vector3 screenPos, float screenWidth, float screenHeight, float border, out Vector3 pos, out float rot)
 

Static Public Attributes

static UIMgr Instance = new UIMgr()
 
static string UIPath = "UI/"
 

Protected Attributes

Dictionary< string, List< PanelBase > > uiList = new Dictionary<string, List<PanelBase>>()