Mailing List Archive

Selectbar changes buttonlist width
I'm trying to theme the gameui window, and have run into a strange problem.

The short way to describe it is, if I use a selectbar in the state to
highlight the selected item, the width of each buttonlist in the buttontree
increases.

Is there any reason this would happen ?

==========================================================
Chris Candreva -- chris@westnet.com -- (914) 948-3162
WestNet Internet Services of Westchester
http://www.westnet.com/
_______________________________________________
mythtv-theming mailing list
mythtv-theming@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-theming
Re: Selectbar changes buttonlist width [ In reply to ]
On Fri, Nov 27, 2009 at 9:40 AM, Christopher X. Candreva
<chris@westnet.com> wrote:
>
> I'm trying to theme the gameui window, and have run into a strange problem.
>
> The short way to describe it is, if I use a selectbar in the state to
> highlight the selected item, the width of each buttonlist in the buttontree
> increases.
>
> Is there any reason this would happen ?

Chris,

As the issue is almost definitely an issue with the theme, it would be
helpful to have the XML for the whole buttonlist in question.

Robert
_______________________________________________
mythtv-theming mailing list
mythtv-theming@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-theming
Re: Selectbar changes buttonlist width [ In reply to ]
On Fri, 27 Nov 2009, Robert McNamara wrote:

> > The short way to describe it is, if I use a selectbar in the state to
> > highlight the selected item, the width of each buttonlist in the buttontree
> > increases.

> As the issue is almost definitely an issue with the theme, it would be
> helpful to have the XML for the whole buttonlist in question.

The whole current theme is updated at:
http://www.westnet.com/~chris/Mythtv/Retro-wide.tar.gz

game-ui.xml has the list in question (gametreelist), which derives from
buttonlistRetro in base.xml

If an extract is enough, this is the list:

<buttontree name="gametreelist">
<area>128,110,964,310</area>
<numlists>3</numlists>
<spacing>80</spacing>
<buttonlist name="listtemplate" from="buttonlistRetro" >
<statetype name="buttonitem">
<state name="selected" from="active">
<imagetype name="selectbar">
<filename>rk-selectbar.png</filename>
<crop>0,0,280,29</crop>
</imagetype>
<textarea name="buttontext">
<font>small_active</font>
</textarea>
</state>
</statetype>
</buttonlist>
</buttontree>

And this is what it derives from:
<buttonlist name="buttonlistRetro">
<area>0,0,280,250</area>
<layout>vertical</layout>
<spacing>5</spacing>
<buttonarea>0,0,100%,97%</buttonarea>
<statetype name="buttonitem">
<state name="active">
<area>0,0,100%,30</area>
<textarea name="buttontext">
<area>5,0,99%,30</area>
<font>small_inactive</font>
<cutdown>yes</cutdown>
<align>left,vcenter</align>
</textarea>
<statetype name="buttoncheck">
<position>91%,5</position>
<state type="off">
<imagetype name="checkoff">
<filename>lb-check-empty.png</filename>
</imagetype>
</state>
<state type="half">
<imagetype name="checkhalf">
<filename>lb-check-half.png</filename>
</imagetype>
</state>
<state type="full">
<imagetype name="checkfull">h
<filename>lb-check-full.png</filename>
</imagetype>
</state>
</statetype>
<imagetype name="buttonarrow">
<position>94%,7</position>
<filename>lb-arrow.png</filename>
</imagetype>
</state>
<state name="selected" from="active">
<textarea name="buttontext">
<font>small_active</font>
</textarea>
</state>
<state name="inactive" from="active">
<!-- imagetype name="buttonbackground">
<gradient start="#52CA38" end="#349838" alpha="100" />
</imagetype -->
<textarea name="buttontext">
<font>small_inactive</font>
</textarea>
</state>
</statetype>
<statetype name="upscrollarrow">
<position>10,97%</position>
<state type="off">
<imagetype name="upon">
<filename>lb-uparrow-reg.png</filename>
</imagetype>
</state>
<state type="full">
<imagetype name="upoff">
<filename>lb-uparrow-sel.png</filename>
</imagetype>
</state>
</statetype>
<statetype name="downscrollarrow">
<position>40,97%</position>
<state type="off">
<imagetype name="dnon">
<filename>lb-dnarrow-reg.png</filename>
</imagetype>
</state>
<state type="full">
<imagetype name="dnoff">
<filename>lb-dnarrow-sel.png</filename>
</imagetype>
</state>
</statetype>
</buttonlist>



