Fix main panel on lower resolutions
This commit is contained in:
parent
77ac424475
commit
5eca2fc291
|
@ -30,21 +30,21 @@ void djui_panel_main_create(struct DjuiBase* caller) {
|
||||||
struct DjuiBase* body = djui_three_panel_get_body(panel);
|
struct DjuiBase* body = djui_three_panel_get_body(panel);
|
||||||
{
|
{
|
||||||
struct DjuiImage* logo = djui_image_create(body, texture_coopdx_logo, 2048, 1024, 32);
|
struct DjuiImage* logo = djui_image_create(body, texture_coopdx_logo, 2048, 1024, 32);
|
||||||
djui_base_set_size(&logo->base, 500, 250);
|
djui_base_set_size(&logo->base, 400, 200);
|
||||||
djui_base_set_alignment(&logo->base, DJUI_HALIGN_CENTER, DJUI_VALIGN_TOP);
|
djui_base_set_alignment(&logo->base, DJUI_HALIGN_CENTER, DJUI_VALIGN_TOP);
|
||||||
djui_base_set_location_type(&logo->base, DJUI_SVT_RELATIVE, DJUI_SVT_ABSOLUTE);
|
djui_base_set_location_type(&logo->base, DJUI_SVT_RELATIVE, DJUI_SVT_ABSOLUTE);
|
||||||
djui_base_set_location(&logo->base, 0, -70);
|
djui_base_set_location(&logo->base, 0, -30);
|
||||||
|
|
||||||
struct DjuiButton* button1 = djui_button_create(body, DLANG(MAIN, HOST), DJUI_BUTTON_STYLE_NORMAL, djui_panel_host_create);
|
struct DjuiButton* button1 = djui_button_create(body, DLANG(MAIN, HOST), DJUI_BUTTON_STYLE_NORMAL, djui_panel_host_create);
|
||||||
djui_base_set_location(&button1->base, 0, -60);
|
djui_base_set_location(&button1->base, 0, -30);
|
||||||
djui_cursor_input_controlled_center(&button1->base);
|
djui_cursor_input_controlled_center(&button1->base);
|
||||||
|
|
||||||
struct DjuiButton* button2 = djui_button_create(body, DLANG(MAIN, JOIN), DJUI_BUTTON_STYLE_NORMAL, djui_panel_join_create);
|
struct DjuiButton* button2 = djui_button_create(body, DLANG(MAIN, JOIN), DJUI_BUTTON_STYLE_NORMAL, djui_panel_join_create);
|
||||||
djui_base_set_location(&button2->base, 0, -60);
|
djui_base_set_location(&button2->base, 0, -30);
|
||||||
struct DjuiButton* button3 = djui_button_create(body, DLANG(MAIN, OPTIONS), DJUI_BUTTON_STYLE_NORMAL, djui_panel_options_create);
|
struct DjuiButton* button3 = djui_button_create(body, DLANG(MAIN, OPTIONS), DJUI_BUTTON_STYLE_NORMAL, djui_panel_options_create);
|
||||||
djui_base_set_location(&button3->base, 0, -60);
|
djui_base_set_location(&button3->base, 0, -30);
|
||||||
struct DjuiButton* button4 = djui_button_create(body, DLANG(MAIN, QUIT), DJUI_BUTTON_STYLE_BACK, djui_panel_main_quit);
|
struct DjuiButton* button4 = djui_button_create(body, DLANG(MAIN, QUIT), DJUI_BUTTON_STYLE_BACK, djui_panel_main_quit);
|
||||||
djui_base_set_location(&button4->base, 0, -60);
|
djui_base_set_location(&button4->base, 0, -30);
|
||||||
}
|
}
|
||||||
|
|
||||||
// these two cannot co-exist for some reason
|
// these two cannot co-exist for some reason
|
||||||
|
|
Loading…
Reference in New Issue