X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fgadgets.h;h=5c71680466463186c3c910691ad22b1200e5be9e;hb=5a2237add0a19d1559c0fe20c3f27651a71adf6c;hp=4e1dd0f789d5e70beaf1107c1f615440e1ab7d40;hpb=2a357b702b5ceb9bf9173ac02f68cf42340b3158;p=rocksndiamonds.git diff --git a/src/libgame/gadgets.h b/src/libgame/gadgets.h index 4e1dd0f7..5c716804 100644 --- a/src/libgame/gadgets.h +++ b/src/libgame/gadgets.h @@ -152,6 +152,7 @@ struct GadgetTextButton struct GadgetTextInput { char value[MAX_GADGET_TEXTSIZE]; /* text string in input field */ + char last_value[MAX_GADGET_TEXTSIZE]; /* last text string in input field */ int cursor_position; /* actual text cursor position */ int number_value; /* integer value, if numeric */ int number_min; /* minimal allowed numeric value */ @@ -162,6 +163,7 @@ struct GadgetTextInput struct GadgetTextArea { char value[MAX_GADGET_TEXTSIZE]; /* text string in input field */ + char last_value[MAX_GADGET_TEXTSIZE]; /* last text string in input field */ int cursor_position; /* actual text cursor position */ int cursor_x; /* actual x cursor position */ int cursor_y; /* actual y cursor position */ @@ -247,6 +249,7 @@ void UnmapAllGadgets(); void RemapAllGadgets(); boolean anyTextGadgetActive(); + void ClickOnGadget(struct GadgetInfo *, int); boolean HandleGadgets(int, int, int);