How to make ananalog clock in the skin
Re: How to make ananalog clock in the skin #21
Re: How to make ananalog clock in the skin #22
Posted 15 December 2012 - 16:09
and to which of attached skins you're referring now?
1. in your first attachment, in skin.xml there were analog clock widgets in infobar screens (but with incorrect path to the clock-face, after fixing the path, everything should be ok)
2. in your second attachment there are no widgets for analog clock in infobar screens, so no wonder it does not appear... /?/
for me it's pretty clear without testing, but of course there is a chance I misunderstood something...
Re: How to make ananalog clock in the skin #24
Posted 15 December 2012 - 16:54
at the first glance it looks that analog clock should be displayed in infobar /?/
//you're sure you're not confusing versions of you skin?
Re: How to make ananalog clock in the skin #25
Posted 15 December 2012 - 18:29
Change this in Watches.py:
def draw_line(self, x0, y0, x1, y1): self.instance.drawLine(x0, y0, x1, y1, self.fColor)
Re: How to make ananalog clock in the skin #26
Posted 15 December 2012 - 23:12
but after applying this change, clock hands are drawed, but they're all black (hence barely visible unless you have white clock-face )
//and yes, I got here home-made e2 with ecanvas changes included...
Edited by blzr, 15 December 2012 - 23:14.
Re: How to make ananalog clock in the skin #27
Posted 16 December 2012 - 09:46
not sure if I understood correctly (possibly not, I've truncated all 'draw_line' code to just two above lines/?/)
Yes, that was the idea.
but after applying this change, clock hands are drawed, but they're all black (hence barely visible unless you have white clock-face
Hmm, maybe still something missing in the line draw code then. Probably this is the first time it was ever used...
Re: How to make ananalog clock in the skin #28
Posted 16 December 2012 - 10:03
<screen backgroundColor="transparent" flags="wfNoBorder" name="InfoBar" position="center,510" size="1280,400" title="InfoBar"> <ePixmap alphatest="off" pixmap="Magic-HD-Common/infobar/hd.png" position="0,0" size="1282,220" zPosition="-1" /> <widget alphatest="blend" backgroundColor="secondBG" position="23,76" render="Picon" size="100,60" source="session.CurrentService" transparent="1" zPosition="1"> <convert type="ServiceName">Reference</convert> </widget> <widget backgroundColor="secondBG" font="prive3; 14" halign="left" noWrap="1" position="305,55" render="Label" size="500,17" source="session.CurrentService" transparent="1"> <convert type="ServiceName">Provider</convert> </widget> <widget backgroundColor="secondBG" font="prive3; 28" foregroundColor="foreground" halign="left" position="220,75" render="ChannelNumber" size="80,36" source="session.CurrentService" transparent="1" valign="center" zPosition="1" /> <widget backgroundColor="secondBG" font="prive3; 28" halign="left" position="305,75" render="Label" size="500,36" source="session.CurrentService" transparent="1" valign="center" zPosition="1"> <convert type="ServiceName">Name</convert> </widget> <widget backgroundColor="secondBG" font="Regular; 24" foregroundColor="yellow" halign="center" noWrap="1" position="14,152" render="Label" size="120,30" source="global.CurrentTime" transparent="1" valign="center" zPosition="1"> <convert type="ClockToText">ShortDate</convert> </widget> <widget backgroundColor="secondBG" font="prive3; 14" foregroundColor="selectedFG" halign="right" position="305,191" render="Label" size="620,18" source="session.CurrentService" transparent="1" zPosition="1"> <convert type="CryptoInfo">VerboseInfo</convert> </widget> <widget backgroundColor="secondBG" font="Regular;25" foregroundColor="green" halign="left" position="220,130" render="Label" size="80,30" source="session.Event_Now" transparent="1" zPosition="1"> <convert type="EventTime">StartTime</convert> <convert type="ClockToText">Default</convert> </widget> <widget backgroundColor="secondBG" font="prive3;25" foregroundColor="green" halign="left" noWrap="1" position="305,130" render="Label" size="620,30" source="session.Event_Now" transparent="1" zPosition="1"> <convert type="EventName">Name</convert> </widget> <widget backgroundColor="secondBG" font="Regular; 24" foregroundColor="orange" halign="right" position="940,130" render="Label" size="120,30" source="session.Event_Now" transparent="1" zPosition="1"> <convert type="EventTime">Remaining</convert> <convert type="RemainingToText">InMinutes</convert> </widget> <widget backgroundColor="secondBG" font="Regular;26" foregroundColor="yellow" halign="left" position="220,162" render="Label" size="80,30" source="session.Event_Next" transparent="1" zPosition="1"> <convert type="EventTime">StartTime</convert> <convert type="ClockToText">Default</convert> </widget> <widget backgroundColor="secondBG" font="prive3; 25" halign="left" noWrap="1" position="305,162" render="Label" size="620,30" source="session.Event_Next" transparent="1" zPosition="1"> <convert type="EventName">Name</convert> </widget> <widget backgroundColor="secondBG" font="Regular; 24" foregroundColor="listbox" halign="right" position="940,162" render="Label" size="120,30" source="session.Event_Next" transparent="1" zPosition="1"> <convert type="EventTime">Duration</convert> <convert type="ClockToText">InMinutes</convert> </widget> <widget backgroundColor="un33333a" borderWidth="0" pixmap="Magic-HD-Common/infobar/pbar.png" position="center,115" render="Progress" size="840,8" source="session.Event_Now" transparent="0" zPosition="2"> <convert type="EventTime">Progress</convert> </widget> <widget backgroundColor="secondBG" font="Regular;18" foregroundColor="orange" halign="center" position="1098,110" render="Label" size="50,20" source="session.CurrentService" transparent="1"> <convert type="ServiceInfo">VideoWidth</convert> </widget> <eLabel backgroundColor="secondBG" font="Regular;16" foregroundColor="red" halign="center" position="1148,110" size="15,20" text="x" transparent="1" /> <widget backgroundColor="secondBG" font="Regular;18" foregroundColor="orange" halign="center" position="1163,110" render="Label" size="50,20" source="session.CurrentService" transparent="1"> <convert type="ServiceInfo">VideoHeight</convert> </widget> <widget alphatest="on" pixmap="Magic-HD-Common/infobar/ico_dolby_on.png" position="905,76" render="Pixmap" size="60,24" source="session.CurrentService" zPosition="2"> <convert type="ServiceInfo">IsMultichannel</convert> <convert type="ConditionalShowHide" /> </widget> <ePixmap alphatest="on" pixmap="Magic-HD-Common/infobar/ico_format_off.png" position="1020,78" size="46,21" zPosition="1" /> <widget alphatest="on" pixmap="Magic-HD-Common/infobar/ico_format_on.png" position="1020,78" render="Pixmap" size="46,21" source="session.CurrentService" zPosition="2"> <convert type="ServiceInfo">IsWidescreen</convert> <convert type="ConditionalShowHide" /> </widget> <widget alphatest="on" pixmap="Magic-HD-Common/infobar/ico_hd_on.png" position="1020,78" render="Pixmap" size="46,21" source="session.CurrentService" zPosition="4"> <convert type="ServiceInfo">VideoWidth</convert> <convert type="ValueRange">800,2000</convert> <convert type="ConditionalShowHide" /> </widget> <widget alphatest="on" pixmap="Magic-HD-Common/infobar/ico_txt_on.png" position="973,76" render="Pixmap" size="40,24" source="session.CurrentService" zPosition="2"> <convert type="ServiceInfo">HasTelext</convert> <convert type="ConditionalShowHide" /> </widget> <widget alphatest="on" pixmap="Magic-HD-Common/infobar/ico_crypt_on.png" position="855,76" render="Pixmap" size="40,21" source="session.CurrentService" zPosition="2"> <convert type="ServiceInfo">IsCrypted</convert> <convert type="ConditionalShowHide" /> </widget> <widget alphatest="on" pixmap="Magic-HD-Common/infobar/ico_sub_on.png" position="812,76" render="Pixmap" size="36,24" source="session.CurrentService" zPosition="2"> <convert type="ServiceInfo">SubservicesAvailable</convert> <convert type="ConditionalShowHide" /> </widget> <widget alphatest="on" pixmap="Magic-HD-Common/buttons/rec.png" position="1216,80" render="Pixmap" size="20,20" source="session.RecordState" zPosition="3"> <convert type="ConditionalShowHide">Blink</convert> </widget> <widget borderColor="background" borderWidth="2" pixmap="Magic-HD-Common/infobar/bar2.png" position="1085,136" render="Progress" size="150,20" source="session.FrontendStatus"> <convert type="FrontendInfo">SNR</convert> </widget> <widget backgroundColor="secondBG" font="Regular;20" foregroundColor="orange" position="1100,80" render="FixedLabel" size="20,20" source="session.TunerInfo" text="A" transparent="1" zPosition="2"> <convert type="TunerInfo">TunerUseMask</convert> <convert type="ValueBitTest">1</convert> <convert type="ConditionalShowHide" /> </widget> <widget backgroundColor="secondBG" font="Regular;20" foregroundColor="orange" position="1130,80" render="FixedLabel" size="20,20" source="session.TunerInfo" text="B" transparent="1" zPosition="2"> <convert type="TunerInfo">TunerUseMask</convert> <convert type="ValueBitTest">2</convert> <convert type="ConditionalShowHide" /> </widget> <widget backgroundColor="secondBG" font="Regular;20" foregroundColor="orange" position="1160,80" render="FixedLabel" size="20,20" source="session.TunerInfo" text="C" transparent="1" zPosition="2"> <convert type="TunerInfo">TunerUseMask</convert> <convert type="ValueBitTest">4</convert> <convert type="ConditionalShowHide" /> </widget> <widget backgroundColor="secondBG" font="Regular;20" foregroundColor="orange" position="1190,80" render="FixedLabel" size="20,20" source="session.TunerInfo" text="D" transparent="1" zPosition="2"> <convert type="TunerInfo">TunerUseMask</convert> <convert type="ValueBitTest">8</convert> <convert type="ConditionalShowHide" /> </widget> <widget alphatest="on" pixmap="Magic-HD-Common/infobar/ico_hd_on.png" position="1020,78" render="Pixmap" size="46,21" source="session.CurrentService" zPosition="4"> <convert type="ServiceInfo">VideoWidth</convert> <convert type="ValueRange">800,2000</convert> <convert type="ConditionalShowHide" /> </widget> <widget backgroundColor="secondBG" font="Regular;20" foregroundColor="green" halign="left" position="1100,80" render="FixedLabel" size="20,20" source="session.FrontendInfo" text="A" transparent="1" zPosition="3"> <convert type="FrontendInfo">NUMBER</convert> <convert type="ValueRange">0,0</convert> <convert type="ConditionalShowHide" /> </widget> <widget backgroundColor="secondBG" font="Regular;20" foregroundColor="listbox" halign="left" position="1130,80" render="FixedLabel" size="20,20" source="session.FrontendInfo" text="B" transparent="1" zPosition="3"> <convert type="FrontendInfo">NUMBER</convert> <convert type="ValueRange">1,1</convert> <convert type="ConditionalShowHide" /> </widget> <widget backgroundColor="secondBG" font="Regular;20" foregroundColor="yellow" halign="left" position="1160,80" render="FixedLabel" size="20,20" source="session.FrontendInfo" text="C" transparent="1" zPosition="3"> <convert type="FrontendInfo">NUMBER</convert> <convert type="ValueRange">2,2</convert> <convert type="ConditionalShowHide" /> </widget> <widget backgroundColor="secondBG" font="Regular;20" foregroundColor="red" halign="left" position="1190,80" render="FixedLabel" size="20,20" source="session.FrontendInfo" text="D" transparent="1" zPosition="3"> <convert type="FrontendInfo">NUMBER</convert> <convert type="ValueRange">3,3</convert> <convert type="ConditionalShowHide" /> </widget> <widget backgroundColor="secondBG" font="Regular;19" foregroundColor="green" position="1078,162" render="Label" size="100,25" source="session.CurrentService" text="DVB-S" transparent="1" zPosition="1" halign="center"> <convert type="ServiceOrbitalPosition"> </convert> </widget> <widget backgroundColor="transpBlack" font="Regular; 18" foregroundColor="red" halign="center" position="1178,162" render="Label" size="80,25" source="session.FrontendStatus" transparent="1"> <convert type="FrontendInfo">SNR</convert> </widget> <ePixmap pixmap="Magic-HD-Common/infobar/clock_b.png" position="150,133" zPosition="1" size="62,60" alphatest="on" /> <widget source="global.CurrentTime" render="Watches" position="151,132" size="62,60" zPosition="2" alphatest="on" foregroundColor="red"> <convert type="ExtraNumText">secHand</convert> </widget> <widget source="global.CurrentTime" render="Watches" position="151,132" size="62,60" zPosition="4" foregroundColor="white" alphatest="on"> <convert type="ExtraNumText">minHand</convert> </widget> <widget source="global.CurrentTime" render="Watches" position="163,142" size="40,40" zPosition="3" foregroundColor="white" alphatest="on"> <convert type="ExtraNumText">hourHand</convert> </widget> </screen>
This is my entire infobar, this way the clock displayed but without the .PNG background, screenshot.jpg 106.28KB 66 downloadsWhats wrong?
Re: How to make ananalog clock in the skin #29
Re: How to make ananalog clock in the skin #30
Posted 16 December 2012 - 10:43
Thans BLZR for all
Edited by Loui (PD1LOI), 16 December 2012 - 10:44.
Re: How to make ananalog clock in the skin #31
Posted 16 December 2012 - 11:42
But for my taste your skin contains too much color. I can imagine that you like it very much this way but all those different colors on one screen are somehow distracting me from
the info.
@Camping: ZGemma H.2S, Technisat Multytenne 4-in-1 @Home: Edision Mini 4K, Wave Frontier T55, EMP Centauri EMP DiSEqC 8/1 switch, 4x Inverto Ultra Black single LNB
Re: How to make ananalog clock in the skin #32
Posted 16 December 2012 - 13:25
Edited by Loui (PD1LOI), 16 December 2012 - 13:29.
Re: How to make ananalog clock in the skin #33
Re: How to make ananalog clock in the skin #35
Re: How to make ananalog clock in the skin #36
Posted 17 December 2012 - 11:14
Re: How to make ananalog clock in the skin #37
Re: How to make ananalog clock in the skin #38
Posted 17 December 2012 - 16:38
Mijn schotel is een T90 met 10 LNB's. Daarnaast voor de fun nog een draaibaar systeem met een Triax TD 78.
Dreamboxen heb ik niet meer echt actief. Verder heb ik ook nog een een VU+ duo2 met 500Gb harddisk + een VU+ Uno, Zero, Solo 4K, Ultimo 4K, Zero 4K, Uno 4Kse. + ook nog een Xtrend ET7x00. Daarnaast heb ik ook nog diverse andere modellen w.o. een Formuler F4, ET8500, ET7500, Mut@nt 2400HD, Xsarius Fusion HD se en verder nog wel het e.e.a. waarmee op verzoek vanalles wordt getest. Iemand moet het tenslotte doen.
Los van de eerder genoemde modellen heb ik nog wel een rits aan testsamples als Mut@nt 2400HD, HD60, GB UE4K, GB Trio4K, Maxitec Multibox combo en Twin, Octagon sf8008, sf8008 mini en last but nog least enkele modellen van het Grieks Duitse Edision.
Voor centrale opslag van media gebruik ik een Qnap 219P met tweemaal 2 Tb harddisks + een Synology DS414 met 12 Tb Totale opslag.
-------------------------------------------------------------------------------------------
Many answers to your question can be found in our wiki: Just one click away from this "solutioncentre".
Als ik alles al wist hoefde ik ook niets te vragen. If I had all the knowledge I had no questions at all.
Re: How to make ananalog clock in the skin #39
Re: How to make ananalog clock in the skin #40
Posted 17 December 2012 - 21:17
screenshot.jpg 43.4KB 47 downloads Look with colors red secondeIs that clock being rendered with the new lineDraw? Or does that still only draw black lines?
Here the code
</widget>
<ePixmap alphatest="on" pixmap="Magic-HD-Common/logos/pli.png" position="25,650" size="300,25" />
<ePixmap pixmap="Magic-HD-Common/infobar/clock_b1.png" position="165,407" zPosition="1" size="150,150" alphatest="on" />
<widget source="global.CurrentTime" render="Watches" position="171,413" size="137,137" zPosition="2" alphatest="on" foregroundColor="red">
<convert type="ExtraNumText">secHand</convert>
</widget>
<widget source="global.CurrentTime" render="Watches" position="171,413" size="137,137" zPosition="4" foregroundColor="white" alphatest="on">
<convert type="ExtraNumText">minHand</convert>
</widget>
<widget source="global.CurrentTime" render="Watches" position="193,434" size="95,95" zPosition="3" foregroundColor="white" alphatest="on">
<convert type="ExtraNumText">hourHand</convert>
</widget>
</screen>
Magic-HD-Common.rar 1.94MB 12 downloadsAnt here the pictures.
4 user(s) are reading this topic
0 members, 4 guests, 0 anonymous users