Skip to content

Commit 1e77f27

Browse files
committed
Add properties.h to gitignore.
Add controls text to Area and Speed options in level select. Make Area show only for THI for now.
1 parent a7b421b commit 1e77f27

3 files changed

Lines changed: 15 additions & 23 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,4 @@ modding/
9595
*.log
9696
node_modules
9797
/src/port/build.c
98+
/properties.h

properties.h

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/port/mods/BetterLevelSelect.cpp

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -438,20 +438,25 @@ Gfx* BetterLevelSelect_DrawMenu(s32 state, struct GraphNode *node, UNUSED void *
438438
std::vector<const char*> acts = language ? entries[self.currentLevelIndex].actsJp : entries[self.currentLevelIndex].actsEn;
439439

440440
if(!acts.empty()) {
441-
GfxPrint_SetPos(&printer, 2, 25);
441+
int y = 25;
442+
GfxPrint_SetPos(&printer, 2, y);
442443
GfxPrint_SetColor(&printer, 100, 100, 100, 255);
443-
GfxPrint_Printf(&printer, "(Z/R)Act:");
444+
GfxPrint_Printf(&printer, "(Z/R) Act:");
444445
GfxPrint_SetColor(&printer, 200, 200, 50, 255);
445446
GfxPrint_Printf(&printer, "%s", acts[self.currentActIndex]);
446447

447-
GfxPrint_SetPos(&printer, 2, 26);
448448
auto areas = entries[self.currentLevelIndex].areas;
449-
GfxPrint_SetColor(&printer, 100, 100, 100, 255);
450-
GfxPrint_Printf(&printer, "Area:");
451-
GfxPrint_SetColor(&printer, 200, 50, 50, 255);
452-
GfxPrint_Printf(&printer, "%s", self.currentAreaIndex == 0 ? "Default" : areas[self.currentAreaIndex - 1].name);
449+
if (entries[self.currentLevelIndex].levelId == LEVEL_THI) {
450+
y++;
451+
GfxPrint_SetPos(&printer, 2, y);
452+
GfxPrint_SetColor(&printer, 100, 100, 100, 255);
453+
GfxPrint_Printf(&printer, "(C L/R) Area:");
454+
GfxPrint_SetColor(&printer, 200, 50, 50, 255);
455+
GfxPrint_Printf(&printer, "%s", self.currentAreaIndex == 0 ? "Default" : areas[self.currentAreaIndex - 1].name);
456+
}
453457

454-
GfxPrint_SetPos(&printer, 2, 27);
458+
y++;
459+
GfxPrint_SetPos(&printer, 2, y);
455460
GfxPrint_SetColor(&printer, 100, 100, 100, 255);
456461

457462
switch (entries[self.currentLevelIndex].levelId) {
@@ -462,7 +467,7 @@ Gfx* BetterLevelSelect_DrawMenu(s32 state, struct GraphNode *node, UNUSED void *
462467
// break;
463468
// }
464469
case LEVEL_TTC: {
465-
GfxPrint_Printf(&printer, "Speed:");
470+
GfxPrint_Printf(&printer, "(Dpad L/R) Speed:");
466471
GfxPrint_SetColor(&printer, 55, 200, 50, 255);
467472
GfxPrint_Printf(&printer, "%s", ttcSpeeds[self.ttcSpeedIndex]);
468473
break;

0 commit comments

Comments
 (0)