2019-03-18 23:31:13 +01:00
|
|
|
|
|
|
|
checkbox checkbox1 = { "Checkbox", true };
|
|
|
|
more_less_box spinbox1 = { 23, 0, 999, "SpinBox" };
|
|
|
|
edit_box edit_cmm = {180,NULL,NULL,0xffffff,0x94AECE,0xFFFfff,0xffffff,
|
|
|
|
0x10000000,sizeof(param)-2,#param,0, 0b};
|
|
|
|
char st_str[16];
|
|
|
|
edit_box edit_st = {180,NULL,NULL,0xffffff,0x94AECE,0xFFFfff,0xffffff,
|
|
|
|
0x10000000,sizeof(st_str)-2,#st_str,0, 0b};
|
|
|
|
|
|
|
|
|
|
|
|
void DrawUiElementsPreview(dword x,y,h)
|
|
|
|
{
|
|
|
|
incn y2;
|
2021-12-21 18:22:15 +01:00
|
|
|
spinbox1.draw(x, y2.set(y+30));
|
2020-04-18 01:52:24 +02:00
|
|
|
WriteText(x, y2.inc(30), 0x90, sc.work_text, "C-- Edit");
|
2019-03-18 23:31:13 +01:00
|
|
|
DrawEditBoxPos(x, y2.inc(20), #edit_cmm);
|
2022-01-15 17:31:40 +01:00
|
|
|
WriteText(x, y2.inc(35), 0x90, sc.work_text, "Standard Edit");
|
2019-03-18 23:31:13 +01:00
|
|
|
DrawStEditBoxPos(x, y2.inc(20), #edit_st);
|
|
|
|
DrawStandartCaptButton(x, y+h-40, GetFreeButtonId(), "Button1");
|
|
|
|
DrawStandartCaptButton(x+100, y+h-40, GetFreeButtonId(), "Button2");
|
|
|
|
}
|
|
|
|
|
|
|
|
:void DrawStEditBoxPos(dword x,y, edit_box_pointer)
|
|
|
|
{
|
2022-01-09 07:36:16 +01:00
|
|
|
dword c_inactive = MixColors(sc.line, sc.work, 128);
|
|
|
|
dword c_active = MixColors(sc.line, 0, 128);
|
2019-03-18 23:31:13 +01:00
|
|
|
ESI = edit_box_pointer;
|
|
|
|
ESI.edit_box.left = x;
|
|
|
|
ESI.edit_box.top = y;
|
2022-01-15 21:30:04 +01:00
|
|
|
ESI.edit_box.border_color = c_inactive;
|
2019-03-18 23:31:13 +01:00
|
|
|
ESI.edit_box.focus_border_color = c_active;
|
|
|
|
edit_box_draw stdcall (edit_box_pointer);
|
|
|
|
}
|