Jump to content




need that place yellow too


  • You cannot reply to this topic
3 replies to this topic

#1 makerimages

  • Members
  • 236 posts

Posted 03 November 2012 - 02:52 AM

hi, this code:

local width=4
local size={term.getSize()}
for w=1,width do
  term.setCursorPos(1,size[2]-w+1)
  for x=1,size[1]-1 do
    write(' ')
  end
end

gives me a yellow taskbar looking like this[attachment=645:2012-11-02_15.49.32.png]

i want that one column in the right to be yellow too, how can i do that?

#2 Jasonfran

  • Members
  • 148 posts
  • LocationEngland

Posted 03 November 2012 - 03:15 AM

For a start size[2] doesn't exist

#3 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 03 November 2012 - 03:28 AM

Yes, size[2] certainly does exist. If you don't understand the code, don't try to help.

Try adjusting the loop. See what changing the size[1] - 1 to just size[1] does.

#4 makerimages

  • Members
  • 236 posts

Posted 09 November 2012 - 04:00 AM

that works, thanks





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users