Kodi Community Forum

Full Version: Need help modding PM3 for Conditional Weather FanArt?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Question #1

I added weather conditional fanart, but I can't figure out how to get the bottom left corner rounded, like in this image.

Image

Instead it looks like this.
Image

Here is the control I added.
Code:
            <control type="multiimage">
                <description>conditional fanart</description>
                <posx>202</posx>
                <posy>111</posy>
                <width>800</width>
                <height>450</height>
                <visible>ControlGroup(9000).HasFocus(2)</visible>
                <imagepath>E:/images/fanart/weather/$INFO[Weather.FanartCode]</imagepath>
                <timeperimage>5000</timeperimage>
                <fadetime>2000</fadetime>
                <loop>yes</loop>
                <aspectratio>stretch</aspectratio>
                <include>contentpanelslide</include>
            </control>

Here is the entire weather.xml http://pastebin.com/m7fee12bf

Can anyone help me figure this out?


Question #2

I added a "more" button that launches the TWC script, but when I exit the script all the weather info is missing.
Image

Is there some way to force the weather window to refresh?
Or keep some focus in the background so it doesn't lose the info?

Thanks in advance for any help.
For the fanart the bits in bold are the ones that make it curved this is the image from the Custom Background bit
Quote:<control type="image" id="0">
<description>contentpanel slice Custom background</description>
<posx>180</posx>
<posy>88</posy>
<width>540</width>
<height>449</height>
<aspectratio scalediffuse="false">scale</aspectratio>
<texture diffuse="Content_Panel_Diffuse.png" />

<info>Skin.String(Custom_Background)</info>
<include>contentpanelslide</include>
<visible>Skin.HasSetting(Use_Custom_Background)</visible>
<visible>![!IsEmpty(Fanart.Image) + Skin.HasSetting(ShowFanart)]</visible>
</control>
Thanks for the help Jezz.
I messed around with that a bit yesterday and it didn't seem to make a difference. I tried again now and I still can't get it to work. This is the control I added.
Code:
<control type="multiimage">
    <description>conditional fanart</description>
    <posx>180</posx>
    <posy>88</posy>
    <width>540</width>
    <height>449</height>
    <aspectratio scalediffuse="false">scale</aspectratio>
    <texture diffuse="Content_Panel_Diffuse.png" />
    <visible>yes</visible>
    <imagepath>E:/images/fanart/weather/$INFO[Weather.FanartCode]</imagepath>
    <timeperimage>5000</timeperimage>
    <fadetime>2000</fadetime>
    <loop>yes</loop>
    <include>contentpanelslide</include>
</control>

I put the control in place of <include>contentpanel</include>.

Is that the correct place for it?
Should I leave <include>contentpanel</include> in there?

My current MyWeather.xml Pastbin
Any help appreciated.

EditTongue.S. Where in myweather.xml is the code for custom backgrounds?
Turns out multiimage doesn't like the scalediffuse="false" stuff, like the image controls do. Sso you will have to set aspectratio to stretch like this

Code:
<control type="multiimage">
    <description>conditional fanart</description>
    <posx>180</posx>
    <posy>88</posy>
    <width>540</width>
    <height>449</height>
    <aspectratio>stretch</aspectratio>
    <imagepath diffuse="Content_Panel_Diffuse.png">special://Home/weather_fanart/$INFO[Weather.FanartCode]</imagepath>
    <timeperimage>5000</timeperimage>
    <fadetime>2000</fadetime>
    <loop>yes</loop>
    <include>contentpanelslide</include>
</control>

These are the 2 lines you really need
<aspectratio>stretch</aspectratio>
<imagepath diffuse="Content_Panel_Diffuse.png">special://Home/weather_fanart/$INFO[Weather.FanartCode]</imagepath>


PS leave <include>contentpanel</include> in and put the control under it
update twc script to 1.5.6
Thanks a lot Jezz, that worked like a charm.


Thanks for the twc update Nuka. I noticed yesterday that when I play the video in the 36 hour forecast, the video launches in the background, so the script must be exited in order to watch. Was this intentional.

Thanks again
Is this possible in PM3.HD?

I am not aware of a diffuse file that will make an image fit to the more straight corners of PM3.HD. Any suggestions on how to get an image to overlay like this? I would like to use it in settings if it is possible.
you need to make an image thats exactly the size you need to fit the panel and use it as the diffuse
Jezz_X Wrote:you need to make an image thats exactly the size you need to fit the panel and use it as the diffuse

Thats where I fall short unfortunately. My image skills are not good at all.

I know it is a lot to ask, but if you could make a diffuse for PM3.HD that would be amazing. Or even if anyone knows of a quick way to explain it, I would love to learn for myself.