C# 클래스 FairyGUI.GRoot

상속: GComponent
파일 보기 프로젝트 열기: fairygui/FairyGUI-unity 1 사용 예제들

공개 메소드들

메소드 설명
ApplyContentScaleFactor ( ) : void

This is called after screen size changed.

BringToFront ( Window win ) : void

将一个窗口提到所有窗口的最前面

CloseAllExceptModals ( ) : void

Close all windows except modal windows.

CloseAllWindows ( ) : void

Close all windows.

CloseModalWait ( ) : void

Hide modal layer and waiting sign.

DisableSound ( ) : void

DisplayObjectToGObject ( DisplayObject obj ) : GObject

EnableSound ( ) : void

GRoot ( ) : System.Collections.Generic
GetPoupPosition ( GObject popup, GObject target, object downward ) : Vector2

GetTopWindow ( ) : Window

Get window on top.

HidePopup ( ) : void

Close all popups.

HidePopup ( GObject popup ) : void

Close a popup.

HideTooltips ( ) : void

HideWindow ( Window win ) : void

Call window.Hide 关闭一个窗口。将调用Window.Hide方法。

HideWindowImmediately ( Window win ) : void

Remove a window from stage immediatelly. window.Hide/window.OnHide will never be called. 立刻关闭一个窗口。不会调用Window.Hide方法,Window.OnHide也不会被调用。

HideWindowImmediately ( Window win, bool dispose ) : void

Remove a window from stage immediatelly. window.Hide/window.OnHide will never be called. 立刻关闭一个窗口。不会调用Window.Hide方法,Window.OnHide也不会被调用。

PlayOneShotSound ( AudioClip clip ) : void

PlayOneShotSound ( AudioClip clip, float volumeScale ) : void

SetContentScaleFactor ( int designResolutionX, int designResolutionY ) : void

Set content scale factor.

SetContentScaleFactor ( int designResolutionX, int designResolutionY, UIContentScaler screenMatchMode ) : void

Set content scale factor.

ShowModalWait ( ) : void

Display a modal layer and a waiting sign in the front. 显示一个半透明层和一个等待标志在最前面。半透明层的颜色可以通过UIConfig.modalLayerColor设定。 等待标志的资源可以通过UIConfig.globalModalWaiting。等待标志组件会设置为屏幕大小,请内部做好关联。

ShowPopup ( GObject popup ) : void

Show a popup object. 显示一个popup。 popup的特点是点击popup对象外的区域,popup对象将自动消失。

ShowPopup ( GObject popup, GObject target ) : void

Show a popup object along with the specific target object. 显示一个popup。将popup显示在指定对象的上边或者下边。 popup的特点是点击popup对象外的区域,popup对象将自动消失。

ShowPopup ( GObject popup, GObject target, object downward ) : void

Show a popup object along with the specific target object. 显示一个popup。将popup显示在指定对象的上边或者下边。 popup的特点是点击popup对象外的区域,popup对象将自动消失。

ShowTooltips ( string msg ) : void

ShowTooltipsWin ( GObject tooltipWin ) : void

ShowWindow ( Window win ) : void

Display a window.

TogglePopup ( GObject popup ) : void

If a popup is showing, then close it; otherwise, open it.

TogglePopup ( GObject popup, GObject target ) : void

TogglePopup ( GObject popup, GObject target, object downward ) : void

비공개 메소드들

메소드 설명
AdjustModalLayer ( ) : void
CheckPopups ( ) : void
ClosePopup ( GObject target ) : void
__showTooltipsWin ( object param ) : void
__stageTouchBegin ( EventContext context ) : void

메소드 상세

ApplyContentScaleFactor() 공개 메소드

This is called after screen size changed.
public ApplyContentScaleFactor ( ) : void
리턴 void

BringToFront() 공개 메소드

将一个窗口提到所有窗口的最前面
public BringToFront ( Window win ) : void
win Window
리턴 void

CloseAllExceptModals() 공개 메소드

Close all windows except modal windows.
public CloseAllExceptModals ( ) : void
리턴 void

CloseAllWindows() 공개 메소드

Close all windows.
public CloseAllWindows ( ) : void
리턴 void

CloseModalWait() 공개 메소드

Hide modal layer and waiting sign.
public CloseModalWait ( ) : void
리턴 void

DisableSound() 공개 메소드

public DisableSound ( ) : void
리턴 void

DisplayObjectToGObject() 공개 메소드

public DisplayObjectToGObject ( DisplayObject obj ) : GObject
obj DisplayObject
리턴 GObject

EnableSound() 공개 메소드

public EnableSound ( ) : void
리턴 void

GRoot() 공개 메소드

