monitor.getTextScale

From ComputerCraft
Jump to navigation Jump to search

monitor.getTextScale
Function
Syntax
monitor.getTextScale()
Returns number
API Monitor
Source CC:Tweaked

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.

ExampleExampleScale value retrieval
Gets a monitor's text scale, changes it, then displays the new value.
Code
local mon = peripheral.find("monitor")
print(mon.getTextScale())
mon.setTextScale(5)
print(mon.getTextScale())