monitor.getTextScale
Returns the value of a monitor peripheral's text scale as set by it's setTextScale command, defaulting to 1 if the function was never invoked.
|
|||
Gets a monitor's text scale, changes it, then displays the new value. | |||
Code | <nowiki>
local mon = peripheral.find("monitor")
print(mon.getTextScale())
mon.setTextScale(5)
print(mon.getTextScale())
</nowiki>
|
Functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Lua |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CC:Tweaked |
|
monitor.getTextScale Function | |
---|---|
Syntax monitor.getTextScale() | |
Returns | number |
API | Monitor |
Source | CC:Tweaked |
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.