==========================================================
Chris Candreva -- chris@westnet.com -- (914) 948-3162
WestNet Internet Services of Westchester
http://www.westnet.com/
_______________________________________________
mythtv-theming mailing list
mythtv-theming@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-theming
Re: Selectbar changes buttonlist width [ In reply to ]
On Fri, Nov 27, 2009 at 10:25 AM, Christopher X. Candreva
<chris@westnet.com> wrote:
> On Fri, 27 Nov 2009, Robert McNamara wrote:
>
>> > The short way to describe it is, if I use a selectbar in the state to
>> > highlight the selected item, the width of each buttonlist in the buttontree
>> > increases.
>
>> As the issue is almost definitely an issue with the theme, it would be
>> helpful to have the XML for the whole buttonlist in question.
>
> The whole current theme is updated at:
> http://www.westnet.com/~chris/Mythtv/Retro-wide.tar.gz
>
> game-ui.xml has the list in question (gametreelist), which derives from
> buttonlistRetro  in base.xml
>
> If an extract is enough, this is the list:
>
>        <buttontree name="gametreelist">
>            <area>128,110,964,310</area>
>            <numlists>3</numlists>
>            <spacing>80</spacing>
>            <buttonlist name="listtemplate" from="buttonlistRetro" >
>            <statetype name="buttonitem">
>            <state name="selected" from="active">
>                    <imagetype name="selectbar">
>                        <filename>rk-selectbar.png</filename>
>                        <crop>0,0,280,29</crop>
>                    </imagetype>
>                <textarea name="buttontext">
>                    <font>small_active</font>
>                </textarea>
>            </state>
>         </statetype>
>         </buttonlist>
>        </buttontree>

You didn't set an area on the image, and thus it will take up the full
size, cropped on not. Sounds like you want:


<buttontree name="gametreelist">
<area>128,110,964,310</area>
<numlists>3</numlists>
<spacing>80</spacing>
<buttonlist name="listtemplate" from="buttonlistRetro" >
<statetype name="buttonitem">
<state name="selected" from="active">
<imagetype name="selectbar">
<filename>rk-selectbar.png</filename>
<area>0,0,280,29</area>
<crop>0,0,280,29</crop>
</imagetype>
<textarea name="buttontext">
<font>small_active</font>
</textarea>
</state>
</statetype>
</buttonlist>
</buttontree>

Robert
_______________________________________________
mythtv-theming mailing list
mythtv-theming@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-theming
Re: Selectbar changes buttonlist width [ In reply to ]
On Fri, 27 Nov 2009, Robert McNamara wrote:

> You didn't set an area on the image, and thus it will take up the full
> size, cropped on not. Sounds like you want:
>
>
> <buttontree name="gametreelist">
> <area>128,110,964,310</area>


Thanks ! That did it.

Myabe you can spot this one too. I put a textarea title on the gameui
window. For some reason, the gamedetailspopup erases the title. The title
doesn't come back when you excape from the popup, until you hit a key on
gameui again.


<mythuitheme>

<window name="gameui">

<imagetype name="fanart">
<area>0,0,1280,720</area>
</imagetype>

<imagetype name="banner">
<position>25,18</position>
<filename>title/title_games.png</filename>
</imagetype>

<!-- This is the title at the top of the page -->
<textarea name="uititle">
<area>0,15,1280,45</area>
<font>large</font>
<value>Select Game</value>
<align>allcenter</align>
</textarea>

<shape name="BackgroundShadow1">
<area>130,115,322,340</area>
<type>roundbox</type>
<fill color="#000000" alpha="150" />
</shape>
<shape name="Background1">
<area>110,95,322,340</area>
<type>roundbox</type>
<fill color="#0646b1" alpha="255" />
<line color="#FFFFFF" alpha="255" width="3" />
</shape>

