X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fgadgets.h;h=ac14cb81f2b1d0e9dfecd733629c1c63799caa33;hb=494b886d5c5041013ea361a12a07d7cd87551d52;hp=ec03d0b724f349a8e65d1c9f27ab36e99e1ac85e;hpb=2c89261a1186ffc19bd6e5f82e9369bee1545e2f;p=rocksndiamonds.git diff --git a/src/libgame/gadgets.h b/src/libgame/gadgets.h index ec03d0b7..ac14cb81 100644 --- a/src/libgame/gadgets.h +++ b/src/libgame/gadgets.h @@ -213,8 +213,8 @@ struct GadgetInfo char info_text[MAX_INFO_TEXTSIZE]; /* short popup info text */ int x, y; /* gadget position */ int width, height; /* gadget size */ - unsigned long type; /* type (button, text input, ...) */ - unsigned long state; /* state (pressed, released, ...) */ + unsigned int type; /* type (button, text input, ...) */ + unsigned int state; /* state (pressed, released, ...) */ boolean checked; /* check/radio button state */ int radio_nr; /* number of radio button series */ boolean mapped; /* gadget is mapped on the screen */ @@ -226,7 +226,7 @@ struct GadgetInfo struct GadgetDesign design[2]; /* 0: normal; 1: pressed */ struct GadgetDesign alt_design[2]; /* alternative design */ struct GadgetDecoration deco; /* decoration on top of gadget */ - unsigned long event_mask; /* possible events for this gadget */ + unsigned int event_mask; /* possible events for this gadget */ struct GadgetEvent event; /* actual gadget event */ gadget_function callback_info; /* function for pop-up info text */ gadget_function callback_action; /* function for gadget action */ @@ -250,6 +250,10 @@ void UnmapGadget(struct GadgetInfo *); void UnmapAllGadgets(); void RemapAllGadgets(); +boolean anyTextInputGadgetActive(); +boolean anyTextAreaGadgetActive(); +boolean anySelectboxGadgetActive(); +boolean anyScrollbarGadgetActive(); boolean anyTextGadgetActive(); void ClickOnGadget(struct GadgetInfo *, int);