mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
added token {startsin} in displaymenuschedules
This commit is contained in:
parent
e03a6c2b21
commit
af59c465aa
3
HISTORY
3
HISTORY
@ -328,3 +328,6 @@ Version 0.4.5
|
|||||||
|
|
||||||
Version 0.4.6
|
Version 0.4.6
|
||||||
|
|
||||||
|
- added token {startsin} in displaymenuschedules
|
||||||
|
|
||||||
|
|
||||||
|
@ -44,6 +44,7 @@
|
|||||||
{year} year as number
|
{year} year as number
|
||||||
{running} true if event is currently running
|
{running} true if event is currently running
|
||||||
{elapsed} elapsed time of event, if not running 0
|
{elapsed} elapsed time of event, if not running 0
|
||||||
|
{startsin} minutes till event starts, if running 0
|
||||||
{duration} duration of event
|
{duration} duration of event
|
||||||
{durationhours} duration, full hours
|
{durationhours} duration, full hours
|
||||||
{durationminutes} duration, rest of minutes
|
{durationminutes} duration, rest of minutes
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
{year} year as number
|
{year} year as number
|
||||||
{running} true if event is currently running
|
{running} true if event is currently running
|
||||||
{elapsed} elapsed time of event, if not running 0
|
{elapsed} elapsed time of event, if not running 0
|
||||||
|
{startsin} minutes till event starts, if running 0
|
||||||
{duration} duration of event
|
{duration} duration of event
|
||||||
{durationhours} duration, full hours
|
{durationhours} duration, full hours
|
||||||
{durationminutes} duration, rest of minutes
|
{durationminutes} duration, rest of minutes
|
||||||
|
@ -376,8 +376,10 @@ void cDisplayMenuItemSchedulesView::SetTokens(void) {
|
|||||||
intTokens.insert(pair<string,int>("running", isRunning));
|
intTokens.insert(pair<string,int>("running", isRunning));
|
||||||
if (isRunning) {
|
if (isRunning) {
|
||||||
intTokens.insert(pair<string,int>("elapsed", (now - event->StartTime())/60));
|
intTokens.insert(pair<string,int>("elapsed", (now - event->StartTime())/60));
|
||||||
|
intTokens.insert(pair<string,int>("startsin", 0));
|
||||||
} else {
|
} else {
|
||||||
intTokens.insert(pair<string,int>("elapsed", 0));
|
intTokens.insert(pair<string,int>("elapsed", 0));
|
||||||
|
intTokens.insert(pair<string,int>("startsin", (event->StartTime() - now)/60));
|
||||||
}
|
}
|
||||||
intTokens.insert(pair<string,int>("duration", event->Duration() / 60));
|
intTokens.insert(pair<string,int>("duration", event->Duration() / 60));
|
||||||
intTokens.insert(pair<string,int>("durationhours", event->Duration() / 3600));
|
intTokens.insert(pair<string,int>("durationhours", event->Duration() / 3600));
|
||||||
|
Loading…
Reference in New Issue
Block a user