Content deleted Content added
No edit summary |
m Set TextLabel link to their new documentation page equivalent |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Object |
|||
|title1 = {{PAGENAME}} |
|||
|image1 = DisplayScreen.jpg |
|||
|type = Electrical |
|||
Logic |
|||
*Programming |
|||
|recipe = {{#invoke:GetPartInfo|getField|Recipe}} |
|||
|raw_recipe = {{#invoke:GetPartInfo|getField|Raw recipe}} |
|||
|malleability = {{#invoke:GetPartInfo|getField|Malleability}} |
|||
}} |
|||
The screen is a part used to display information from Microcontrollers and Cameras. |
The screen is a part used to display information from Microcontrollers and Cameras. |
||
Line 9: | Line 20: | ||
=== Examples === |
=== Examples === |
||
The following is an example that will create a [https:// |
The following is an example that will create a [https://create.roblox.com/docs/reference/engine/classes/TextLabel TextLabel] displaying "Hello, world!", waiting 5 seconds, then saying "Goodbye, world!", clearing the screen after 2.5 seconds<syntaxhighlight lang="lua" line="1"> |
||
local Screen = GetPartFromPort(1, 'Screen') -- assigning the screen on port 1 to a variable |
local Screen = GetPartFromPort(1, 'Screen') -- assigning the screen on port 1 to a variable |
||
Screen:ClearElements() -- clear all elements already on the screen so there arent any old elements on it |
Screen:ClearElements() -- clear all elements already on the screen so there arent any old elements on it |
||
Line 32: | Line 43: | ||
Screen:ClearElements() -- remove everything from the screen |
Screen:ClearElements() -- remove everything from the screen |
||
</syntaxhighlight> |
</syntaxhighlight> |
||
==Description== |
|||
{{#invoke:GetPartInfo|getField|Description}} |
|||
==Gallery== |
|||
[[File:DisplayScreen2.jpg|300px|thumb|left|A Screen emits light at Night, Similar to [[Light]] and [[Spotlight]]]] |
|||
[[Category:Parts]] |