mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-13 03:44:05 +02:00
Move copybox into its own control
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user