From 3a415ddaf7a0ed020dd062c00f287035fe30ad23 Mon Sep 17 00:00:00 2001 From: Sahin Habermann Date: Fri, 23 Feb 2018 11:33:16 +0100 Subject: [PATCH] Show Open instead of Launch when a folder is selected --- common/menu.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/common/menu.c b/common/menu.c index 56b177d..da23f04 100644 --- a/common/menu.c +++ b/common/menu.c @@ -192,7 +192,14 @@ static void drawEntry(menuEntry_s* me, int off_x, int is_active) { DrawText(tahoma12, start_x + 256 + 64, start_y + 28 + 30, themeCurrent.textColor, tmpstr); memset(tmpstr, 0, sizeof(tmpstr)); snprintf(tmpstr, sizeof(tmpstr)-1, "Version: %s", me->version); - DrawText(tahoma12, start_x + 256 + 64, start_y + 28 + 30 + 18 + 6, themeCurrent.textColor, tmpstr); + DrawText(tahoma12, start_x + 256 + 64, start_y + 28 + 30 + 18 + 6, themeCurrent.textColor, tmpstr); + + drawImage(1280 - 126, 720 - 48, 32, 32, themeCurrent.buttonAImage, IMAGE_MODE_RGBA32); + DrawText(tahoma12, 1280 - 90, 720 - 44, themeCurrent.textColor, "Launch"); + } + else { + drawImage(1280 - 126, 720 - 48, 32, 32, themeCurrent.buttonAImage, IMAGE_MODE_RGBA32); + DrawText(tahoma12, 1280 - 90, 720 - 44, themeCurrent.textColor, "Open"); } } } @@ -290,9 +297,6 @@ void menuLoop() { //drawTime(); - drawImage(1280 - 126, 720 - 48, 32, 32, themeCurrent.buttonAImage, IMAGE_MODE_RGBA32); - DrawText(tahoma12, 1280 - 90, 720 - 44, themeCurrent.textColor, "Launch"); - if (menu->nEntries==0) { DrawText(tahoma12, 64, 128, themeCurrent.textColor, textGetString(StrId_NoAppsFound_Msg));