Posted 16 November 2013 - 02:08 PM
I have this
It is supposed to print unlockButton.text at the screen height. it does so one row above the screen height and makes the bottom row be dark gray..
like so
[attachment=1395:2013-11-16_21.14.45.png]
os.loadAPI("OSOne/Apis/DesignUtil");
term.setTextColor(colors.lightGray)
local background=DesignUtil.getDesign();
term.clear();
local width,height=term.getSize();
local unlockButton={
text="Unlock";
x=math.ceil(width/2);
y=math.ceil(height);
W=6;
H=1;
}
while true do
paintutils.drawImage(background,1,1);
term.setCursorPos(unlockButton.x,unlockButton.y);
term.setBackgroundColor(colors.gray);
print(unlockButton.text);
term.setCursorPos(1,1)
term.setBackgroundColor(DesignUtil.getColor())
print(width.." "..height)
sleep(1)
end
It is supposed to print unlockButton.text at the screen height. it does so one row above the screen height and makes the bottom row be dark gray..
like so
[attachment=1395:2013-11-16_21.14.45.png]
Edited on 16 November 2013 - 01:09 PM