Move 'Load file' onto its own line

This commit is contained in:
UnknownShadow200 2022-01-20 18:23:21 +11:00
parent 8b88d3e575
commit fc0397a7ed
2 changed files with 9 additions and 4 deletions

View File

@ -21,7 +21,6 @@
cc_bool EnvRenderer_Legacy, EnvRenderer_Minimal;
#define ENV_SMALL_VERTICES 4096
static float CalcBlendFactor(float x) {
/* return -0.05 + 0.22 * (Math_Log(x) * 0.25f); */
double blend = -0.13 + 0.28 * (Math_Log(x) * 0.25);

View File

@ -201,16 +201,18 @@ static struct Widget* list_widgets[10] = {
static void ListScreen_Layout(void* screen) {
struct ListScreen* s = (struct ListScreen*)screen;
int i;
for (i = 0; i < LIST_SCREEN_ITEMS; i++) {
Widget_SetLocation(&s->btns[i],
ANCHOR_CENTRE, ANCHOR_CENTRE, 0, (i - 2) * 50);
}
if (s->UploadClick) {
if (s->UploadClick && Input_TouchMode) {
Widget_SetLocation(&s->done, ANCHOR_CENTRE_MIN, ANCHOR_MAX, -150, 25);
Widget_SetLocation(&s->upload, ANCHOR_CENTRE_MAX, ANCHOR_MAX, -150, 25);
} else {
Menu_LayoutBack(&s->done);
Widget_SetLocation(&s->done, ANCHOR_CENTRE, ANCHOR_MAX, 0, 25);
Widget_SetLocation(&s->upload, ANCHOR_CENTRE, ANCHOR_MAX, 0, 70);
}
Widget_SetLocation(&s->left, ANCHOR_CENTRE, ANCHOR_CENTRE, -220, 0);
@ -384,7 +386,11 @@ static void ListScreen_ContextRecreated(void* screen) {
ListScreen_UpdatePage(s);
if (!s->UploadClick) return;
ButtonWidget_SetConst(&s->upload, Input_TouchMode ? "Upload" : "Load file...", &s->font);
#ifdef CC_BUILD_WEB
ButtonWidget_SetConst(&s->upload, "Upload", &s->font);
#else
ButtonWidget_SetConst(&s->upload, "Load file...", &s->font);
#endif
}
static void ListScreen_Reload(struct ListScreen* s) {