TextUI

Add

In order to add TextUI you can use this export:

local serial = exports['ZSX_UIV2']:TextUI(key, text, duration, onComplete, onFailure)
Arg
Information
Optional

key

String Key that corresponds to clickable control

text

String Text to be displayed

duration

Number Duration of the TextUI (requires onComplete and onFailure)

onComplete

Function Called at the end of TextUI

onFailure

Function Called on failed attempt to click on TextUI

Remove

To remove TextUI do the following

exports['ZSX_UIV2']:TextUI_Remove(serial, animComplete)
Arg
Information

serial

Serial

animComplete

Boolean Show complete anim

Persistent Add

If your resource that handles TextUI makes it in loop, better choice would be to use persistent one:

exports['ZSX_UIV2']:TextUI_Persistent(key, text, duration, onComplete, onFailure)

Object above stays the same!

Removing persistent TextUI

It quite differs from the beneath export, here you don't need to add argument serial:

exports['ZSX_UIV2']:TextUI_RemovePersistent(animComplete)
Arg
Information

animComplete

Boolean Show complete anim

Last updated