diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2011-05-29 16:00:31 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2011-05-29 16:00:31 (GMT) |
| commit | 5dcc3dbb44f1c721a4adbee3db2dd8b5542e870e (patch) | |
| tree | 0adfaecdf54337e14c846499ecca067c465d4234 /includes/interface.h | |
| parent | e35440fe59ecff0d55f2823a6b3f9d4866cc77f4 (diff) | |
| download | powder-5dcc3dbb44f1c721a4adbee3db2dd8b5542e870e.zip powder-5dcc3dbb44f1c721a4adbee3db2dd8b5542e870e.tar.gz | |
Rich text syntax
TODO: Link hovering
Diffstat (limited to 'includes/interface.h')
| -rw-r--r-- | includes/interface.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/includes/interface.h b/includes/interface.h index 7834bb3..ecaf851 100644 --- a/includes/interface.h +++ b/includes/interface.h @@ -111,6 +111,19 @@ struct ui_checkbox }; typedef struct ui_checkbox ui_checkbox; +struct ui_richtext +{ + int x, y; + char str[512]; + char printstr[512]; + int regionss[6]; + int regionsf[6]; + char action[6]; + char actiondata[6][256]; + char actiontext[6][256]; +}; +typedef struct ui_richtext ui_richtext; + int SLALT; extern SDLMod sdl_mod; extern int sdl_key, sdl_wheel, sdl_caps, sdl_ascii, sdl_zoom_trig; @@ -178,6 +191,12 @@ void ui_copytext_draw(pixel *vid_buf, ui_copytext *ed); void ui_copytext_process(int mx, int my, int mb, int mbq, ui_copytext *ed); +void ui_richtext_draw(pixel *vid_buf, ui_richtext *ed); + +void ui_richtext_settext(char *text, ui_richtext *ed); + +void ui_richtext_process(int mx, int my, int mb, int mbq, ui_richtext *ed); + void draw_svf_ui(pixel *vid_buf); void error_ui(pixel *vid_buf, int err, char *txt); |
