Client Script
The client script must exist in the project folder or in Scripts with a file name like Hello.lua to be read.
Client.width
Gets the width of the screen.
Client.height
Gets the vertical size of the screen.
Client.ShowAlert(text, callback)
Displays a notification message.
Client.ShowYesNoAlert(text, callback)
Displays a Yes/No notification message.
Client.ShowBuyItem(id, amount, callback)
Displays a message to purchase a specific item.
Client.Quit()
Close the client.
ScriptEventPublisher Client.GetTopic(topic)
Register a specific topic to exchange messages with the server.
Client.FireEvent(topic, args…)
Sends a message to the server with a specific topic.
Client.RunLater(callback, t)
Executes a callback function after t seconds.
Camera
Object that controls the camera
Point
A class that contains x, y coordinates
Rect
A class that contains a rectangle with x, y, width, and height.
Image
A class that outputs images
Text
A class that prints text
Slider
A class that outputs a control controller.
Button
Class that outputs the button
Panel
A class that outputs a panel.
ScrollPanel
A class that outputs a scrolling panel.
GridPanel
A class that outputs panels arranged in a grid.
Last updated