diff options
author | lordjaxom <lordjaxom> | 2005-01-23 19:55:25 +0000 |
---|---|---|
committer | lordjaxom <lordjaxom> | 2005-01-23 19:55:25 +0000 |
commit | 7d1f749223bb92fefbb53279ff856056c36cb1c2 (patch) | |
tree | 9a58fe1f9d09b55d55add0c4c4d77e18e4e33575 | |
parent | 4d668fd7e9b8cda6ecb28659de049c91b13dd5b8 (diff) | |
download | vdr-plugin-text2skin-7d1f749223bb92fefbb53279ff856056c36cb1c2.tar.gz vdr-plugin-text2skin-7d1f749223bb92fefbb53279ff856056c36cb1c2.tar.bz2 |
- implemented {MenuCurrent:n} to get explicit tabs
-rw-r--r-- | display.c | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -1,5 +1,5 @@ /* - * $Id: display.c,v 1.16 2005/01/21 23:18:34 lordjaxom Exp $ + * $Id: display.c,v 1.17 2005/01/23 19:55:25 lordjaxom Exp $ */ #include "render.h" @@ -944,10 +944,14 @@ cxType cText2SkinDisplayMenu::GetTokenData(const txToken &Token) && mCurrentItem != (uint)Token.Index; case tMenuCurrent: - if (Token.Index < 0) - return mItems.size() > mCurrentItem - ? (cxType)mItems[mCurrentItem].text - : (cxType)false; + if (Token.Index < 0) { + if (mItems.size() > mCurrentItem) + return Token.Attrib.Type == aNumber + ? (cxType)mItems[Token.Index].tabs[Token.Attrib.Number] + : (cxType)mItems[Token.Index].text; + else + return false; + } return mItems.size() > (uint)Token.Index && mItems[Token.Index].sel && mCurrentItem == (uint)Token.Index |