Help - Search - Members - Calendar
Full Version: Help With Reflection On A Variable Image
Scenyx Entertainment Community > Xbox1 Forums > Software Forums > XBMC for Xbox Forums > XBMC Skinning > (XBMC) Skin Development
rockdawg
I am trying to figure out some things about skinning XBMC and I have managed to make a few relatively minor mods to xTV. I was checking out MacGyver's carousel home menu and love the idea of a dynamic weather image. I've managed to get the main image to be dynamic, but I can't seem to figure out how to get the reflection to do the same. Here is my current code:

CODE
<control type="image">
    <description>Weather Image</description>
    <posx>-400</posx>
    <posy>145</posy>
    <width>175</width>
    <height>230</height>
    <info>Weather.Conditions</info>
    <aspectratio>-</aspectratio>
    <visible>Control.HasFocus(11)</visible>
    <animation effect="slide" start="540,0" end="0,100" time="100" condition="Control.HasFocus(11)">Visible</animation>
</control>
<control type="image">
    <description>Weather Image Reflection</description>
    <posx>-400</posx>
    <posy>375</posy>
    <width>175</width>
    <height>230</height>
    <texture flipy="true" diffuse="fade.png">-</texture>
    <aspectratio>-</aspectratio>
    <visible>Control.HasFocus(11)</visible>
    <animation effect="slide" start="540,0" end="0,100" time="100" condition="Control.HasFocus(11)">Visible</animation>
</control>


Since the dynamic weather icon is called from the <info> tag and the reflection uses texture attributes, how do I get the dynamic image in there? It looked like MacGyver's code just used the dash instead oif a filename, but I still get the old reflection. Can anyone help?
Jezz_X
Add this line to the lower image
<info>Weather.Conditions</info>
and don't remove
<texture flipy="true" diffuse="fade.png">-</texture>

P.S I recently changed how xTV home works so it may not work to well in the new way
rockdawg
QUOTE(Jezz_X @ Aug 21 2007, 08:52 PM) *

Add this line to the lower image
<info>Weather.Conditions</info>
and don't remove
<texture flipy="true" diffuse="fade.png">-</texture>

P.S I recently changed how xTV home works so it may not work to well in the new way



Thanks a lot! Now that I see it I feel stupid? Duh!

What about blurring the image? xTV has three images for each button. One is normal and the other two are blurred to varying degrees as the image moves further out of focus. How can I achieve that with this dynamic image?
CHI3f
As far as I know you can't. sad.gif
rockdawg
That's too bad, because it's really noticable on a HDTV. I know I could remove the the blur from the other xTV images, but I'm not sure that will look as good. I suppose if there was a way to do it you'd already be doing it. Not sure what I'll do now.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.