Skip to content

Commit

Permalink
replace ArrayRecordings with ListRecordings
Browse files Browse the repository at this point in the history
  • Loading branch information
pbiering committed Feb 5, 2021
1 parent 5578845 commit 00b28c5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions HISTORY
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ VDR Plugin 'graphlcd' Revision History
-------------------------------------

2021-02-04:
- [pbiering] add support for new feature: NumRecordings and ArrayRecordings
- [pbiering] extend reelbox.skin for using NumRecordings and ArrayRecordings (up to 3)
- [pbiering] add support for new feature: NumRecordings and ListRecordings
- [pbiering] extend reelbox.skin for using NumRecordings and ListRecordings (up to 3)
- [pbiering] fix Wformat-truncation Wliteral-suffix. log levels

2021-01-24: Version 1.0.3
Expand Down
6 changes: 3 additions & 3 deletions graphlcd/skins/reelbox/reelbox.skin
Original file line number Diff line number Diff line change
Expand Up @@ -267,17 +267,17 @@

<block condition="ge({NumRecordings},1)">
<image x="0" y="#FollowingTitleY" color="#ColSymbol" path="#SymbolRecording"/>
<text x1="add(#SymbolW,2)" x2="-1" y="add(#FollowingTitleY,1)" height="FontLineHeight('FontInfoSmall2')" color="#ColRecText" align="left" font="FontInfoSmall2">{ArrayRecordings:1}</text>
<text x1="add(#SymbolW,2)" x2="-1" y="add(#FollowingTitleY,1)" height="FontLineHeight('FontInfoSmall2')" color="#ColRecText" align="left" font="FontInfoSmall2">{ListRecordings:1}</text>
</block>

<block condition="ge({NumRecordings},2)">
<image x="0" y="add(#FollowingTitleY,FontLineHeight('FontInfoSmall2'),1)" color="#ColSymbol" path="#SymbolRecording"/>
<text x1="add(#SymbolW,2)" x2="-1" y="add(#FollowingTitleY,FontLineHeight('FontInfoSmall2'),2)" height="FontLineHeight('FontInfoSmall2')" color="#ColRecText" align="left" font="FontInfoSmall2">{ArrayRecordings:2}</text>
<text x1="add(#SymbolW,2)" x2="-1" y="add(#FollowingTitleY,FontLineHeight('FontInfoSmall2'),2)" height="FontLineHeight('FontInfoSmall2')" color="#ColRecText" align="left" font="FontInfoSmall2">{ListRecordings:2}</text>
</block>

<block condition="ge({NumRecordings},3)">
<image x="0" y="add(#FollowingTitleY,mul(FontLineHeight('FontInfoSmall2'),2),2)" color="#ColSymbol" path="#SymbolRecording"/>
<text x1="add(#SymbolW,2)" x2="-1" y="add(#FollowingTitleY,mul(FontLineHeight('FontInfoSmall2'),2),3)" height="FontLineHeight('FontInfoSmall2')" color="#ColRecText" align="left" font="FontInfoSmall2">{ArrayRecordings:3}</text>
<text x1="add(#SymbolW,2)" x2="-1" y="add(#FollowingTitleY,mul(FontLineHeight('FontInfoSmall2'),2),3)" height="FontLineHeight('FontInfoSmall2')" color="#ColRecText" align="left" font="FontInfoSmall2">{ListRecordings:3}</text>
</block>
</display>

Expand Down
6 changes: 3 additions & 3 deletions skinconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ typedef enum _eTokenId
tokPrivateRecordingStart,
tokIsRecording,
tokRecordings,
tokArrayRecordings,
tokListRecordings,
tokNumRecordings,
tokPrivateRecordingEnd,

Expand Down Expand Up @@ -211,7 +211,7 @@ static const std::string Tokens[tokCountToken] =
"privateRecordingStart",
"IsRecording",
"Recordings",
"ArrayRecordings",
"ListRecordings",
"NumRecordings",
"privateRecordingEnd",

Expand Down Expand Up @@ -479,7 +479,7 @@ GLCD::cType cGraphLCDSkinConfig::GetToken(const GLCD::tSkinToken & Token)
return mState->Recordings(Token.Attrib.Number, 0);
return mState->Recordings(-1, 0);
}
case tokArrayRecordings:
case tokListRecordings:
{
if (Token.Attrib.Type == GLCD::aNumber)
return mState->Recordings(-1, Token.Attrib.Number);
Expand Down

0 comments on commit 00b28c5

Please sign in to comment.