Thanks Thanks:  0
Ergebnis 1 bis 2 von 2
  1. #1

    Registriert seit
    17.06.2016
    Beiträge
    362
    Thanks (gegeben)
    85
    Thanks (bekommen)
    222
    Total Downloaded
    0
    Total Downloaded
    0
    ReceiverDanke

    Skin code question

    Hello everyone, I don't know if I'm on the right part of the forum, but since the question is skin related I found it better to post it here, hoping you can help me!

    I'm coding a new skin and I want to use the tuners string code to display the available receiver tuners in the infobar. So far the only code that does this is this one
    Code:
        <widget source="session.FrontendInfo" render="Label" position="500,600" size="100,20" zPosition="2" backgroundColor="black" transparent="1" font="Regular; 20" foregroundColor="white">
          <convert type="FrontendInfo">STRING</convert>
        </widget>
    This code however can only display the string as TEXT. I want to display the available tuners as separate conditional pixmaps. Watching the FrontentInfo python code, I see that there is a SLOT_NUMBER entry.
    So what I do in my skin code is something like this
    Code:
        <widget source="session.FrontendInfo" render="Pixmap" pixmap="GlamourAuraHD/icons/infobar/tuner_a_un.png" position="670,665" size="20,20" zPosition="1" alphatest="blend">
          <convert type="FrontendInfo">SLOT_NUMBER</convert>
          <convert type="ValueRange">0,0</convert>
          <convert type="ConditionalShowHide" />
        </widget>
    with this I hoped that the available tuners would be displayed only when they are available. However this code displays the tuner only when it's used and not when it's available but not used, essentially it's the same with the NUMBER entry. I don't know what to put in the Valuerange or anything else to make it happen.
    Does anyone have an idea how to display this info, but not as a text string?
    Thank you so much in advance

    •   Alt Advertising

       

  2. #2
    Mitglied
    Registriert seit
    04.09.2016
    Beiträge
    92
    Thanks (gegeben)
    17
    Thanks (bekommen)
    22
    Total Downloaded
    70,03 MB
    Total Downloaded
    70,03 MB
    ReceiverDanke
    Box 1:
    VU+ Uno 4K SE
     
     
    Box 2:
    Mutant 4K HD51
     
     
    Box 3:
    AX 4K HD51
     
     
    Box 4:
    AX 4K HD61
     
     
    Box 5:
    Mutant 4K HD51
     
     
    I put it in the same position, without pixmap !
    my Box has 2 tuners

    Code:
        <!-- TunerInfo -->
      <screen name="Tuner">
        <eLabel backgroundColor="blackgrey" position="1478,e-46" size="42,32" zPosition="-2" />
        <eLabel backgroundColor="blackgrey2" position="1479,e-45" size="40,30" zPosition="-1" />
        <eLabel backgroundColor="blackgrey" position="1480,e-44" size="38,28" zPosition="1" />
        <widget source="session.FrontendInfo" text="I" render="FixedLabel" font="Regular; 24" position="1480,e-44" size="38,28" zPosition="2" foregroundColor="white" backgroundColor="blackgrey" transparent="0" noWrap="1" alphatest="blend" valign="center" halign="center">
          <convert type="FrontendInfo">NUMBER</convert>
          <convert type="ValueRange">0,0</convert>
          <convert type="ConditionalShowHide" />
        </widget>
        <eLabel backgroundColor="blackgrey" position="1478,e-46" size="42,32" zPosition="-2" />
        <eLabel backgroundColor="blackgrey2" position="1479,e-45" size="40,30" zPosition="-1" />
        <eLabel backgroundColor="blackgrey" position="1480,e-44" size="38,28" zPosition="1" />
        <widget source="session.FrontendInfo" text="II" render="FixedLabel" font="Regular; 24" position="1480,e-44" size="38,28" zPosition="2" foregroundColor="white" backgroundColor="blackgrey" transparent="0" noWrap="1" alphatest="blend" valign="center" halign="center">
          <convert type="FrontendInfo">NUMBER</convert>
          <convert type="ValueRange">1,1</convert>
          <convert type="ConditionalShowHide" />
        </widget>
        <eLabel backgroundColor="blackgrey" position="1478,e-46" size="42,32" zPosition="-2" />
        <eLabel backgroundColor="blackgrey2" position="1479,e-45" size="40,30" zPosition="-1" />
        <eLabel backgroundColor="blackgrey" position="1480,e-44" size="38,28" zPosition="1" />
        <widget source="session.FrontendInfo" text="III" render="FixedLabel" font="Regular; 24" position="1480,e-44" size="38,28" zPosition="2" foregroundColor="white" backgroundColor="blackgrey" transparent="0" noWrap="1" alphatest="blend" valign="center" halign="center">
          <convert type="FrontendInfo">NUMBER</convert>
          <convert type="ValueRange">2,2</convert>
          <convert type="ConditionalShowHide" />
        </widget>
        <eLabel backgroundColor="blackgrey" position="1478,e-46" size="42,32" zPosition="-2" />
        <eLabel backgroundColor="blackgrey2" position="1479,e-45" size="40,30" zPosition="-1" />
        <eLabel backgroundColor="blackgrey" position="1480,e-44" size="38,28" zPosition="1" />
        <widget source="session.FrontendInfo" text="VI" render="FixedLabel" font="Regular; 24" position="1480,e-44" size="38,28" zPosition="2" foregroundColor="white" backgroundColor="blackgrey" transparent="0" noWrap="1" alphatest="blend" valign="center" halign="center">
          <convert type="FrontendInfo">NUMBER</convert>
          <convert type="ValueRange">2,2</convert>
          <convert type="ConditionalShowHide" />
        </widget>
      </screen>
    Skin code question-tuner.png


Stichworte

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •  
Alle Zeitangaben in WEZ +1. Es ist jetzt 06:25 Uhr.
Powered by vBulletin® Version 4.2.5 (Deutsch)
Copyright ©2024 Adduco Digital e.K. und vBulletin Solutions, Inc. Alle Rechte vorbehalten.
Resources saved on this page: MySQL 5,56%
Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)
vBulletin Skin By: PurevB.com