Dialogprogress.xml
#1
i'm having some trouble with the dialogprogress.xml.

i have this in the file.

<control>
<description>progress control</description>
<type>progress</type>
<id>20</id>
<posx>200</posx>
<posy>340</posy>
<texturebg>progressback.png</texturebg>
<lefttexture>progressleft.png</lefttexture>
<midtexture>progressmid.png</midtexture>
<righttexture>progressright.png</righttexture>
<overlaytexture>progressover.png</overlaytexture>
<visible>no</visible>
</control>

the width for progressmid.png and progressover.png are both 260 pixels.

it displays, but the midtexture seems hard coded to a set width no matter how wide i make the .png and a <width> setting seems to be ignored. also the <posx> and <posy> don't seem to work off the <coordinates> system like the other controls.

am i missing something or is this known behavior.

thanks
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#2
the width is given in the references..

its using the same width for all textures
Image

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
thanks for your response,

there is no width in references for the progress dialog and it doesn't stretch <overlaytexture> only <midtexture>. i've tried <texturewidth>260</texturewidth> and <width>260</width> neither has any effect.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#4
the width + height for the total control is taken from the background texture.

the midtexture is scaled + positioned so that it fits in between the left + right textures (which aren't scaled).

the overlay texture is positioned so that it is centered over the background texture but is not scaled in any way. this allows overlays which don't cover the full background width or height for instance.

hope this makes sense. once you have it working and understand what is going on, perhaps you could add this to the wiki skinning section? it's better if it's written by a skinner rather than a dev (so that it's in skinner-speak rather than dev-speak).

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

that makes perfect sense and is working for me now.

added to the wiki on the main page. skinning xbmc

as for the <posx> and <posy> not working on the coordinate system. is this a bug or is it not able to work this way?
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#6
cool - thanks for the write-up in the manual Smile

so are you inferring that the posx and posy coordinates are not being translated correctly from the dialog's posx and posy coordinates??

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
yes, but only for the progress control. the other controls work fine.

example:
 <coordinates>
   <system>1</system>
     <posx>150</posx>
     <posy>180</posy>
 </coordinates>

   <control>
     <description>dialog line 3</description>
     <type>label</type>
     <id>4</id>
     <posx>69</posx>
     <posy>120</posy>
     <label>0</label>
     <font>fontdialog16</font>
     <textcolor>ffffffff</textcolor>
   </control>

   <control>
     <description>progress control</description>
     <type>progress</type>
     <id>20</id>
     <posx>200</posx>
     <posy>340</posy>

    <visible>no</visible>
   </control>

the dialog line 3 displays where it should, but i have to set the progress control x and y based on the screen not the <coordinates>.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#8
hi jonathan,

if you get this, thanks for the fix.

now i'm doing the musicoverlay.xml and the <coordinates> is not working for the whole file. none of the controls use the windows <posx> or <posy>.

thanks
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#9
correct. this is due to the way it currently slides in, and is unfortunately hard-coded in this way. nothing that can be done about it until the slide-in code is completely removed (we're thinking of replacing the white button action in visz with a nice fade in/fade out of controls in the actual visz window, rather than sliding in/out the music overlay).

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
#10
ok, thank you.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply

Logout Mark Read Team Forum Stats Members Help
Dialogprogress.xml0