Menu
Login
Language
DE EN FR ES IT CZ
Back

Multiple registerHookFunctions ?

  • #1, by dionous Tuesday, 06. March 2018, 07:48 8 years ago Quote
    Hi all,

    Would it be possible to have multiple registerHookFunctions for example one for setTextPosition and one for getActionText at the same time?

    Forum Fan

    250 Posts

  • #2, by SimonS Tuesday, 06. March 2018, 11:25 8 years ago Quote
    No, it's not possible. How should the engine decide which value to use? You would need to build your own hook system on top of one hook.

    Thread Captain

    1622 Posts

  • #3, by sebastian Tuesday, 06. March 2018, 11:43 8 years ago Quote
    hu? but didnt he want to know if its possible to have a registerHookFunction for two different hooks? 

    Thread Captain

    2346 Posts

  • #4, by SimonS Tuesday, 06. March 2018, 11:44 8 years ago Quote
    Then I misunderstood, that's possible. But only one for each.

    Thread Captain

    1622 Posts

  • #5, by dionous Tuesday, 06. March 2018, 11:50 8 years ago Quote
    Thanks all -  noted, yes basically i would like to use the registerHookFunction two or mores times, each with different hooks.

    So i guess there is no need to unregister a hook? (btw is it possible to do this, just like the event hook?)

    Forum Fan

    250 Posts

  • #6, by SimonS Tuesday, 06. March 2018, 11:58 8 years ago Quote
    To remove a hook you would  basicly do it like this:
    registerHookFunction("setTextPosition","")

    Thread Captain

    1622 Posts

  • #7, by dionous Tuesday, 06. March 2018, 15:41 8 years ago Quote
    Great thanks!

    Forum Fan

    250 Posts