summaryrefslogtreecommitdiff
path: root/lcarsng.c
diff options
context:
space:
mode:
authorKarl Melscher <kamel5@gmx.net>2018-03-07 15:20:35 +0100
committerKarl Melscher <kamel5@gmx.net>2018-03-07 15:20:35 +0100
commit7f827ad4ef2baab206da087e9790a45a92b6bd4e (patch)
treeefc7d91e438e29effdc95e0838c6484b2d8b6d42 /lcarsng.c
parent28c7cdc9797e2517e218ce6662a488664eec5117 (diff)
downloadskin-lcarsng-7f827ad4ef2baab206da087e9790a45a92b6bd4e.tar.gz
skin-lcarsng-7f827ad4ef2baab206da087e9790a45a92b6bd4e.tar.bz2
NumTimers in timermenu
Diffstat (limited to 'lcarsng.c')
-rw-r--r--lcarsng.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/lcarsng.c b/lcarsng.c
index 03c4fed..1920b58 100644
--- a/lcarsng.c
+++ b/lcarsng.c
@@ -1657,11 +1657,21 @@ void cLCARSNGDisplayMenu::SetTitle(const char *Title)
case mcEvent:
case mcRecording:
case mcRecordingInfo:
- case mcTimer:
case mcTimerEdit:
osd->DrawText(xs00, ys00, Title, Theme.Color(clrMenuFrameFg), frameColor, font, xs11 - xs00, lineHeight, taBottom | taRight | taBorder);
osd->DrawRectangle(xs12, ys00, xs13 - 1, ys01 - 1, frameColor);
break;
+ case mcTimer: {
+ osd->DrawText(xs00, ys00, Title, Theme.Color(clrMenuFrameFg), frameColor, font, xs11 - xs00, lineHeight, taBottom | taRight | taBorder);
+ osd->DrawRectangle(xs12, ys00, xs13 - 1, ys01 - 1, frameColor);
+ int NumTimers = 0;
+ for (cTimer *Timer = Timers.First(); Timer; Timer = Timers.Next(Timer)) {
+ if (Timer->HasFlags(tfActive))
+ NumTimers++;
+ }
+ osd->DrawText(xs00, ys00, itoa(NumTimers), Theme.Color(clrMenuFrameFg), frameColor, font, xs03 - xs02, ys01 - ys00, taBottom | taLeft | taBorder);
+ }
+ break;
default:
int w = font->Width(Title);
osd->DrawRectangle(xa06, yt00, xa07 - w - Gap - 1, yt01 - 1, frameColor);