X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fgadgets.h;h=ab8e91439bc9c9702186f87b98c1962e4a3b8769;hb=27a283729bf1e7b956c5ceba87215a6d177b4bc7;hp=e12089945f32d6c7b04c4fdf9f4b4499b93f30eb;hpb=72657dfeee6b6c184a42e83ed923a63c1768100b;p=rocksndiamonds.git diff --git a/src/libgame/gadgets.h b/src/libgame/gadgets.h index e1208994..ab8e9143 100644 --- a/src/libgame/gadgets.h +++ b/src/libgame/gadgets.h @@ -144,8 +144,9 @@ struct GadgetTextInput int number_min; /* minimal allowed numeric value */ int number_max; /* maximal allowed numeric value */ int size; /* maximal size of input text */ - int cursor_position; /* actual cursor position */ int font_type; /* font to use for text input */ + int cursor_position; /* actual cursor position */ + Pixel inverse_color; /* color for highlighting */ }; struct GadgetSelectbox @@ -154,6 +155,17 @@ struct GadgetSelectbox int index; /* index of actual text string */ int size; /* maximal size of text strings */ int font_type; /* font to use for text input */ + + /* automatically determined values */ + int x, y; /* open selectbox position */ + int width, height; /* open selectbox size */ + int num_values; /* number of text strings */ + Pixel inverse_color; /* color for highlighting */ + + /* runtime values */ + boolean open; /* opening state of selectbox */ + boolean stay_open; /* open after button release */ + int current_index; /* index of text while selecting */ }; struct GadgetScrollbar