Page 1 of 2

onDrawGui?

Posted: Fri Oct 31, 2014 6:16 pm
by JohnWordsworth
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!

Re: onDrawGui?

Posted: Fri Oct 31, 2014 6:20 pm
by cromcrom
I am holding back some Scripting, waiting for UI stuff. So I second this question :-)

Re: onDrawGui?

Posted: Fri Oct 31, 2014 6:22 pm
by NutJob
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?

Posted: Fri Oct 31, 2014 6:26 pm
by Doridion
John Wordsworth ? "Cooking" another Grimwidget ? :D

For the onDrawGui, not seen yet, perhaps in hex-editor ?

Re: onDrawGui?

Posted: Fri Oct 31, 2014 6:30 pm
by Eleven Warrior
Is Grim widgets back awesome yeah :)

Re: onDrawGui?

Posted: Fri Oct 31, 2014 7:23 pm
by JKos
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.

Re: onDrawGui?

Posted: Fri Oct 31, 2014 8:09 pm
by JohnWordsworth
@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!

Re: onDrawGui?

Posted: Fri Oct 31, 2014 10:31 pm
by Doridion
Only one link to give : viewtopic.php?f=22&t=8004&start=10#p81030 :D

Yup yup yup !

Re: onDrawGui?

Posted: Fri Oct 31, 2014 11:26 pm
by Eleven Warrior
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 :)

Re: onDrawGui?

Posted: Sat Nov 01, 2014 8:53 pm
by NutJob
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.
So, has anyone out there done this?

and/or

Has anyone triggered the onGuiDraw (not onDrawGui) successfully?