PopupWidget
Noir.Classes.PopupWidget: NoirClass
Represents a 3D space popup UI widget to be shown to players via UIService.
Noir.Classes.PopupWidget:Init(ID, visible, text, position, renderDistance, player)Initializes a new popup widget.
Parameters
ID: numbervisible: booleantext: stringposition: SWMatrixrenderDistance: numberplayer: NoirPlayer|nil
Noir.Classes.PopupWidget:AttachToBody(body)Attaches this popup to a body.
Upon doing so, the popup will follow the body's position until detached with the :Detach() method.
You can offset the popup from the body by setting the AttachmentOffset property.
Note that :Update() is called automatically.
Parameters
body: NoirBody
Attaches this popup to an object.
Upon doing so, the popup will follow the object's position until detached with the :Detach() method.
You can offset the popup from the object by setting the AttachmentOffset property.
Note that :Update() is called automatically.
Parameters
object: NoirObject
Detaches this popup from any body or object.
Serializes this popup widget.
Returns
NoirSerializedPopupWidget
Deserializes a popup widget.
Parameters
serializedWidget: NoirSerializedPopupWidget
Returns
NoirPopupWidget|nil
Handles updating this widget.
Parameters
player: NoirPlayer
Handles destroying this widget.
Parameters
player: NoirPlayer
Last updated