Screen - iimurpyh/pilot-lua GitHub Wiki

A part which can display GUI content on its surface

Table of contents

Methods


Vector2 Screen:GetDimensions()

Gets the Screen's width and height as a Vector2.


void Screen:ClearElements(string className, dictionary properties)

Clears the elements on the screen. Optionally a className can be passed to select only a specific type of object. (The effect of properties is currently unknown)


ScreenObject Screen:CreateElement(string className, dictionary properties)

Creates a className element and returns it wrapped as a ScreenObject.