Widget python

From WiCWiki

Jump to: navigation, search

Contents

Button

A button in the GUI.


Members

Position

Type
Vector2
Description
The screen position of the widget.


Size

Type
Vector2
Description
The dimensions of the widget.


Position

Type
Vector2
Description
The screen position of the widget.


Status

Type
int
Description
The status of the widget.


Id

Type
int
Description
The id of the widget.



Methods

SetPrefab

Syntax
import wic
wic.player.gui.Widget.SetPrefab( aPrefabName )
Description
Changes the prefab of the Widget.
Exceptions
TypeError
aPrefabName is not a string
See also
-



SetPosition

Syntax
import wic
wic.player.gui.Widget.SetPosition( aPosition )
Description
Changes the position of the Widget.
Exceptions
TypeError
aPosition is not a Vector2
See also
-



SetSize

Syntax
import wic
wic.player.gui.Widget.SetSize( aSize )
Description
Changes the size of the Widget.
Exceptions
TypeError
aSize is not a Vector2
See also
-



SetStatus

Syntax
import wic
wic.player.gui.Widget.SetStatus( aStatus )
Description
Changes the status of the Widget.
Exceptions
TypeError
aStatus is not an int
See also
-


Personal tools
User Created Content