onDrawGui?
- JohnWordsworth
- Posts: 1397
- Joined: Fri Sep 14, 2012 4:19 pm
- Location: Devon, United Kingdom
- Contact:
onDrawGui?
Just wondering if anyone has lucked out and found a new "onDrawGui" hook yet? I see that onDrawStats and onDrawInventory are still there, but I have a couple of things up my sleeve (for other modders to use) that require a gui hook!
With the recently released scripting reference, I think this is all I need to rebuild the notebook mod!
With the recently released scripting reference, I think this is all I need to rebuild the notebook mod!
My Grimrock Projects Page with links to the Grimrock Model Toolkit, GrimFBX, Atlas Toolkit, QuickBar, NoteBook and the Oriental Weapons Pack.
- cromcrom
- Posts: 549
- Joined: Tue Sep 11, 2012 7:16 am
- Location: Chateauroux in a socialist s#!$*&% formerly known as "France"
Re: onDrawGui?
I am holding back some Scripting, waiting for UI stuff. So I second this question 

A trip of a thousand leagues starts with a step.
Re: onDrawGui?
I'm curious if "onDrawGui" (whatever it'll be called) is what I need to look into for displaying the floating text (like damage, experience gain, etc). I have a function that grants experience but I'd like to have "+number" float in front of the party, also. Note: this isn't a "how do I do this?" question, but "am I looking in the right direction to do this?", question.
Re: onDrawGui?
John Wordsworth ? "Cooking" another Grimwidget ? 
For the onDrawGui, not seen yet, perhaps in hex-editor ?

For the onDrawGui, not seen yet, perhaps in hex-editor ?
Last edited by Doridion on Fri Oct 31, 2014 6:42 pm, edited 1 time in total.
- Eleven Warrior
- Posts: 752
- Joined: Thu Apr 18, 2013 2:32 pm
- Location: Australia
Re: onDrawGui?
Is Grim widgets back awesome yeah 

Re: onDrawGui?
There is a onGuiDraw (not onDrawGui) hook in grimrock2.dat, but apparently it never gets called, so I guess it's a bug.
I'm not sure but I think that if you search for a string "callHook" from .dat file you can find all hooks which are available for modders.
I'm not sure but I think that if you search for a string "callHook" from .dat file you can find all hooks which are available for modders.
- 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
- JohnWordsworth
- Posts: 1397
- Joined: Fri Sep 14, 2012 4:19 pm
- Location: Devon, United Kingdom
- Contact:
Re: onDrawGui?
@JKos: Inspired by your other post, I tried the same thing and came to the same conclusion. IIRC, this feature was added later for modders with LOG1 so I guess if the devs don't use it themselves then it's possible that it's not made it into LOG2 (yet?). Although, as onDrawInventory and onDrawStats are there it's also possible that it's been implemented in a different way that we've just not found yet!
My Grimrock Projects Page with links to the Grimrock Model Toolkit, GrimFBX, Atlas Toolkit, QuickBar, NoteBook and the Oriental Weapons Pack.
- Eleven Warrior
- Posts: 752
- Joined: Thu Apr 18, 2013 2:32 pm
- Location: Australia
Re: onDrawGui?
John you and Skuggs need to work together = result (awesome) and how is the GMT 2 coming on mate 
EDIT: If you add Jkos to the mixture then the world as we no it will change. The aliens told me to say this ahy

EDIT: If you add Jkos to the mixture then the world as we no it will change. The aliens told me to say this ahy

Re: onDrawGui?
So, has anyone out there done this?JKos wrote:There is a onGuiDraw (not onDrawGui) hook in grimrock2.dat, but apparently it never gets called, so I guess it's a bug.
I'm not sure but I think that if you search for a string "callHook" from .dat file you can find all hooks which are available for modders.
and/or
Has anyone triggered the onGuiDraw (not onDrawGui) successfully?