Jump to content


Photo

Adding Weather Control On Frontpage Of Pmiii


  • Please log in to reply
5 replies to this topic

#1 Metsada

Metsada

    X-S Member

  • Members
  • Pip
  • 77 posts

Posted 28 September 2005 - 02:56 PM

I want to add some weather control and temperature on the frontpage of PMIII, in the right upper corner. This was never a problem till i installed today a build of september 26 (ekb).

CODE

   <control>
  <description>Weather conditions</description>
  <type>image</type>
  <id>1211</id>
  <posX>536</posX>
  <posY>24</posY>
  <width>47</width>
  <height>47</height>
  <info>Weather.Conditions</info>
 <visible effect="fade" time="1000">!Player.HasAudio | ![Player.HasAudio + System.IdleTime(60)]</visible>
</control>

<control>
  <description>Weather temperature</description>
  <type>label</type>
  <id>1212</id>
  <posX>602</posX>
  <posY>35</posY>
  <info>Weather.Temperature</info>
  <font>font18</font>
  <textcolor>60ffffff</textcolor>
  <align>left</align>
 <visible effect="fade" time="1000">!Player.HasAudio | ![Player.HasAudio + System.IdleTime(60)]</visible>
</control>


This is what im using, it always worked, but now only the weather control (clouds etc) appear, the temperature is not visible.

Whats the problem?

#2 RocafellaSqualie

RocafellaSqualie

    X-S Expert

  • Members
  • PipPipPip
  • 660 posts
  • Location:Delaware, USA
  • Xbox Version:v1.6
  • 360 version:v3.0 (falcon)

Posted 28 September 2005 - 03:36 PM

Try changing the IDs to 1. I've used this ID for a while and never gave any problems. Also, you can look at mines to see if you are missing anything in between the controls.

QUOTE
<control>
<description>Weather conditions</description>
<type>image</type>
<id>1</id>
<posX>70</posX>
<posY>503</posY>
<width>45</width>
<height>49</height>
<info>Weather.Conditions</info>
<colordiffuse>98FFFFFFF</colordiffuse>
<visible effect="fade" time="1000">!Player.HasAudio | ![Player.HasAudio + System.IdleTime(60)]</visible>
</control>

<control>
<description>Weather Temperature</description>
<type>label</type>
<id>1</id>
<posX>120</posX>
<posY>503</posY>
<info>Weather.Temperature</info>
<font>special12</font>
<align>left</align>
<visible effect="fade" time="1000">!Player.HasAudio | ![Player.HasAudio + System.IdleTime(60)]</visible>
</control>

<control>
<description>Weather Location</description>
<type>label</type>
<id>1</id>
<posX>120</posX>
<posY>525</posY>
<info>Weather.Location</info>
<font>special12</font>
<align>left</align>
<visible effect="fade" time="1000">!Player.HasAudio | ![Player.HasAudio + System.IdleTime(60)]</visible>
</control>

Edited by RocafellaSqualie, 28 September 2005 - 03:38 PM.


#3 aHorseofCourse

aHorseofCourse

    X-S Young Member

  • Members
  • Pip
  • 37 posts

Posted 28 September 2005 - 11:41 PM

This way works for me (picked the tip up off the XBMC forums):
CODE

   <control>
   <description>Weather conditions</description>
   <type>image</type>
   <id>1</id>
   <posX>558</posX>
   <posY>93</posY>
   <width>45</width>
   <height>49</height>
   <info>Weather.Conditions</info>
   <colordiffuse>98FFFFFFF</colordiffuse>
   <visible>!Window.IsActive(56)</visible>
   </control>

The key seems to be the !Window.IsActive(56) line.

#4 CatDad

CatDad

    X-S Young Member

  • Members
  • Pip
  • 55 posts
  • Xbox Version:v1.6
  • 360 version:unknown

Posted 29 September 2005 - 12:25 AM

You are dead on it aHorseofCourse!

I added the line


<visible>!Window.IsActive(56)</visible>

and my weather shows up now!!!

Thanks a million...The admin should pin this topic because the forum is full of people who are looking for this solution.

beerchug.gif

#5 DjSnake86

DjSnake86

    X-S X-perience

  • Members
  • PipPip
  • 365 posts

Posted 29 September 2005 - 10:25 AM

QUOTE(CatDad @ Sep 29 2005, 01:36 AM)


and my weather shows up now!!!

beerchug.gif

View Post




will be it ever set by dafault again?
it was usefull...

#6 aHorseofCourse

aHorseofCourse

    X-S Young Member

  • Members
  • Pip
  • 37 posts

Posted 29 September 2005 - 11:05 PM

DJSnake86, I don't think it was ever set by default. It might have been set up that way by a release group (a PIMPED build or something like that). It's easy enough to add it to your Home.xml file if you really want it.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users