0 Members and 1 Guest are viewing this topic.
Heya Hoffa where have you been? I noticed you stopped posting for over a month recently. Nice to see you back now. Also this looks nice.
Great !You know, you can use a cursor.set("grab") <-- or something like that, I don't remember exactlywhen grabbing windows ...it's all on http://wiki.inspired-lua.org/cursor.set
function win_1_f() hyena:drawImage(win_1, hyenaImage, 0, 0) hyena:drawString(win_1, "Hello, hyena!", 0, 50)endfunction win_2_f() hyena:drawString(win_2, "LOOK AT THESE GODDAMN ANTS", 0, 0)endfunction on.mouseDown(x, y) hyena:mouseDown(x, y)endfunction on.mouseUp(x, y) hyena:mouseUp(x, y)endfunction on.mouseMove(x, y) hyena:mouseMove(x, y)endfunction on.timer() timer.stop() platform.window:invalidate()endinitialized = falsefunction on.paint(gc) if not initialized then hyena = Hyena(gc) win_1 = hyena:createWindow("First window, yay!", 0, 0, 128, 96) win_2 = hyena:createWindow("FEELS GOOD MAN", 80, 40, 100, 100) hyena:setWindowContentFunction(win_1, win_1_f) hyena:setWindowContentFunction(win_2, win_2_f) initialized = true end hyena:drawWindows() timer.start(0.01)end
I am a proud cynic.
Hmmm, I don't know how I missed this the first time.Regardless, it looks really epic Any chance you could upload your library code to pastebin or something like that and give us a link to that sometime soon, because, if it's alright with you, I would really love to implement this in Pacman
Pretty cool, I might also try a basic window GUI library like this as well.Also, dragging windows looks rather difficult on the touchpad, maybe you could change instead to holding a button like "ctrl", and pressing 4, 8, 6, or 2 will move the focused window left, up, right or down respectively ? /suggestion
Quote from: pianoman on August 19, 2011, 11:47:36 amHmmm, I don't know how I missed this the first time.Regardless, it looks really epic Any chance you could upload your library code to pastebin or something like that and give us a link to that sometime soon, because, if it's alright with you, I would really love to implement this in Pacman I'll post the current code in less than an hour, got to do some housekeeping and add a few functions.
Quote from: hoffa on August 19, 2011, 12:20:44 pmQuote from: pianoman on August 19, 2011, 11:47:36 amHmmm, I don't know how I missed this the first time.Regardless, it looks really epic Any chance you could upload your library code to pastebin or something like that and give us a link to that sometime soon, because, if it's alright with you, I would really love to implement this in Pacman I'll post the current code in less than an hour, got to do some housekeeping and add a few functions. Wonderful Nice job on this