<shape name="BackgroundShadow2">
<area>482,115,322,340</area>
<type>roundbox</type>
<fill color="#000000" alpha="150" />
</shape>
<shape name="Background2">
<area>462,95,322,340</area>
<type>roundbox</type>
<fill color="#0646b1" alpha="255" />
<line color="#FFFFFF" alpha="255" width="3" />
</shape>

<shape name="BackgroundShadow3">
<area>844,115,322,340</area>
<type>roundbox</type>
<fill color="#000000" alpha="150" />
</shape>
<shape name="Background3">
<area>824,95,322,340</area>
<type>roundbox</type>
<fill color="#0646b1" alpha="255" />
<line color="#FFFFFF" alpha="255" width="3" />
</shape>

<buttontree name="gametreelist">
<area>128,110,964,310</area>
<numlists>3</numlists>
<spacing>100</spacing>
<buttonlist name="listtemplate" from="buttonlistRetro" >
<statetype name="buttonitem">
<state name="selected" from="active">
<imagetype name="selectbar">
<filename>rk-selectbar.png</filename>
<area>0,0,280,29</area>
<crop>0,0,280,29</crop>
</imagetype>
<textarea name="buttontext">
<font>small_active</font>
</textarea>
</state>
</statetype>
</buttonlist>
</buttontree>

<textarea name="title" >
<area>96,470,752,60</area>
<font>baseextralarge</font>
</textarea>

<textarea name="systemlabel" from="basetextarea">
<area>96,540,140,35</area>
<value>System:</value>
</textarea>

<textarea name="system" from="basetextarea">
<area>236,540,580,35</area>
</textarea>

<textarea name="yearlabel" from="systemlabel">
<position>96,585</position>
<value>Year:</value>
</textarea>

<textarea name="year" from="system">
<position>236,585</position>
</textarea>

<textarea name="genrelabel" from="systemlabel">
<position>96,620</position>
<value>Genre:</value>
</textarea>

<textarea name="genre" from="system">
<position>236,620</position>
</textarea>

<textarea name="favoritelabel" from="systemlabel">
<position>96,655</position>
<value>Favorite:</value>
</textarea>

<statetype name="favorite">
<state name="no">
<textarea name="favorite" from="basetextarea">
<area>236,655,580,35</area>
<value>No</value>
</textarea>
</state>
<state name="yes" from="no">
<textarea name="favorite">
<value>Yes</value>
</textarea>
</state>
</statetype>

<textarea name="description" from="system">
<position>236,665</position>
</textarea>

<imagetype name="coverart">
<area>610,500,180,150</area>
<preserveaspect>true</preserveaspect>
</imagetype>

<imagetype name="screenshot">
<area>880,500,300,196</area>
</imagetype>

</window>

<window name="gamedetailspopup">

<area>-1,-1,800,600</area>

<shape name="BackgroundShadow">
<area>40,40,800,600</area>
<type>roundbox</type>
<fill color="#000000" alpha="150" />
</shape>

<shape name="Background">
<area>0,0,800,600</area>
<type>roundbox</type>
<fill color="#0646b1" alpha="255" />
<line color="#FFFFFF" alpha="255" width="3" />
</shape>

<imagetype name="fanart">
<area>0,0,1280,720</area>
</imagetype>

<textarea name="infotitle" from="basetextarea">
<area>0,20,600,50</area>
<value>Game Information</value>
<align>allcenter</align>
<font>baselarge</font>
</textarea>

<textarea name="gamename_lab" from="basetextarea">
<area>40,100,140,40</area>
<value>Game:</value>
<align>right</align>
</textarea>

<textarea name="title" from="basetextarea">
<area>190,100,570,40</area>
</textarea>

<textarea name="gametype_lab" from="basetextarea">
<area>40,140,140,40</area>
<value>Type:</value>
<align>right</align>
</textarea>

<textarea name="gametype" from="basetextarea">
<area>190,140,570,40</area>
</textarea>

<textarea name="romname_lab" from="basetextarea">
<area>40,180,140,40</area>
<value>Filename:</value>
<align>right</align>
</textarea>

