Expand DJUI elements a little so text fits better

This commit is contained in:
Agent X 2023-11-14 21:50:35 -05:00
parent dd3b39739e
commit 345bf8af50
6 changed files with 9 additions and 9 deletions

View File

@ -80,7 +80,7 @@ void djui_panel_display_create(struct DjuiBase* caller) {
struct DjuiInputbox* inputbox1 = djui_inputbox_create(&rect1->base, 32);
djui_base_set_size_type(&inputbox1->base, DJUI_SVT_RELATIVE, DJUI_SVT_ABSOLUTE);
djui_base_set_size(&inputbox1->base, 0.4f, 32);
djui_base_set_size(&inputbox1->base, 0.45f, 32);
djui_base_set_alignment(&inputbox1->base, DJUI_HALIGN_RIGHT, DJUI_VALIGN_TOP);
char frameLimitString[32] = { 0 };
snprintf(frameLimitString, 32, "%d", configFrameLimit);

View File

@ -120,7 +120,7 @@ void djui_panel_host_create(struct DjuiBase* caller) {
sInputboxPort = djui_inputbox_create(&sRectPort->base, 32);
djui_base_set_size_type(&sInputboxPort->base, DJUI_SVT_RELATIVE, DJUI_SVT_ABSOLUTE);
djui_base_set_size(&sInputboxPort->base, 0.4f, 32);
djui_base_set_size(&sInputboxPort->base, 0.45f, 32);
djui_base_set_alignment(&sInputboxPort->base, DJUI_HALIGN_RIGHT, DJUI_VALIGN_TOP);
char portString[32] = { 0 };
snprintf(portString, 32, "%d", configHostPort);
@ -149,7 +149,7 @@ void djui_panel_host_create(struct DjuiBase* caller) {
sInputboxPassword = djui_inputbox_create(&sRectPassword->base, 32);
sInputboxPassword->passwordChar[0] = '#';
djui_base_set_size_type(&sInputboxPassword->base, DJUI_SVT_RELATIVE, DJUI_SVT_ABSOLUTE);
djui_base_set_size(&sInputboxPassword->base, 0.4f, 32);
djui_base_set_size(&sInputboxPassword->base, 0.45f, 32);
djui_base_set_alignment(&sInputboxPassword->base, DJUI_HALIGN_RIGHT, DJUI_VALIGN_TOP);
char portPassword[64] = { 0 };
snprintf(portPassword, 64, "%s", configPassword);
@ -175,7 +175,7 @@ void djui_panel_host_create(struct DjuiBase* caller) {
char starString[32] = { 0 };
snprintf(starString, 32, "%c x%d", '~' + 1, save_file_get_total_star_count(configHostSaveSlot - 1, 0, 24));
struct DjuiButton* button1 = djui_button_create(&rect2->base, starString, DJUI_BUTTON_STYLE_NORMAL, djui_panel_host_save_create);
djui_base_set_size(&button1->base, 0.4f, 32);
djui_base_set_size(&button1->base, 0.45f, 32);
djui_base_set_alignment(&button1->base, DJUI_HALIGN_RIGHT, DJUI_VALIGN_TOP);
}

View File

@ -79,7 +79,7 @@ void djui_panel_host_settings_create(struct DjuiBase* caller) {
struct DjuiInputbox* inputbox1 = djui_inputbox_create(&rect1->base, 32);
djui_base_set_size_type(&inputbox1->base, DJUI_SVT_RELATIVE, DJUI_SVT_ABSOLUTE);
djui_base_set_size(&inputbox1->base, 0.4f, 32);
djui_base_set_size(&inputbox1->base, 0.45f, 32);
djui_base_set_alignment(&inputbox1->base, DJUI_HALIGN_RIGHT, DJUI_VALIGN_TOP);
char limitString[32] = { 0 };
snprintf(limitString, 32, "%d", configAmountofPlayers);

View File

@ -148,7 +148,7 @@ static void djui_panel_player_edit_palette_create(struct DjuiBase* caller) {
sHexColorTextBox = djui_inputbox_create(&rect1->base, 7);
djui_base_set_size_type(&sHexColorTextBox->base, DJUI_SVT_RELATIVE, DJUI_SVT_ABSOLUTE);
djui_base_set_size(&sHexColorTextBox->base, 0.4f, 32);
djui_base_set_size(&sHexColorTextBox->base, 0.45f, 32);
djui_base_set_alignment(&sHexColorTextBox->base, DJUI_HALIGN_RIGHT, DJUI_VALIGN_TOP);
djui_panel_player_edit_palette_update_hex_code_box();
djui_interactable_hook_value_change(&sHexColorTextBox->base, djui_panel_player_edit_palette_hex_code_changed);
@ -249,7 +249,7 @@ void djui_panel_player_create(struct DjuiBase* caller) {
struct DjuiInputbox* inputbox1 = djui_inputbox_create(&rect1->base, MAX_PLAYER_STRING);
djui_base_set_size_type(&inputbox1->base, DJUI_SVT_RELATIVE, DJUI_SVT_ABSOLUTE);
djui_base_set_size(&inputbox1->base, 0.4f, 32);
djui_base_set_size(&inputbox1->base, 0.45f, 32);
djui_base_set_alignment(&inputbox1->base, DJUI_HALIGN_RIGHT, DJUI_VALIGN_TOP);
if (djui_panel_player_name_valid(configPlayerName)) {
djui_inputbox_set_text(inputbox1, configPlayerName);

View File

@ -131,7 +131,7 @@ struct DjuiSelectionbox* djui_selectionbox_create(struct DjuiBase* parent, const
struct DjuiRect* rect = djui_rect_create(&selectionbox->base);
djui_base_set_alignment(&rect->base, DJUI_HALIGN_RIGHT, DJUI_VALIGN_CENTER);
djui_base_set_size_type(&rect->base, DJUI_SVT_RELATIVE, DJUI_SVT_RELATIVE);
djui_base_set_size(&rect->base, 0.4f, 1.0f);
djui_base_set_size(&rect->base, 0.45f, 1.0f);
djui_base_set_color(&rect->base, 0, 0, 0, 0);
djui_base_set_border_width(&rect->base, 2);
djui_base_set_padding(&rect->base, 2, 2, 0, 4);

View File

@ -122,7 +122,7 @@ struct DjuiSlider* djui_slider_create(struct DjuiBase* parent, const char* messa
struct DjuiRect* rect = djui_rect_create(&slider->base);
djui_base_set_alignment(&rect->base, DJUI_HALIGN_RIGHT, DJUI_VALIGN_CENTER);
djui_base_set_size_type(&rect->base, DJUI_SVT_RELATIVE, DJUI_SVT_RELATIVE);
djui_base_set_size(&rect->base, 0.4f, 1.0f);
djui_base_set_size(&rect->base, 0.45f, 1.0f);
djui_base_set_color(&rect->base, 0, 0, 0, 0);
djui_base_set_border_width(&rect->base, 2);
slider->rect = rect;