Jump to content


Photo

How to show text until a condition is met?


  • Please log in to reply
2 replies to this topic

#1 Nabukodonosor

  • Senior Member
  • 27 posts

0
Neutral

Posted 11 April 2021 - 21:56

Hey guys. So, I have these widgets, all in the same position, they show some text from oscam, not that important. It's in my infobar screen. Here's the code for it:

 

<widget source="session.CurrentService" render="FixedLabel" text="Network" position="650,160" size="390,30" halign="center" font="SpecialElite;28" zPosition="5" transparent="1" foregroundColor="#DC143C" backgroundColor="#10161616">
      <convert type="GlamourAccess">Net</convert>
  <convert type="ConditionalShowHide" />
    </widget>
<widget source="session.CurrentService" render="FixedLabel" text="Emulator" position="650,160" size="390,30" halign="center" font="SpecialElite;28" zPosition="4"  transparent="1" foregroundColor="#8FBC8F" backgroundColor="#10161616">
      <convert type="GlamourAccess">Emu</convert>
  <convert type="ConditionalShowHide" />
    </widget>
<widget source="session.CurrentService" render="FixedLabel" text="Card" position="650,160" size="390,30" halign="center" font="SpecialElite;28" zPosition="3"  transparent="1" foregroundColor="#6495ED" backgroundColor="#10161616">
      <convert type="GlamourAccess">Crd</convert>
  <convert type="ConditionalShowHide" />
    </widget>
<widget source="session.CurrentService" render="FixedLabel" text="Cache" position="650,160" size="390,30" halign="center" font="SpecialElite;28" zPosition="2"  transparent="1" foregroundColor="#006400" backgroundColor="#10161616">
      <convert type="GlamourAccess">Cache</convert>
  <convert type="ConditionalShowHide" />
    </widget>
<widget source="session.CurrentService" render="FixedLabel" text="Free To Air" position="650,160" size="390,30" halign="center" font="SpecialElite;28" zPosition="1"  transparent="1" foregroundColor="#F0F8FF" backgroundColor="#10161616">
      <convert type="GlamourAccess">Fta</convert>
  <convert type="ConditionalShowHide" />
    </widget>

 

How can I show some text, something like "Waiting for information..." in the same position, UNTIL that condition above is true, and that "Network" text shows up?


Edited by Nabukodonosor, 11 April 2021 - 21:57.


Re: How to show text until a condition is met? #2 littlesat

  • PLi® Core member
  • 57,183 posts

+699
Excellent

Posted 12 April 2021 - 07:05

I would say change the python code in the renderers/converters from that skin and use a text source wizards instead and remove the conditional show hide from the skin xml code. Actually how this is made in the first place with static text and show/hide is not an optimal solution at all.... (it is helpfull when you want to show png instead of text)
Another but more dirty method is first write waiting for info and then put the wizard with text label above it.

Note that I hate skins that add python code as this can/will break some time.... better ask the ‘image’ to add wishes in the standard code ;)

Edited by littlesat, 12 April 2021 - 07:09.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: How to show text until a condition is met? #3 Nabukodonosor

  • Senior Member
  • 27 posts

0
Neutral

Posted 12 April 2021 - 11:02

Another but more dirty method is first write waiting for info and then put the wizard with text label above it.

 

Can you show me how to do that? I tried something like that but the text stays there forever.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users