How to implement startup.xml
#1
does this file on kick in on the main startup. ?

code example taken from pdm = thanks smokehead

condition="window.previous(startup)"
Quote:<window>
 <defaultcontrol always="true">5</defaultcontrol>
 <allowoverlay>no</allowoverlay>
 <controls>

   <control>
     <description>startup-top image</description>
     <type>image</type>
     <posx>0</posx>
     <posy>0</posy>
     <width>720</width>
     <height>289</height>
     <texture>background-top.png</texture>
     <animation effect="fade" start="0" end="100" time="300">windowopen</animation>
   </control>

   <control>
     <description>startup-bottom image</description>
     <type>image</type>
     <posx>0</posx>
     <posy>288</posy>
     <width>720</width>
     <height>289</height>
     <texture>background-bottom.png</texture>
     <animation effect="fade" start="0" end="100" time="300">windowopen</animation>
   </control>

   <control>
     <description>skin name</description>
     <type>button</type>
     <posx>35</posx>
     <posy>235</posy>
     <font>special13</font>
     <label>xbox media center 2005</label>
     <texturefocus>-</texturefocus>
     <texturenofocus>-</texturenofocus>
     <animation effect="fade" time="300">windowopen</animation>
     <animation effect="fade" time="200">windowclose</animation>
   </control>

   <control>
     <description>xbmc build info's</description>
     <type>label</type>
     <posx>52</posx>
     <posy>255</posy>
     <font>special13</font>
     <label>xbmc $localize[144] $info[system.buildversion] - $info[system.builddate]</label>
     <animation effect="fade" time="300">windowopen</animation>
     <animation effect="fade" time="200">windowclose</animation>
   </control>

 </controls>
</window>

my home.xml

Quote:...
  <control>
      <type>image</type>
      <id>0</id>
      <posx>0</posx>
      <posy>0</posy>
      <width>720</width>
      <height>480</height>
      <texture>black.png</texture>
  <animation effect="fade" start="100" end="0" condition="window.previous(startup)" time="1000">windowopen</animation>
   </control>

   <control>
      <type>image</type>
      <id>0</id>
      <posx>0</posx>
      <posy>0</posy>
      <width>720</width>
      <height>100</height>
      <texture>background-top.png</texture>
 <animation effect="slide" start="0,180" end="0,0" acceleration="-1.7" condition="window.previous(startup)" time="1000">windowopen</animation>
   </control>

   <control>
      <type>image</type>
      <id>0</id>
      <posx>0</posx>
      <posy>380</posy>
      <width>720</width>
      <height>100</height>
      <texture>background-bottom.png</texture>
<animation effect="slide" start="0,-180" end="0,0" acceleration="-1.7" condition="window.previous(startup)" time="1000">windowopen</animation>
       </control>

what else do i need, because the home screen always shows these bars and has the black masking.

hades_666
Reply
#2
the home stuff looks ok to me.

the startup.xml is missing the <id>5</id> on the button control that causes the switch to home on focus though.

and yes, startup.xml is used if it's there, and if your startwindow is set to home.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#3
ok.. so i got it working... on startup...

however, now the problem is that it runs to startup everytime i go to the home.xml.

how do i make it only run once on skin load and never again.?

startup.xml
Quote:<window>
<defaultcontrol always="true">5</defaultcontrol>
<allowoverlay>no</allowoverlay>
<controls>
<control>
<description>replacewindow trigger</description>
<type>button</type>
<id>5</id>
<posx>35</posx>
<posy>235</posy>
<font>special15</font>
<onfocus>replacewindow(home)</onfocus>
<texturefocus>-</texturefocus>
<texturenofocus>-</texturenofocus>
<animation effect="fade" time="1200">focus</animation>
</control>

<control>
<description>startup-top image</description>
<type>image</type>
<posx>0</posx>
<posy>0</posy>
<width>720</width>
<height>289</height>
<texture>background-top.png</texture>
<animation effect="fade" start="0" end="100" time="300">windowopen</animation>
</control>

<control>
<description>startup-bottom image</description>
<type>image</type>
<posx>0</posx>
<posy>288</posy>
<width>720</width>
<height>289</height>
<texture>background-bottom.png</texture>
<animation effect="fade" start="0" end="100" time="300">windowopen</animation>
</control>

<control>
<description>skin name</description>
<type>button</type>
<posx>35</posx>
<posy>235</posy>
<font>special13</font>
<label>xbox media center 2005</label>
<texturefocus>-</texturefocus>
<texturenofocus>-</texturenofocus>
<animation effect="fade" time="300">windowopen</animation>
<animation effect="fade" time="200">windowclose</animation>
</control>

<control>
<description>xbmc build info's</description>
<type>label</type>
<posx>52</posx>
<posy>255</posy>
<font>special13</font>
<label>xbmc $localize[144] $info[system.buildversion] - $info[system.builddate]</label>
<animation effect="fade" time="300">windowopen</animation>
<animation effect="fade" time="200">windowclose</animation>
</control>

</controls>
</window>

home.xml
Quote:<!-- start up -->
<control>
<type>image</type>
<id>0</id>
<posx>0</posx>
<posy>0</posy>
<width>720</width>
<height>480</height>
<texture>black.png</texture>
<animation effect="fade" start="100" end="0" condition="window.previous(startup)" time="1000">windowopen</animation>
</control>

<control>
<type>image</type>
<id>0</id>
<posx>0</posx>
<posy>0</posy>
<width>720</width>
<height>100</height>
<texture>background-top.png</texture>
<animation effect="slide" start="0,180" end="0,-180" acceleration="-1.7" condition="window.previous(startup)" time="1000">windowopen</animation>
</control>

<control>
<type>image</type>
<id>0</id>
<posx>0</posx>
<posy>380</posy>
<width>720</width>
<height>100</height>
<texture>background-bottom.png</texture>
<animation effect="slide" start="0,-180" end="0,180" acceleration="-1.7" condition="window.previous(startup)" time="1000">windowopen</animation>
</control>
Reply
#4
there is a way to only have it run once right?

because, everytime i load the home screen, it runs the startup.
Reply
#5
the code looks fine to me for startup. using the replacewindow(home) will mean that once it gets to home, it will never go back to startup.xml.

perhaps if you give us a little more information as to what exactly is not working?
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#6
sorry jmarshall,

it is a simple startup.xml like a window open from the top and and bottom when xbmc first loads.

i just want it to run once but what seems to be happening is that is runs everytime home.xml is focused.

for example, startup runs on xbmc boot.
i then click programs and then click back to go back to the home.xml. at that point startup.xml loads again.

it loads each and everytime home.xml is focused.

does this make sense?
Reply
#7
i suggest that startup.xml isn't reloading (at least it won't with the code you gave).

perhaps just the animations you have in home.xml are re-running?

does pdm animate correctly on startup for you?
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#8
pdm does the same thing..

i cant it to animate only once.
Reply
#9
sounds like you are running an old build then.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#10
just closing the case.

you were right jmarshall. my builds were not updating but the build date was changed. after blowing away my cvs and getting it again it worked as designed.

thanks again.
Reply

Logout Mark Read Team Forum Stats Members Help
How to implement startup.xml0