public GRoot ( ) : System.Collections.Generic
리턴 System.Collections.Generic

GetPoupPosition() 공개 메소드

public GetPoupPosition ( GObject popup, GObject target, object downward ) : Vector2
popup GObject
target GObject
downward object
리턴 UnityEngine.Vector2

GetTopWindow() 공개 메소드

Get window on top.
public GetTopWindow ( ) : Window
리턴 Window

HidePopup() 공개 메소드

Close all popups.
public HidePopup ( ) : void
리턴 void

HidePopup() 공개 메소드

Close a popup.
public HidePopup ( GObject popup ) : void
popup GObject
리턴 void

HideTooltips() 공개 메소드

public HideTooltips ( ) : void
리턴 void

HideWindow() 공개 메소드

Call window.Hide 关闭一个窗口。将调用Window.Hide方法。
public HideWindow ( Window win ) : void
win Window
리턴 void

HideWindowImmediately() 공개 메소드

Remove a window from stage immediatelly. window.Hide/window.OnHide will never be called. 立刻关闭一个窗口。不会调用Window.Hide方法,Window.OnHide也不会被调用。
public HideWindowImmediately ( Window win ) : void
win Window
리턴 void

HideWindowImmediately() 공개 메소드

Remove a window from stage immediatelly. window.Hide/window.OnHide will never be called. 立刻关闭一个窗口。不会调用Window.Hide方法,Window.OnHide也不会被调用。
public HideWindowImmediately ( Window win, bool dispose ) : void
win Window
dispose bool True to dispose the window.
리턴 void

PlayOneShotSound() 공개 메소드

public PlayOneShotSound ( AudioClip clip ) : void
clip UnityEngine.AudioClip
리턴 void

PlayOneShotSound() 공개 메소드

public PlayOneShotSound ( AudioClip clip, float volumeScale ) : void
clip UnityEngine.AudioClip
volumeScale float
리턴 void

SetContentScaleFactor() 공개 메소드

Set content scale factor.
public SetContentScaleFactor ( int designResolutionX, int designResolutionY ) : void
designResolutionX int Design resolution of x axis.
designResolutionY int Design resolution of y axis.
리턴 void

SetContentScaleFactor() 공개 메소드

Set content scale factor.
public SetContentScaleFactor ( int designResolutionX, int designResolutionY, UIContentScaler screenMatchMode ) : void
designResolutionX int Design resolution of x axis.
designResolutionY int Design resolution of y axis.
screenMatchMode UIContentScaler Math mode.
리턴 void

ShowModalWait() 공개 메소드

Display a modal layer and a waiting sign in the front. 显示一个半透明层和一个等待标志在最前面。半透明层的颜色可以通过UIConfig.modalLayerColor设定。 等待标志的资源可以通过UIConfig.globalModalWaiting。等待标志组件会设置为屏幕大小,请内部做好关联。
public ShowModalWait ( ) : void
리턴 void

ShowPopup() 공개 메소드

Show a popup object. 显示一个popup。 popup的特点是点击popup对象外的区域,popup对象将自动消失。
public ShowPopup ( GObject popup ) : void
popup GObject
리턴 void

ShowPopup() 공개 메소드

Show a popup object along with the specific target object. 显示一个popup。将popup显示在指定对象的上边或者下边。 popup的特点是点击popup对象外的区域,popup对象将自动消失。
public ShowPopup ( GObject popup, GObject target ) : void
popup GObject
target GObject
리턴 void

ShowPopup() 공개 메소드

Show a popup object along with the specific target object. 显示一个popup。将popup显示在指定对象的上边或者下边。 popup的特点是点击popup对象外的区域,popup对象将自动消失。
public ShowPopup ( GObject popup, GObject target, object downward ) : void
popup GObject
target GObject
downward object True to display downwards, false to display upwards, null to display automatically.
리턴 void

ShowTooltips() 공개 메소드

public ShowTooltips ( string msg ) : void
msg string
리턴 void

ShowTooltipsWin() 공개 메소드

public ShowTooltipsWin ( GObject tooltipWin ) : void
tooltipWin GObject
리턴 void

ShowWindow() 공개 메소드

Display a window.
public ShowWindow ( Window win ) : void
win Window
리턴 void

TogglePopup() 공개 메소드

If a popup is showing, then close it; otherwise, open it.
public TogglePopup ( GObject popup ) : void
popup GObject
리턴 void

TogglePopup() 공개 메소드

public TogglePopup ( GObject popup, GObject target ) : void
popup GObject
target GObject
리턴 void

TogglePopup() 공개 메소드

public TogglePopup ( GObject popup, GObject target, object downward ) : void
popup GObject
target GObject
downward object
리턴 void