From 59991f21b71af1c041605ec4e67192e15e18caab Mon Sep 17 00:00:00 2001 From: MysterD Date: Mon, 28 Jun 2021 00:07:07 -0700 Subject: [PATCH] DJUI: Removed unimplemented Player menu --- src/pc/djui/djui_panel_options.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/pc/djui/djui_panel_options.c b/src/pc/djui/djui_panel_options.c index 1ba23d72..abd01328 100644 --- a/src/pc/djui/djui_panel_options.c +++ b/src/pc/djui/djui_panel_options.c @@ -2,21 +2,22 @@ #include "src/pc/utils/misc.h" void djui_panel_options_create(struct DjuiBase* caller) { - f32 bodyHeight = 64 * 6 + 16 * 5; + f32 bodyHeight = 64 * 5 + 16 * 4; struct DjuiBase* defaultBase = NULL; struct DjuiThreePanel* panel = djui_panel_menu_create(bodyHeight, "\\#ff0800\\O\\#1be700\\P\\#00b3ff\\T\\#ffef00\\I\\#ff0800\\O\\#1be700\\N\\#00b3ff\\S"); struct DjuiFlowLayout* body = (struct DjuiFlowLayout*)djui_three_panel_get_body(panel); { - struct DjuiButton* button1 = djui_button_create(&body->base, "Player"); + /*struct DjuiButton* button1 = djui_button_create(&body->base, "Player"); djui_base_set_size_type(&button1->base, DJUI_SVT_RELATIVE, DJUI_SVT_ABSOLUTE); djui_base_set_size(&button1->base, 1.0f, 64); - defaultBase = &button1->base; + defaultBase = &button1->base;*/ struct DjuiButton* button2 = djui_button_create(&body->base, "Camera"); djui_base_set_size_type(&button2->base, DJUI_SVT_RELATIVE, DJUI_SVT_ABSOLUTE); djui_base_set_size(&button2->base, 1.0f, 64); djui_interactable_hook_click(&button2->base, djui_panel_camera_create); + defaultBase = &button2->base; struct DjuiButton* button3 = djui_button_create(&body->base, "Controls"); djui_base_set_size_type(&button3->base, DJUI_SVT_RELATIVE, DJUI_SVT_ABSOLUTE);