Petri consumes glögg and codes with you
Re: Petri consumes glögg and codes with you
WOW, that's really awesome. And you are lightning fast.
- LoG Framework 2http://sites.google.com/site/jkoslog2 Define hooks in runtime by entity.name or entity.id + multiple hooks support.
- cloneObject viewtopic.php?f=22&t=8450
- cloneObject viewtopic.php?f=22&t=8450
Re: Petri consumes glögg and codes with you
How about onKeyPress(key) hook? I can bring you moar glögg (pirusti lisää glögiä). I live in Espoo 

- LoG Framework 2http://sites.google.com/site/jkoslog2 Define hooks in runtime by entity.name or entity.id + multiple hooks support.
- cloneObject viewtopic.php?f=22&t=8450
- cloneObject viewtopic.php?f=22&t=8450
Re: Petri consumes glögg and codes with you
Whaaaat? Crazy! Petri you are amazing.
Re: Petri consumes glögg and codes with you
Amazing piece of fine work. I bow to your superb coding skills, sir!petri wrote:http://i.imgur.com/VdTj3.jpg
And this is how it's done:
- JohnWordsworth
- Posts: 1397
- Joined: Fri Sep 14, 2012 4:19 pm
- Location: Devon, United Kingdom
- Contact:
Re: Petri consumes glögg and codes with you
*Bows down to Petri*
That's really awesome. With that in mind a party:onShowMenu(menuScreen={inventory, map}) and party:onHideMenu() hook would be super cool, because then we could show screen elements only when in the inventory (water meter). (Might be possible already?)
Just a quick thought, would the screen coordinates be better as normalised values (0-1) or perhaps we will need a getScreenSize() method to do this ourselves?
That's really awesome. With that in mind a party:onShowMenu(menuScreen={inventory, map}) and party:onHideMenu() hook would be super cool, because then we could show screen elements only when in the inventory (water meter). (Might be possible already?)
Just a quick thought, would the screen coordinates be better as normalised values (0-1) or perhaps we will need a getScreenSize() method to do this ourselves?
My Grimrock Projects Page with links to the Grimrock Model Toolkit, GrimFBX, Atlas Toolkit, QuickBar, NoteBook and the Oriental Weapons Pack.
Re: Petri consumes glögg and codes with you
g.width and g.height return the screen dimensions.JohnWordsworth wrote:Just a quick thought, would the screen coordinates be better as normalised values (0-1) or perhaps we will need a getScreenSize() method to do this ourselves?
- JohnWordsworth
- Posts: 1397
- Joined: Fri Sep 14, 2012 4:19 pm
- Location: Devon, United Kingdom
- Contact:
Re: Petri consumes glögg and codes with you
Of course you'd thought of that - I should never had doubted you! :ppetri wrote:g.width and g.height return the screen dimensions.
Oh man, that GUI code sets everything free. You'll be able to have all sorts of puzzles and even animated items / bars on the GUI. I can picture books of lore and all sorts appearing now

My Grimrock Projects Page with links to the Grimrock Model Toolkit, GrimFBX, Atlas Toolkit, QuickBar, NoteBook and the Oriental Weapons Pack.
Re: Petri consumes glögg and codes with you
We'll soon be able to die out of thirst! Yay!JohnWordsworth wrote:... because then we could show screen elements only when in the inventory (water meter). (Might be possible already?)

Re: Petri consumes glögg and codes with you
Bad news, I don't have any Glögg.
The good news is that amazing things are happening in this topic!
The good news is that amazing things are happening in this topic!
BASILEUS
Re: Petri consumes glögg and codes with you
Ah, a water bar is exactly what I need for my thirsty script!! ^_^thomson wrote:We'll soon be able to die out of thirst! Yay!JohnWordsworth wrote:... because then we could show screen elements only when in the inventory (water meter). (Might be possible already?)
Anyway, good job Petri!
