Move copybox into its own control

This commit is contained in:
Simon
2011-04-04 20:02:11 +01:00
parent 078db03a52
commit 8872a1065b
2 changed files with 65 additions and 31 deletions

View File

@@ -82,6 +82,14 @@ struct ui_edit
};
typedef struct ui_edit ui_edit;
struct ui_copytext
{
int x, y, width, height;
char text[256];
int state, hover;
};
typedef struct ui_copytext ui_copytext;
struct save_info
{
char *title;
@@ -171,6 +179,10 @@ void ui_checkbox_draw(pixel *vid_buf, ui_checkbox *ed);
void ui_checkbox_process(int mx, int my, int mb, int mbq, ui_checkbox *ed);
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 draw_svf_ui(pixel *vid_buf);
void error_ui(pixel *vid_buf, int err, char *txt);