
viewtopic.php?f=18&t=8168&p=82749#p82749Slade wrote:Oh, my version is 2.1.18 apparently, so where i can download that on steam?(why i cant find it) Thanks for the answer
Code: Select all
defineObject{
name = "party",
baseObject = "party",
components = {
fw_addHooks{
class = "Party",
onDrawGui = function(party,g)
--Dummy hook for enabling onDrawGui-connectors
end
}
}
}
JKos could be there some collide problem between John GUI and your party hiring GUI ? Just asking, cause I still have John GUI dialogues screwed sometimes :/JKos wrote:@AdrTru:
Oh, right, now I understand what the problem is, the onDrawGui-connector of the grimtk doesn't get called if the party.onDrawGui-hook isn't defined.
This can be fixed by defining a dummy onDrawGui-hook like this in your party-object definition:Defining onDrawGui with hook-framework doesn't really differ from native in any way (other than that the Party-component definition is inside of a fw_addHooks-function call).Code: Select all
defineObject{ name = "party", baseObject = "party", components = { fw_addHooks{ class = "Party", onDrawGui = function(party,g) --Dummy hook for enabling onDrawGui-connectors end } } }
onDrawXXX-hooks aren't passed to hook-framework for performance reasons, and it's not even needed with LoG2 since we can use native connectors if we need add/remove onDraw-hooks at runtime.
@JohnW
autoexec is not a part of the hook-framework, I wanted to keep it as simple as possible. However I made a separate script which implements autoexec viewtopic.php?f=22&t=8132