mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-16 05:14:01 +02:00
Listbox for Property tool property field
This commit is contained in:
@@ -114,6 +114,14 @@ struct ui_edit
|
||||
};
|
||||
typedef struct ui_edit ui_edit;
|
||||
|
||||
struct ui_list
|
||||
{
|
||||
int x, y, w, h;
|
||||
char str[256],*def,**items;
|
||||
int selected, focus, count;
|
||||
};
|
||||
typedef struct ui_list ui_list;
|
||||
|
||||
struct ui_copytext
|
||||
{
|
||||
int x, y, width, height;
|
||||
@@ -234,6 +242,10 @@ void ui_edit_draw(pixel *vid_buf, ui_edit *ed);
|
||||
|
||||
void ui_edit_process(int mx, int my, int mb, ui_edit *ed);
|
||||
|
||||
void ui_list_draw(pixel *vid_buf, ui_list *ed);
|
||||
|
||||
void ui_list_process(pixel * vid_buf, int mx, int my, int mb, ui_list *ed);
|
||||
|
||||
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);
|
||||
|
Reference in New Issue
Block a user