Slide animation function funny it seems.
#1
hi...

all i am looking for is animation to appear on the window openning. the issue however is this. when i select my programs i want what ever the default list is to slide in.

and that works

the issue is that once i change the view from list to icons or vice-versa the first time in the window, the list slides in again.

all i need is for the list to slide once on windowopen and that changing the view will not make it slide again.

sorry if i'm confusing, :p it's 2 am.

good night guys.

       
Quote:<control>
      <description>apps listcontrol</description>
      <type>listcontrol</type>
      <id>50</id>
      <posx>210</posx>
      <posy>120</posy>
      <onleft>2</onleft>
      <onright>50</onright>
      <onup>2</onup>
      <ondown>2</ondown>
    <animation effect="slide" time="400" start="1100,0" acceleration="1">windowopen</animation>
  <animation effect="slide" time="400" end="1100,0" acceleration="1">windowclose</animation>
</control>

   <control>
      <description>thumbnailpanel</description>
      <type>thumbnailpanel</type>
      <id>51</id>
      <posx>210</posx>
      <posy>120</posy>
      <onleft>2</onleft>
      <onright>51</onright>
      <onup>51</onup>
      <ondown>51</ondown>
    <animation effect="slide" time="400" start="1100,0" acceleration="1">windowopen</animation>
  <animation effect="slide" time="400" end="1100,0" acceleration="1">windowclose</animation>
</control>
Reply
#2
this is because the thumbpanel hasn't rendered, but it does have the windowopen animation queued, so as soon as it becomes visible for the first time it will do the animation.

i'll see what i can do about this.
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
sounds good thanks!!!
Reply
#4
its gonna take a little while i think to get this sorted out 100%.

the problem is that when we queue the start animation all the controls aren't hidden yet (as this doesn't happen until the window is finished it's initialization process).

i've made a small change to cvs which might help though - please test it out.

cheers,
jonathan
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
#5
ill check it out tonight. thanks jm.

not posted yet right?

- 09-02-2006 fixed: some id3 tags that used multiple strings per tag were using the last string (often empty). now we just use the first non-empty string.
- 09-02-2006 changed: playercontrols.xml closes due to skin condition rather than code conditions.
- 09-02-2006 fixed: start wouldn't close osd audio settings. keymap.xml entry added.
- 08-02-2006 added: display cpu usage for audio/video/player thread in dvdplayer.
- 08-02-2006 fixed: includes messed up the order in the xml file.
- 08-02-2006 fixed: audio/subtitle settings dialog was not working correctly.
- 08-02-2006 changed: <id> is only read for custom windows.
- 08-02-2006 fixed: dialogs without windowclose animations but with controls that had windowclose animations didn't close.
- 08-02-2006 changed: movement off a control is only attempted if we are moving to a different control.
- 08-02-2006 fixed: better animation timing when animations are reversed and they have delays.

just available in cvs.



Reply
#6
should be there in a couple of hours.

btw: for reference, it's helpful if you post an example xml file for me to play with. i don't have time to go making my own up to check various things - it's much quicker if i have one that i can try immediately.

cheers,
jonathan
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
#7
definitly.. sorry for the trouble.

btw, if there is anything i can do to help. let me know.

thanks again.
Reply
#8
patch - 09-02-2006 changed: controls that are initially hidden will not be animated using windowopen.

removed animation on windowopen. now only windowclose are working as designed.

sorry :?.

example xml i am using.

Quote:<window>
<id>1</id>
<defaultcontrol>50</defaultcontrol>
<allowoverlay>yes</allowoverlay>
<coordinates>
</coordinates>

<controls>
<control>
<description>background image</description>
<type>image</type>
<id>1</id>
<posx>0</posx>
<posy>0</posy>
<width>720</width>
<height>576</height>
</control>

<control>
<description>header logo</description>
<type>image</type>
<id>1</id>
<posx>50</posx>
<posy>28</posy>
<width>330</width>
<height>88</height>
<texture>header-programs.png</texture>
</control>

<control>
<description>applications label</description>
<type>label</type>
<id>1</id>
<posx>207</posx>
<posy>83</posy>
<label>10506</label>
<align>left</align>
<font>special13</font>
</control>

<control>
<description>logo left corner</description>
<type>image</type>
<id>0</id>
<posx>60</posx>
<posy>314</posy>
<width>130</width>
<height>130</height>
<info>listitem.thumb</info>
<visible>[control.hasfocus(50) | control.hasfocus(51)] + !player.hasmedia</visible>
</control>

