h_menubutton.h 806 B

1234567891011121314151617181920212223242526272829303132333435
  1. /* This file was generated by Maki Compiler, do not edit manually */
  2. #ifndef __HOOK_MENUBUTTON_H
  3. #define __HOOK_MENUBUTTON_H
  4. #include "h_guiobject.h"
  5. #define H_MENUBUTTON_PARENT H_GuiObject
  6. class H_MenuButton : public H_MENUBUTTON_PARENT {
  7. public:
  8. H_MenuButton(ScriptObject *o);
  9. H_MenuButton();
  10. virtual ~H_MenuButton();
  11. virtual void H_hook(ScriptObject *o);
  12. ScriptObject *getHookedObject();
  13. virtual int eventCallback(ScriptObject *object, int dlfid, scriptVar **params, int nparams);
  14. virtual void hook_onOpenMenu() { }
  15. virtual void hook_onCloseMenu() { }
  16. virtual void hook_onSelectItem(const wchar_t *item) { }
  17. private:
  18. ScriptObject *obj;
  19. int inited;
  20. static int loaded;
  21. static int onopenmenu_id;
  22. static int onclosemenu_id;
  23. static int onselectitem_id;
  24. };
  25. #endif