]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/mutators/events.qh
Update the weapon ammo notification to point people to the developers
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / mutators / events.qh
index a3dc720e8f0bc5f4ac8c05865a734ec0b66e32d0..af1b7f6324ffaae82ade9eab7002e640aa63ce0e 100644 (file)
@@ -1,7 +1,11 @@
-#ifndef MENU_MUTATORS_EVENTS_H
-#define MENU_MUTATORS_EVENTS_H
+#pragma once
 
-#include "../../common/mutators/base.qh"
+#include <common/mutators/base.qh>
+
+// register all possible hooks here
+
+// to use a hook, first register your mutator using REGISTER_MUTATOR
+// then create your function using MUTATOR_HOOKFUNCTION
 
 // globals
 
@@ -34,4 +38,8 @@ string cmd_string;
        /** whole command, use only if you really have to */ i(string, cmd_string) \
        /**/
 MUTATOR_HOOKABLE(Menu_ConsoleCommand, EV_Menu_ConsoleCommand);
-#endif
+
+#define EV_ConfigureDialogs(i, o) \
+       /** main window entity */ i(entity, MUTATOR_ARGV_0_entity) \
+       /**/
+MUTATOR_HOOKABLE(ConfigureDialogs, EV_ConfigureDialogs);