Author Topic: Hyena: a simple (Lua) GUI library for the TI-Nspire  (Read 12236 times)

0 Members and 1 Guest are viewing this topic.

Offline Kjelddy

  • LV3 Member (Next: 100)
  • ***
  • Posts: 80
  • Rating: +2/-1
    • View Profile
Re: Hyena: a simple (Lua) GUI library for the TI-Nspire
« Reply #15 on: August 31, 2011, 03:28:47 pm »
:O the calculators are more and more looking after pc OS's :)
KJ
in need of omnoms ? check this out :P
http://img.removedfromgame.com/imgs/0-omnom.png

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: Hyena: a simple (Lua) GUI library for the TI-Nspire
« Reply #16 on: August 31, 2011, 04:14:00 pm »
hoffa : you should create a screen class. That way you don't have to do like that

Code: [Select]
        win_2 = hyena:createWindow("FEELS GOOD MAN", 80, 40, 100, 100)
        hyena:setWindowContentFunction(win_2, win_2_f)

but like that :
Code: [Select]
screen = class()
function screen:init()
...
end

function screen:paint(gc) --> here gc is hyena for more "confort"
...
end

...

textBox = class(screen)
function textBox:init(txt)
...
end

-- override screen:paint(gc) function
function screen:paint(gc) --> here gc is hyena for more "confort"
...
end

...

        win_2 = textBox("FEELS GOOD MAN")
        hyena:setWindowContentFunction(win_2)
« Last Edit: August 31, 2011, 04:15:47 pm by Levak »
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline renatose

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 209
  • Rating: +4/-0
  • watch out the power balls
    • View Profile
Re: Hyena: a simple (Lua) GUI library for the TI-Nspire
« Reply #17 on: December 01, 2011, 10:47:51 am »
hoffa disappeared again...

this would be very useful for my project and maybe any other lua projects...

Anyway I've got to learn some object oriented programming... Which could be a problem when we are too much accustomed with TI-BASIC programming.

Offline flyingfisch

  • I'm 1337 now!
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1620
  • Rating: +94/-17
  • Testing, testing, 1...2...3...4...5...6...7...8..9
    • View Profile
    • Top Page Website Design
Re: Hyena: a simple (Lua) GUI library for the TI-Nspire
« Reply #18 on: December 01, 2011, 12:54:40 pm »
I am thinking about doing something like this for casio LuaFX.



Quote from: my dad
"welcome to the world of computers, where everything seems to be based on random number generators"



The Game V. 2.0

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Hyena: a simple (Lua) GUI library for the TI-Nspire
« Reply #19 on: December 02, 2011, 04:44:05 am »
hoffa disappeared again...

this would be very useful for my project and maybe any other lua projects...

Anyway I've got to learn some object oriented programming... Which could be a problem when we are too much accustomed with TI-BASIC programming.

I'm making a gui library of EEPro, it will be open source so you will be able to use it :)