onDrawGui?

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
User avatar
JohnWordsworth
Posts: 1397
Joined: Fri Sep 14, 2012 4:19 pm
Location: Devon, United Kingdom
Contact:

onDrawGui?

Post 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!
My Grimrock Projects Page with links to the Grimrock Model Toolkit, GrimFBX, Atlas Toolkit, QuickBar, NoteBook and the Oriental Weapons Pack.
User avatar
cromcrom
Posts: 549
Joined: Tue Sep 11, 2012 7:16 am
Location: Chateauroux in a socialist s#!$*&% formerly known as "France"

Re: onDrawGui?

Post by cromcrom »

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.
NutJob
Posts: 426
Joined: Sun Oct 19, 2014 6:35 pm

Re: onDrawGui?

Post 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.
User avatar
Doridion
Posts: 256
Joined: Tue Jun 10, 2014 9:23 pm

Re: onDrawGui?

Post by Doridion »

John Wordsworth ? "Cooking" another Grimwidget ? :D

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.
User avatar
Eleven Warrior
Posts: 752
Joined: Thu Apr 18, 2013 2:32 pm
Location: Australia

Re: onDrawGui?

Post by Eleven Warrior »

Is Grim widgets back awesome yeah :)
User avatar
JKos
Posts: 464
Joined: Wed Sep 12, 2012 10:03 pm
Location: Finland
Contact:

Re: onDrawGui?

Post 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.
- 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
User avatar
JohnWordsworth
Posts: 1397
Joined: Fri Sep 14, 2012 4:19 pm
Location: Devon, United Kingdom
Contact:

Re: onDrawGui?

Post 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!
My Grimrock Projects Page with links to the Grimrock Model Toolkit, GrimFBX, Atlas Toolkit, QuickBar, NoteBook and the Oriental Weapons Pack.
User avatar
Doridion
Posts: 256
Joined: Tue Jun 10, 2014 9:23 pm

Re: onDrawGui?

Post by Doridion »

Only one link to give : viewtopic.php?f=22&t=8004&start=10#p81030 :D

Yup yup yup !
User avatar
Eleven Warrior
Posts: 752
Joined: Thu Apr 18, 2013 2:32 pm
Location: Australia

Re: onDrawGui?

Post 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 :)
NutJob
Posts: 426
Joined: Sun Oct 19, 2014 6:35 pm

Re: onDrawGui?

Post 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?
Post Reply