home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
C.All - enhancing LCD and themes (Official Thread)
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="xavier" data-source="post: 64703" data-attributes="member: 10592"><p><strong>Re: dvb logo</strong></p><p></p><p></p><p>If you want to show a custom bitmap with LCDStudio, you need to create a "Custom Variable".</p><p></p><p>You can go on "Data View", and you make a right click on "C.All". Next, selects "Add Custom Variable" and it creates a new Custom Variable (obvious ! :wink: ).</p><p></p><p>I suggest the values "_play.current.thumb" for the field "Key" and "C.All\_play.current.thumb" for the field "Tree Location."</p><p></p><p>In the following window you need paste this code in the field "Script":</p><p></p><p>[code]string lstrPath = "thumbs\\tv\\logos\\";</p><p></p><p>if ((String)GetData("CAll.#play.current.thumb") == lstrPath + "Rai Uno.gif")</p><p> return "1";</p><p>else if ((String)GetData("CAll.#play.current.thumb") == lstrPath + "Rai Due.gif")</p><p> return "2";</p><p>else if ((String)GetData("CAll.#play.current.thumb") == lstrPath + "Rai Tre.gif")</p><p> return "3";</p><p>else if ((String)GetData("CAll.#play.current.thumb") == lstrPath + "Rete 4.gif")</p><p> return "4";</p><p>else if ((String)GetData("CAll.#play.current.thumb") == lstrPath + "Canale 5.gif")</p><p> return "5";</p><p>else if ((String)GetData("CAll.#play.current.thumb") == lstrPath + "Italia 1.gif")</p><p> return "6";</p><p>else if ((String)GetData("CAll.#play.current.thumb") == lstrPath + "La7.gif")</p><p> return "7";</p><p>else if ((String)GetData("CAll.#play.current.thumb") == lstrPath + "MTV.gif")</p><p> return "8";</p><p>else if ((String)GetData("CAll.#play.current.thumb") == lstrPath + "SKY TG 24.gif")</p><p> return "9";</p><p>else if ((String)GetData("CAll.#play.current.thumb") == lstrPath + "SKY Meteo24")</p><p> return "10";</p><p>else</p><p> return "11";</p><p>[/code]</p><p>You can click the button "Test" to verify that the code works.</p><p></p><p>Next, you will need a GIF multiframe (also known as animated GIF) that contains, for every frame, the bitmap that desires.</p><p></p><p><img src="http://digilander.libero.it/xavierweb/images/TVLogos.JPG" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>To this point, it creates a new "Design" and you insert a new "Image." In the attributes of the specific image you set:</p><p></p><p>[code]Data item _play.current.thumb</p><p>FallOff 0 (zero)</p><p>Max the total number of frame that you have inserted</p><p>Min 0</p><p>[/code]</p><p>If you analyze the content of my script you will see that in absence of information the frame visualized is the number 11. I have preferred to create a frame everything black, in such way that when I don't have information nothing is visualized.</p><p></p><p>You increase information you find her on the forum of LCDStudio, looking for "Custom Variable."</p><p></p><p>Warning: this mechanism is not perfect yet. :? I don't know if it depends from LCDStudio or from C.All, but after two or three changes of bit-map the connection interrupts him. I think that HDWagner is very more qualified than me to explain this. 8) </p><p></p><p>Regards,</p><p>xavier.</p></blockquote><p></p>
[QUOTE="xavier, post: 64703, member: 10592"] [b]Re: dvb logo[/b] If you want to show a custom bitmap with LCDStudio, you need to create a "Custom Variable". You can go on "Data View", and you make a right click on "C.All". Next, selects "Add Custom Variable" and it creates a new Custom Variable (obvious ! :wink: ). I suggest the values "_play.current.thumb" for the field "Key" and "C.All\_play.current.thumb" for the field "Tree Location." In the following window you need paste this code in the field "Script": [code]string lstrPath = "thumbs\\tv\\logos\\"; if ((String)GetData("CAll.#play.current.thumb") == lstrPath + "Rai Uno.gif") return "1"; else if ((String)GetData("CAll.#play.current.thumb") == lstrPath + "Rai Due.gif") return "2"; else if ((String)GetData("CAll.#play.current.thumb") == lstrPath + "Rai Tre.gif") return "3"; else if ((String)GetData("CAll.#play.current.thumb") == lstrPath + "Rete 4.gif") return "4"; else if ((String)GetData("CAll.#play.current.thumb") == lstrPath + "Canale 5.gif") return "5"; else if ((String)GetData("CAll.#play.current.thumb") == lstrPath + "Italia 1.gif") return "6"; else if ((String)GetData("CAll.#play.current.thumb") == lstrPath + "La7.gif") return "7"; else if ((String)GetData("CAll.#play.current.thumb") == lstrPath + "MTV.gif") return "8"; else if ((String)GetData("CAll.#play.current.thumb") == lstrPath + "SKY TG 24.gif") return "9"; else if ((String)GetData("CAll.#play.current.thumb") == lstrPath + "SKY Meteo24") return "10"; else return "11"; [/code] You can click the button "Test" to verify that the code works. Next, you will need a GIF multiframe (also known as animated GIF) that contains, for every frame, the bitmap that desires. [img]http://digilander.libero.it/xavierweb/images/TVLogos.JPG[/img] To this point, it creates a new "Design" and you insert a new "Image." In the attributes of the specific image you set: [code]Data item _play.current.thumb FallOff 0 (zero) Max the total number of frame that you have inserted Min 0 [/code] If you analyze the content of my script you will see that in absence of information the frame visualized is the number 11. I have preferred to create a frame everything black, in such way that when I don't have information nothing is visualized. You increase information you find her on the forum of LCDStudio, looking for "Custom Variable." Warning: this mechanism is not perfect yet. :? I don't know if it depends from LCDStudio or from C.All, but after two or three changes of bit-map the connection interrupts him. I think that HDWagner is very more qualified than me to explain this. 8) Regards, xavier. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
C.All - enhancing LCD and themes (Official Thread)
Contact us
RSS
Top
Bottom