Show object if condition is not true

There are 2 replies in this Thread which was already clicked 805 times. The last Post () by daimler.

  • Is there any way how to show certain picon or label if condition in NOT TRUE?


    For instance:

    I want to show picon of stereo audio (not multichannel).


    To ask if it IS multichannel I can use:


    <convert type="ServiceInfo">IsMultichannel</convert>


    How to ask if it is NOT multichannel?


    I tried this but it doesn´t work:


    <convert type="ServiceInfo">IsMultichannel</convert>

    <convert type="ValueBitTest">0</convert>

    <convert type="ConditionalShowHide"/>



    Amiko Viper 4K, PurE2

    Vu+ Zero 4K, PurE2

  • <convert type="ConditionalShowHide">Invert</convert>


    There is actual a command for stereo in serviceinfo. IsStereo. But pretty much everything is stereo at least nowadays. So I assume you just want to show an icon switch between mutlichannel and stereo.

    In some of my skins I have used a conditional to switch between 2 icons using the same converter.

    For example

    Code
    <widget pixmap="myicons/locked.png" render="Pixmap" source="session.CurrentService" position="1490,860" size="20,24" alphatest="blend" zPosition="5">
      <convert type="ServiceInfo">IsCrypted</convert>
      <convert type="ConditionalShowHide" />
    </widget>
    
    <widget pixmap="myicons/unlocked.png" render="Pixmap" source="session.CurrentService" position="1490,860" size="20,24" alphatest="blend" zPosition="5">
      <convert type="ServiceInfo">IsCrypted</convert>
      <convert type="ConditionalShowHide">Invert</convert>
    </widget>

    ** A person who feels appreciated will always do more than what is expected **

Your resource for Enigma2 skins and GUI customization

Download custom themes, get installation support, and find tools to modify your receiver's display. Customize your Enigma2 GUI. Discover and download custom skins, with dedicated support for installation and visual personalization.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!