mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-19 04:26:52 -04:00
Move 'Load file' onto its own line
This commit is contained in:
parent
8b88d3e575
commit
fc0397a7ed
@ -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);
|
||||
|
12
src/Menus.c
12
src/Menus.c
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user