πŸšͺ WGUI


This is a static class. Access brush methods with . instead of :

It's not possible to spawn new instances.


🦠 Functions

Create

Creates a WGUI component by the specified class.

β€” Returns BaseWidget.

local ret = WGUI.Create(WidgetClass, ParentClass, ...)
Type
Parameter
Description

WidgetClass

ParentPanel

...

HandleInputRules

Re-calculates the input rules and applies them.

WGUI.HandleInputRules()

RegisterFont

Registers a new font by the specified name and path.

WGUI.RegisterFont(FontName, FontPath)
Type
Parameter
Description

FontName

FontPath

PreLoadURL

Pre-loads a URL image.

local ret = WGUI.PreLoadURL(URL, Callback)
Type
Parameter
Description

Callback

RedirectPanelFunctions

WGUI.RedirectPanelFunctions(SourceWidget, TargetWidget)
Type
Parameter
Description

SourceWidget

TargetWidget

GetLayout

Returns the default WGUI canvas panel widget.

β€” Returns CanvasPanel.

local ret = WGUI.GetLayout()

GetPlatformMousePosition

Gets the platform's mouse cursor position. This the 'absolute' desktop location of the mouse.

β€” Returns Vector2D.

local ret = WGUI.GetPlatformMousePosition()

GetWidgetByID

Gets the widget by the specified Unique ID.

β€” Returns BaseWidget.

local ret = WGUI.GetWidgetByID(UniqueID)
Type
Parameter
Description

UniqueID

GetFontPath

Returns the path of the specified font.

β€” Returns string.

local ret = WGUI.GetFontPath(FontName)
Type
Parameter
Description

FontName

IsFontRegistered

Registers a new font by the specified name and path.

β€” Returns boolean.

local ret = WGUI.IsFontRegistered(FontName)
Type
Parameter
Description

FontName

GetInputRules

Returns the input rules.

β€” Returns boolean (Whether the mouse should be enabled).

local ret = WGUI.GetInputRules()

Last updated