h_button.h 768 B

1234567891011121314151617181920212223242526272829303132333435
  1. /* This file was generated by Maki Compiler, do not edit manually */
  2. #ifndef __HOOK_BUTTON_H
  3. #define __HOOK_BUTTON_H
  4. #include "h_guiobject.h"
  5. #define H_BUTTON_PARENT H_GuiObject
  6. class H_Button : public H_BUTTON_PARENT {
  7. public:
  8. H_Button(ScriptObject *o);
  9. H_Button();
  10. virtual ~H_Button();
  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_onActivate(int activated) { }
  15. virtual void hook_onLeftClick() { }
  16. virtual void hook_onRightClick() { }
  17. private:
  18. ScriptObject *obj;
  19. int inited;
  20. static int loaded;
  21. static int onactivate_id;
  22. static int onleftclick_id;
  23. static int onrightclick_id;
  24. };
  25. #endif