X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Flibgame%2Fgadgets.h;h=5f873747e4033a14aa0b0de8aa5c9e9ff75509cb;hp=5102b792dc81e3d1784a852d2de0618c625af7dc;hb=7ae99e1573d948cb3e8ae98e6e7adb746956bdc3;hpb=8996c42ebfda1439fbf40a6a4c13129f760ecf2d diff --git a/src/libgame/gadgets.h b/src/libgame/gadgets.h index 5102b792..5f873747 100644 --- a/src/libgame/gadgets.h +++ b/src/libgame/gadgets.h @@ -112,6 +112,7 @@ #define GDI_INFO_TEXT 48 #define GDI_ACTIVE 49 #define GDI_DIRECT_DRAW 50 +#define GDI_CALLBACK_ACTION_ALWAYS 51 /* gadget deactivation hack */ #define GDI_ACTIVE_POS(a) ((a) < 0 ? POS_OFFSCREEN : (a)) @@ -244,6 +245,7 @@ struct GadgetInfo boolean mapped; /* gadget is mapped on the screen */ boolean active; /* gadget is active */ boolean direct_draw; /* directly draw to frontbuffer */ + boolean callback_action_always; /* also callback if gadget unchanged */ int font; /* font to use when inactive */ int font_active; /* font to use when active */ int font_unselectable; /* font to use when unselectable */ @@ -277,14 +279,14 @@ void RedrawGadget(struct GadgetInfo *); void MapGadget(struct GadgetInfo *); void UnmapGadget(struct GadgetInfo *); -void UnmapAllGadgets(); -void RemapAllGadgets(); - -boolean anyTextInputGadgetActive(); -boolean anyTextAreaGadgetActive(); -boolean anySelectboxGadgetActive(); -boolean anyScrollbarGadgetActive(); -boolean anyTextGadgetActive(); +void UnmapAllGadgets(void); +void RemapAllGadgets(void); + +boolean anyTextInputGadgetActive(void); +boolean anyTextAreaGadgetActive(void); +boolean anySelectboxGadgetActive(void); +boolean anyScrollbarGadgetActive(void); +boolean anyTextGadgetActive(void); void ClickOnGadget(struct GadgetInfo *, int);