Difference between revisions of "GUIDragItem"
From Virtual World Web Wiki
(Documentation for the GUIDragItem class) |
(Documentation for the GUIDragItem class) |
||
Line 1: | Line 1: | ||
− | |||
− | |||
*'''Inherits class: [[GUIComponent]]''' | *'''Inherits class: [[GUIComponent]]''' | ||
* This is a JavaScript visible object | * This is a JavaScript visible object | ||
Line 8: | Line 6: | ||
===Properties=== | ===Properties=== | ||
:{{CSharp|bool AllowDrag {get; set;} }} | :{{CSharp|bool AllowDrag {get; set;} }} | ||
− | |||
− | |||
:{{CSharp|bool AllowUIDrop {get; set;} }} | :{{CSharp|bool AllowUIDrop {get; set;} }} | ||
− | |||
− | |||
:{{CSharp|bool AllowWorldDrop {get; set;} }} | :{{CSharp|bool AllowWorldDrop {get; set;} }} | ||
− | |||
− | |||
:{{CSharp|Color32 DisabledColor {get; set;} }} | :{{CSharp|Color32 DisabledColor {get; set;} }} | ||
− | |||
− | |||
:{{CSharp|GUISprite DraggingTexture {get;} }} | :{{CSharp|GUISprite DraggingTexture {get;} }} | ||
− | |||
− | |||
:{{CSharp|bool Enabled {get; set;} }} | :{{CSharp|bool Enabled {get; set;} }} | ||
+ | |||
:{{CSharp|bool HideWhenNotDragging {get; set;} }} | :{{CSharp|bool HideWhenNotDragging {get; set;} }} | ||
− | |||
− | |||
:{{CSharp|Color32 HoverColor {get; set;} }} | :{{CSharp|Color32 HoverColor {get; set;} }} | ||
− | |||
− | |||
:{{CSharp|Color32 NormalColor {get; set;} }} | :{{CSharp|Color32 NormalColor {get; set;} }} | ||
− | |||
− | |||
:{{CSharp|GUISprite NormalTexture {get;} }} | :{{CSharp|GUISprite NormalTexture {get;} }} | ||
− | |||
− | |||
:{{CSharp|Color32 PressedColor {get; set;} }} | :{{CSharp|Color32 PressedColor {get; set;} }} | ||
− | |||
− | |||
:{{CSharp|bool SnapToMouse {get; set;} }} | :{{CSharp|bool SnapToMouse {get; set;} }} | ||
− | |||
− | |||
:{{CSharp|JSVector3 WorldDrop {get;} }} | :{{CSharp|JSVector3 WorldDrop {get;} }} | ||
− | |||
− | |||
===Events=== | ===Events=== | ||
:{{CSharp|OnClick()}} | :{{CSharp|OnClick()}} | ||
− | |||
− | |||
:{{CSharp|OnDrop()}} | :{{CSharp|OnDrop()}} | ||
− | |||
− | |||
__NOTOC____NOEDITSECTION__ | __NOTOC____NOEDITSECTION__ |
Revision as of 14:16, 15 January 2018
- Inherits class: GUIComponent
- This is a JavaScript visible object
Remarks [edit]
Properties
- bool AllowDrag {get; set;}
- bool AllowUIDrop {get; set;}
- bool AllowWorldDrop {get; set;}
- Color32 DisabledColor {get; set;}
- GUISprite DraggingTexture {get;}
- bool Enabled {get; set;}
- bool HideWhenNotDragging {get; set;}
- Color32 HoverColor {get; set;}
- Color32 NormalColor {get; set;}
- GUISprite NormalTexture {get;}
- Color32 PressedColor {get; set;}
- bool SnapToMouse {get; set;}
- JSVector3 WorldDrop {get;}
Events
- OnClick()
- OnDrop()