mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-04-22 01:52:43 +00:00
Some ui changes
This commit is contained in:
parent
422c0bc1dc
commit
3842b2e293
2 changed files with 10 additions and 5 deletions
|
|
@ -223,6 +223,7 @@ ERASE = "Erase"
|
|||
EDIT = "Edit"
|
||||
EDIT_TITLE = "EDIT"
|
||||
EDIT_NAME = "Edit Save File @'s Name:"
|
||||
APPLY = "Apply"
|
||||
CREATE_SAVE = "Create Save"
|
||||
CREATE = "Create"
|
||||
CREATE_TITLE = "CREATE"
|
||||
|
|
|
|||
|
|
@ -121,11 +121,15 @@ static void djui_panel_edit_create(struct DjuiBase* caller) {
|
|||
djui_interactable_hook_value_change(&sSaveNameInputBox->base, djui_panel_host_save_save_name_change);
|
||||
}
|
||||
|
||||
if (!sEditing)
|
||||
djui_button_create(body, DLANG(HOST_SAVE, CREATE), DJUI_BUTTON_STYLE_NORMAL, djui_panel_create_create);
|
||||
else
|
||||
djui_button_create(body, DLANG(HOST_SAVE, EDIT), DJUI_BUTTON_STYLE_NORMAL, djui_panel_edit_save);
|
||||
djui_button_create(body, DLANG(MENU, BACK), DJUI_BUTTON_STYLE_BACK, djui_panel_menu_back);
|
||||
struct DjuiRect* rect = djui_rect_container_create(body, 64);
|
||||
{
|
||||
djui_button_left_create(&rect->base, DLANG(MENU, BACK), DJUI_BUTTON_STYLE_BACK, djui_panel_menu_back);
|
||||
if (!sEditing) {
|
||||
djui_button_right_create(&rect->base, DLANG(HOST_SAVE, CREATE), DJUI_BUTTON_STYLE_NORMAL, djui_panel_create_create);
|
||||
} else {
|
||||
djui_button_right_create(&rect->base, DLANG(HOST_SAVE, APPLY), DJUI_BUTTON_STYLE_NORMAL, djui_panel_edit_save);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
djui_panel_add(caller, panel, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue