Edited by CreeperGoBoom, 25 November 2013 - 04:59 AM.
[solved]changing Text Color Without Clearing? - Terminal Glasses Bridge
Started by CreeperGoBoom, Nov 25 2013 04:52 AM
2 replies to this topic
#1
Posted 25 November 2013 - 04:52 AM
title says it all, how do i do this? i know i can change the text using settext but how would i change both color and text without having to clear?
#2
Posted 25 November 2013 - 04:55 AM
there is a setter on the text object to change the colour as well. its setColor.
local bridge = peripheral.wrap('left')
local text = bridge.addText(10, 10, "Hello world", 0xFF0000)
sleep(2)
text.setText("Foo bar")
text.setColor(0x00FF00)
Edited by theoriginalbit, 25 November 2013 - 04:56 AM.
#3
Posted 25 November 2013 - 04:59 AM
thanks
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











