Difference between revisions of "GUIContainer"
From Virtual World Web Wiki
(Documentation for the GUIContainer class) |
(Documentation for the GUIContainer class) |
||
Line 1: | Line 1: | ||
− | |||
− | |||
* This is a JavaScript visible object | * This is a JavaScript visible object | ||
===Remarks <nowiki>[</nowiki>[{{fullurl:GUIContainer Remarks|action=edit}} edit]<nowiki>]</nowiki>=== | ===Remarks <nowiki>[</nowiki>[{{fullurl:GUIContainer Remarks|action=edit}} edit]<nowiki>]</nowiki>=== | ||
Line 7: | Line 5: | ||
===Properties=== | ===Properties=== | ||
:{{CSharp|float Alpha {get; set;} }} | :{{CSharp|float Alpha {get; set;} }} | ||
− | |||
− | |||
:{{CSharp|int AnimateDueTime {get; set;} }} | :{{CSharp|int AnimateDueTime {get; set;} }} | ||
− | |||
− | |||
:{{CSharp|int AnimateInterval {get; set;} }} | :{{CSharp|int AnimateInterval {get; set;} }} | ||
− | |||
− | |||
:{{CSharp|int AnimateTime {get;} }} | :{{CSharp|int AnimateTime {get;} }} | ||
− | |||
− | |||
:{{CSharp|bool BlocksRaycasts {get; set;} }} | :{{CSharp|bool BlocksRaycasts {get; set;} }} | ||
− | |||
− | |||
:{{CSharp|bool ClickThrough {get; set;} }} | :{{CSharp|bool ClickThrough {get; set;} }} | ||
− | |||
− | |||
:{{CSharp|int Height {get; set;} }} | :{{CSharp|int Height {get; set;} }} | ||
− | |||
− | |||
:{{CSharp|bool IgnoreParentGroups {get; set;} }} | :{{CSharp|bool IgnoreParentGroups {get; set;} }} | ||
− | |||
− | |||
:{{CSharp|bool Interactable {get; set;} }} | :{{CSharp|bool Interactable {get; set;} }} | ||
− | |||
− | |||
:{{CSharp|string Name {get; set;} }} | :{{CSharp|string Name {get; set;} }} | ||
− | |||
− | |||
:{{CSharp|float Opacity {get; set;} }} | :{{CSharp|float Opacity {get; set;} }} | ||
− | |||
− | |||
:{{CSharp|bool Outline {get; set;} }} | :{{CSharp|bool Outline {get; set;} }} | ||
− | |||
− | |||
:{{CSharp|Color32 OutlineColor {get; set;} }} | :{{CSharp|Color32 OutlineColor {get; set;} }} | ||
− | |||
− | |||
:{{CSharp|JSVector2 OutlineOffset {get; set;} }} | :{{CSharp|JSVector2 OutlineOffset {get; set;} }} | ||
− | |||
− | |||
:{{CSharp|GUIRectTransform RectTransform {get; set;} }} | :{{CSharp|GUIRectTransform RectTransform {get; set;} }} | ||
− | |||
− | |||
:{{CSharp|bool Shadow {get; set;} }} | :{{CSharp|bool Shadow {get; set;} }} | ||
− | |||
− | |||
:{{CSharp|Color32 ShadowColor {get; set;} }} | :{{CSharp|Color32 ShadowColor {get; set;} }} | ||
− | |||
− | |||
:{{CSharp|JSVector2 ShadowOffset {get; set;} }} | :{{CSharp|JSVector2 ShadowOffset {get; set;} }} | ||
− | |||
− | |||
:{{CSharp|int SubComponents {get;} }} | :{{CSharp|int SubComponents {get;} }} | ||
− | |||
− | |||
:{{CSharp|bool Visible {get; set;} }} | :{{CSharp|bool Visible {get; set;} }} | ||
− | |||
− | |||
:{{CSharp|int Width {get; set;} }} | :{{CSharp|int Width {get; set;} }} | ||
− | |||
− | |||
:{{CSharp|Rectangle WorldRect {get;} }} | :{{CSharp|Rectangle WorldRect {get;} }} | ||
− | |||
− | |||
:{{CSharp|int X {get; set;} }} | :{{CSharp|int X {get; set;} }} | ||
− | |||
− | |||
:{{CSharp|int Y {get; set;} }} | :{{CSharp|int Y {get; set;} }} | ||
− | |||
− | |||
===Events=== | ===Events=== | ||
:{{CSharp|OnAnimate()}} | :{{CSharp|OnAnimate()}} | ||
− | |||
− | |||
:{{CSharp|OnDisappeared()}} | :{{CSharp|OnDisappeared()}} | ||
− | |||
− | |||
:{{CSharp|OnResize()}} | :{{CSharp|OnResize()}} | ||
− | |||
− | |||
===Methods=== | ===Methods=== | ||
:{{CSharp|void AbortDelay()}} | :{{CSharp|void AbortDelay()}} | ||
− | |||
− | |||
:{{CSharp|void Appear(string animationName {{=}} "")}} | :{{CSharp|void Appear(string animationName {{=}} "")}} | ||
− | |||
− | |||
:{{CSharp|void BringToFront()}} | :{{CSharp|void BringToFront()}} | ||
− | |||
− | |||
:{{CSharp|void ClearChildren()}} | :{{CSharp|void ClearChildren()}} | ||
− | |||
− | |||
:{{CSharp|GUIContainer CreateComponent(string type, string componentName {{=}} NULL, string templateName {{=}} NULL)}} | :{{CSharp|GUIContainer CreateComponent(string type, string componentName {{=}} NULL, string templateName {{=}} NULL)}} | ||
− | |||
− | |||
:{{CSharp|GUIContainer CreateComponentFromTemplate(string templateName, string objectName {{=}} NULL)}} | :{{CSharp|GUIContainer CreateComponentFromTemplate(string templateName, string objectName {{=}} NULL)}} | ||
− | |||
− | |||
:{{CSharp|void Delay(float duration, JSFlexibleFunction callback)}} | :{{CSharp|void Delay(float duration, JSFlexibleFunction callback)}} | ||
− | |||
− | |||
:{{CSharp|void Destroy()}} | :{{CSharp|void Destroy()}} | ||
− | |||
− | |||
:{{CSharp|void Disappear(string animationName {{=}} "")}} | :{{CSharp|void Disappear(string animationName {{=}} "")}} | ||
− | |||
− | |||
:{{CSharp|GUIComponent FindChild(string searchName, bool traverse {{=}} false)}} | :{{CSharp|GUIComponent FindChild(string searchName, bool traverse {{=}} false)}} | ||
− | |||
− | |||
:{{CSharp|GUIComponent GetComponent(int index)}} | :{{CSharp|GUIComponent GetComponent(int index)}} | ||
− | |||
− | |||
:{{CSharp|GUIComponent GetComponentByName(string componentName)}} | :{{CSharp|GUIComponent GetComponentByName(string componentName)}} | ||
− | |||
− | |||
:{{CSharp|GUIComponent[] GetComponents()}} | :{{CSharp|GUIComponent[] GetComponents()}} | ||
− | |||
− | |||
:{{CSharp|void Hide(float fadeDelay {{=}} 0.1, JSFlexibleFunction callback {{=}} NULL)}} | :{{CSharp|void Hide(float fadeDelay {{=}} 0.1, JSFlexibleFunction callback {{=}} NULL)}} | ||
− | |||
− | |||
:{{CSharp|bool MakeNumb()}} | :{{CSharp|bool MakeNumb()}} | ||
− | |||
− | |||
:{{CSharp|void MakeSensitive(JSFlexibleFunction callback, bool singleClick {{=}} true)}} | :{{CSharp|void MakeSensitive(JSFlexibleFunction callback, bool singleClick {{=}} true)}} | ||
− | |||
− | |||
:{{CSharp|float PlayAnimation(string animationName)}} | :{{CSharp|float PlayAnimation(string animationName)}} | ||
− | |||
− | |||
:{{CSharp|void SendToBack()}} | :{{CSharp|void SendToBack()}} | ||
− | |||
− | |||
:{{CSharp|void Show(float fadeDelay {{=}} 0.1, JSFlexibleFunction callback {{=}} NULL)}} | :{{CSharp|void Show(float fadeDelay {{=}} 0.1, JSFlexibleFunction callback {{=}} NULL)}} | ||
− | |||
− | |||
:{{CSharp|void StartAnimate()}} | :{{CSharp|void StartAnimate()}} | ||
− | |||
− | |||
:{{CSharp|void StopAnimate()}} | :{{CSharp|void StopAnimate()}} | ||
− | |||
− | |||
__NOTOC____NOEDITSECTION__ | __NOTOC____NOEDITSECTION__ |
Revision as of 14:16, 15 January 2018
- This is a JavaScript visible object
Remarks [edit]
Properties
- float Alpha {get; set;}
- int AnimateDueTime {get; set;}
- int AnimateInterval {get; set;}
- int AnimateTime {get;}
- bool BlocksRaycasts {get; set;}
- bool ClickThrough {get; set;}
- int Height {get; set;}
- bool IgnoreParentGroups {get; set;}
- bool Interactable {get; set;}
- string Name {get; set;}
- float Opacity {get; set;}
- bool Outline {get; set;}
- Color32 OutlineColor {get; set;}
- JSVector2 OutlineOffset {get; set;}
- GUIRectTransform RectTransform {get; set;}
- bool Shadow {get; set;}
- Color32 ShadowColor {get; set;}
- JSVector2 ShadowOffset {get; set;}
- int SubComponents {get;}
- bool Visible {get; set;}
- int Width {get; set;}
- Rectangle WorldRect {get;}
- int X {get; set;}
- int Y {get; set;}
Events
- OnAnimate()
- OnDisappeared()
- OnResize()
Methods
- void AbortDelay()
- void Appear(string animationName = "")
- void BringToFront()
- void ClearChildren()
- GUIContainer CreateComponent(string type, string componentName = NULL, string templateName = NULL)
- GUIContainer CreateComponentFromTemplate(string templateName, string objectName = NULL)
- void Delay(float duration, JSFlexibleFunction callback)
- void Destroy()
- void Disappear(string animationName = "")
- GUIComponent FindChild(string searchName, bool traverse = false)
- GUIComponent GetComponent(int index)
- GUIComponent GetComponentByName(string componentName)
- GUIComponent[] GetComponents()
- void Hide(float fadeDelay = 0.1, JSFlexibleFunction callback = NULL)
- bool MakeNumb()
- void MakeSensitive(JSFlexibleFunction callback, bool singleClick = true)
- float PlayAnimation(string animationName)
- void SendToBack()
- void Show(float fadeDelay = 0.1, JSFlexibleFunction callback = NULL)
- void StartAnimate()
- void StopAnimate()