<control>
<description>logo left corner</description>
<type>image</type>
<id>0</id>
<posx>57</posx>
<posy>314</posy>
<width>130</width>
<height>130</height>
<texture>home-programs-icon.png</texture>
<visible>!control.hasfocus(50) + !control.hasfocus(51) + !player.hasmedia</visible>
</control>

<control>
<description>number of files text label</description>
<type>label</type>
<id>12</id>
<posx>670</posx>
<posy>100</posy>
<label>-</label>
<align>right</align>
</control>

<controlgroup>

<control>
<description>view as icons button</description>
<type>button</type>
<id>2</id>
<posx>50</posx>
<posy>120</posy>
<label>100</label>
<onleft>50</onleft>
<onright>50</onright>
<onup>6</onup>
<ondown>3</ondown>
</control>

<control>
<description>sort by button</description>
<type>button</type>
<id>3</id>
<posx>50</posx>
<posy>147</posy>
<label>103</label>
<onleft>50</onleft>
<onright>4</onright>
<onup>2</onup>
<ondown>99</ondown>
</control>

<control>
<description>sort asc</description>
<type>togglebutton</type>
<id>4</id>
<posx>180</posx>
<posy>152</posy>
<onleft>3</onleft>
<onright>50</onright>
<onup>2</onup>
<ondown>99</ondown>
</control>

<control>
<description>online gaming button</description>
<type>button</type>
<id>99</id>
<posx>50</posx>
<posy>174</posy>
<label>998</label>
<hyperlink>2700</hyperlink>
<onleft>50</onleft>
<onright>50</onright>
<onup>3</onup>
<ondown>100</ondown>
</control>

<control>
<description>bookmark button 1</description>
<type>button</type>
<id>100</id>
<posx>50</posx>
<posy>201</posy>
<label>103</label>
<onleft>50</onleft>
<onright>50</onright>
<onup>99</onup>
<ondown>101</ondown>
</control>

<control>
<description>bookmark button 2</description>
<type>button</type>
<id>101</id>
<posx>50</posx>
<posy>228</posy>
<label>103</label>
<onleft>50</onleft>
<onright>50</onright>
<onup>100</onup>
<ondown>102</ondown>
</control>

<control>
<description>bookmark button 3</description>
<type>button</type>
<id>102</id>
<posx>50</posx>
<posy>255</posy>
<label>103</label>
<onleft>50</onleft>
<onright>50</onright>
<onup>101</onup>
<ondown>103</ondown>
</control>

<control>
<description>bookmark button 4</description>
<type>button</type>
<id>103</id>
<posx>50</posx>
<posy>282</posy>
<label>103</label>
<onleft>50</onleft>
<onright>50</onright>
<onup>102</onup>
<ondown>104</ondown>
</control>

<control>
<description>bookmark button 5</description>
<type>button</type>
<id>104</id>
<posx>50</posx>
<posy>309</posy>
<label>103</label>
<onleft>50</onleft>
<onright>50</onright>
<onup>103</onup>
<ondown>6</ondown>
</control>

<control>
<description>scan button</description>
<type>button</type>
<id>6</id>
<posx>50</posx>
<posy>335</posy>
<label>102</label>
<onleft>50</onleft>
<onright>50</onright>
<onup>104</onup>
<ondown>2</ondown>
</control>
</controlgroup>

<control>
<description>apps listcontrol</description>
<type>listcontrol</type>
<id>50</id>
<posx>210</posx>
<posy>120</posy>
<onleft>2</onleft>
<onright>50</onright>
<onup>2</onup>
<ondown>2</ondown>
<animation effect="slide" time="400" start="1100,0" acceleration="1">windowopen</animation>
<animation effect="slide" time="400" end="1100,0" acceleration="1">windowclose</animation>
</control>

<control>
<description>thumbnailpanel</description>
<type>thumbnailpanel</type>
<id>51</id>
<posx>210</posx>
<posy>120</posy>
<onleft>2</onleft>
<onright>51</onright>
<onup>51</onup>
<ondown>51</ondown>
<animation effect="slide" time="400" start="1100,0" acceleration="1">windowopen</animation>
<animation effect="slide" time="400" end="1100,0" acceleration="1">windowclose</animation>
</control>

</controls>

</window>
Reply
#9
yeah, i'm aware of it. i haven't found a decent solution for the windowopen issues as yet, and would prefer to hold off until i cook up a solution that will work for all windows.

cheers,
jonathan
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

Logout Mark Read Team Forum Stats Members Help
Slide animation function funny it seems.0