<textarea name="romname" from="basetextarea">
<area>190,180,570,40</area>
</textarea>

<textarea name="rompath_lab" from="basetextarea">
<area>40,220,140,40</area>
<value>Rompath:</value>
<align>right</align>
</textarea>

<textarea name="rompath" from="basetextarea">
<area>190,220,570,40</area>
</textarea>

<textarea name="allsystems_lab" from="basetextarea">
<area>40,260,140,40</area>
<value>System(s):</value>
<align>right</align>
</textarea>

<textarea name="allsystems" from="basetextarea">
<area>190,260,570,40</area>
</textarea>

<textarea name="genre_lab" from="basetextarea">
<area>40,300,140,40</area>
<value>Genre:</value>
<align>right</align>
</textarea>

<textarea name="genre" from="basetextarea">
<area>190,300,570,40</area>
</textarea>

<textarea name="year_lab" from="basetextarea">
<area>40,340,140,40</area>
<value>Year:</value>
<align>right</align>
</textarea>

<textarea name="year" from="basetextarea">
<area>190,340,400,40</area>
</textarea>

<textarea name="country_lab" from="basetextarea">
<area>40,380,140,40</area>
<value>Country:</value>
<align>right</align>
</textarea>

<textarea name="country" from="basetextarea">
<area>190,380,400,40</area>
</textarea>

<textarea name="publisher_lab" from="basetextarea">
<area>40,420,140,40</area>
<value>Publisher:</value>
<align>right</align>
</textarea>

<textarea name="publisher" from="basetextarea">
<area>190,420,400,40</area>
</textarea>

<!-- textarea name="crc_lab" from="basetextarea">
<area>40,460,140,40</area>
<value>CRC:</value>
<align>right</align>
</textarea -->

<!-- textarea name="crc" from="basetextarea">
<area>190,460,400,40</area>
</textarea -->

<textarea name="description" from="basetextarea">
<area>190,500,400,40</area>
</textarea>

<imagetype name="coverart">
<area>380,280,415,320</area>
<preserveaspect>true</preserveaspect>
</imagetype>

<button name="play_button" from="basebutton">
<position>40,520</position>
<value>Play</value>
</button>

<button name="done_button" from="basebutton">
<position>220,520</position>
<value>Done</value>
</button>

</window>




==========================================================
Chris Candreva -- chris@westnet.com -- (914) 948-3162
WestNet Internet Services of Westchester
http://www.westnet.com/
_______________________________________________
mythtv-theming mailing list
mythtv-theming@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-theming
Re: Selectbar changes buttonlist width [ In reply to ]
On Fri, Nov 27, 2009 at 11:37 AM, Christopher X. Candreva
<chris@westnet.com> wrote:
> On Fri, 27 Nov 2009, Robert McNamara wrote:
>
>> You didn't set an area on the image, and thus it will take up the full
>> size, cropped on not.  Sounds like you want:
>>
>>
>>         <buttontree name="gametreelist">
>>             <area>128,110,964,310</area>
>
>
> Thanks ! That did it.
>
> Myabe you can spot this one too.  I put a textarea title on the gameui
> window. For some reason, the gamedetailspopup erases the title. The title
> doesn't come back when you excape from the popup, until you hit a key on
> gameui again.

You have a 800x600 popup with a 1280x720 fanart bleeding off multiple
edges of the screen. Remove or properly size the fanart and the issue
will go away.

Robert
_______________________________________________
mythtv-theming mailing list
mythtv-theming@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-theming
Re: Selectbar changes buttonlist width [ In reply to ]
On Fri, 27 Nov 2009, Robert McNamara wrote:

> You have a 800x600 popup with a 1280x720 fanart bleeding off multiple
> edges of the screen. Remove or properly size the fanart and the issue
> will go away.

Sigh.

Thanks again. I'll get the hang of this eventually.


==========================================================
Chris Candreva -- chris@westnet.com -- (914) 948-3162
WestNet Internet Services of Westchester
http://www.westnet.com/
_______________________________________________
mythtv-theming mailing list
mythtv-theming@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-theming