Author Topic: Add function to the gc class  (Read 26125 times)

0 Members and 4 Guests are viewing this topic.

Offline Frog

  • LV2 Member (Next: 40)
  • **
  • Posts: 35
  • Rating: +0/-0
    • View Profile
Re: Add function to the gc class
« Reply #45 on: September 10, 2011, 02:40:19 pm »
Wow, this works great! Thanks a lot, adriweb!

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Add function to the gc class
« Reply #46 on: May 10, 2013, 04:53:38 pm »
necroposting for the good cause

http://inspired-lua.org/index.php/2013/05/how-to-add-your-own-functions-to-gc/ :)

This code, by Jim Bauwens, is simply very neat and clean :)
« Last Edit: May 10, 2013, 04:54:17 pm by adriweb »
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline ElementCoder

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 611
  • Rating: +42/-2
    • View Profile
Re: Add function to the gc class
« Reply #47 on: May 13, 2013, 02:33:01 am »
Just read throught this, very usefule :) Though shouldn't
Code: [Select]
function on.paint(gc)
        drawRoundRect(gc, 100, 50, 20, 15, 5)
        ...
end
in the second code block be
Code: [Select]
gc:drawRoundRect(100, 50, 20, 15, 5) then? Because it doesn't seem any different to me ??? (I may as well be wrong, I'm not that good yet :P )

Some people need a high five in the face... with a chair.
~EC

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: Add function to the gc class
« Reply #48 on: May 13, 2013, 03:18:16 am »
Arg, well, yeah, obviously :D
Thanks ^^
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation