Need help modding PM3 for Conditional Weather FanArt?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Spongy Offline
Junior Member
Posts: 5
Joined: Feb 2008
Reputation: 0
Question  Need help modding PM3 for Conditional Weather FanArt? Post: #1
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: round.jpg]

Instead it looks like this.
[Image: square.jpg]

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: NoInfo.jpg]

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.
find quote
Jezz_X Offline
Team-XBMC Skinner
Posts: 5,264
Joined: Jun 2006
Reputation: 55
Location: Earth
Post: #2
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>

Skins I have done....
[Image: skinsq.png]
And others in the past...

Want to know what I'm working on currently? Check me out on Google+
find quote
Spongy Offline
Junior Member
Posts: 5
Joined: Feb 2008
Reputation: 0
Post: #3
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?
(This post was last modified: 2009-05-31 22:42 by Spongy.)
find quote
Jezz_X Offline
Team-XBMC Skinner
Posts: 5,264
Joined: Jun 2006
Reputation: 55
Location: Earth
Post: #4
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

Skins I have done....
[Image: skinsq.png]
And others in the past...

Want to know what I'm working on currently? Check me out on Google+
find quote
Nuka1195 Online
Skilled Python Coder
Posts: 3,917
Joined: Dec 2004
Reputation: 17
Post: #5
update twc script to 1.5.6

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
Spongy Offline
Junior Member
Posts: 5
Joined: Feb 2008
Reputation: 0
Post: #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
find quote
ekim232 Offline
Posting Freak
Posts: 1,204
Joined: Nov 2008
Reputation: 5
Location: Chicago, IL
Post: #7
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.
find quote
Jezz_X Offline
Team-XBMC Skinner
Posts: 5,264
Joined: Jun 2006
Reputation: 55
Location: Earth
Post: #8
you need to make an image thats exactly the size you need to fit the panel and use it as the diffuse

Skins I have done....
[Image: skinsq.png]
And others in the past...

Want to know what I'm working on currently? Check me out on Google+
find quote
ekim232 Offline
Posting Freak
Posts: 1,204
Joined: Nov 2008
Reputation: 5
Location: Chicago, IL
Post: #9
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.
find quote