Aaargh need help finding a screen! (1 Viewer)

m.standish

Portal Pro
July 9, 2006
174
8
Wakefield
Home Country
United Kingdom United Kingdom
Im trying to reskin my files but i cant find the part that lists the channels when you go from tv home and click channels. it brings a list of all channels. where is this stored??

Ive found dialoguemenu.xml and changed it to slide in but thats only the background, i need to find the text. PLEASE HELP!!
 

Boilermaker

Retired Team Member
  • Premium Supporter
  • May 21, 2004
    519
    3
    I think i understand what you are trying to change, but you may want to post a screenshot to make it more clear. If i'm understanding correctly, dialogmenu.xml is the right file, the options listcontrol (id 3) is the control that lists the channels. Maybe you didn't apply your animation tags to the right control? Just to test it out, i added slide and fade animations to the listcontrol and it worked.

    If you want the whole osd to slide and fade as one, you could just put all the controls in a single group assign animation effects to the group, something like this:
    Code:
    <window>
      	<id>2012</id> 
      	<defaultcontrol>3</defaultcontrol> 
      	<allowoverlay>no</allowoverlay>
        <controls>
        	<control>
    [COLOR="Red"]      		<type>group</type>
          		<description>group element</description>
          		<animation effect="slide" time="400" start="0,-300">WindowOpen</animation>
          		<animation effect="slide" time="400" end="800,0" >WindowClose</animation>
          		<animation effect="fade" time="250">WindowOpen</animation>
          		<animation effect="fade" time="500">WindowClose</animation>[/COLOR]
    		<control>
    			<type>image</type> 
    			<id>0</id> 
    			<posX>390</posX> 
    			<posY>180</posY> 
    			<width>500</width> 
    			<height>280</height> 
    			<texture>context_background.png</texture> 
    		</control>
    		<control>
    			<description>Heading text label</description> 
    			<type>label</type> 
    			<id>4</id> 
    			<posX>410</posX> 
    			<posY>186</posY> 
    			<label>181</label>
    			<width>425</width> 
    		</control>	
    		<control>
    			<description>Exit button</description>
    			<type>button</type>
    			<id>2</id>
    			<posX>856</posX>
    			<posY>185</posY>
    			<width>28</width>
    			<height>28</height>
    			<textureFocus>button_close_focus.png</textureFocus>
    			<textureNoFocus>button_close_nofocus.png</textureNoFocus>
    			<label>-</label>
    			<onleft>3</onleft>
    			<onright>3</onright>
    			<onup>3</onup>
    			<ondown>3</ondown>
    		</control>
    [COLOR="Blue"]<!-- in TV home/channels button, this lists the channels -->[/COLOR]
    		<control>
    			<description>options listcontrol</description> 
    			<type>listcontrol</type> 
    			<id>3</id> 
    			<posX>415</posX> 
    			<posY>224</posY> 
    			<width>450</width> 
    			<height>230</height>
    			<textXOff>10</textXOff>
    			<textYOff>3</textYOff>
    			<textureHeight>30</textureHeight> 
    			<onleft>2</onleft> 
    			<onright>2</onright>
    			<onup>2</onup> 
    			<ondown>2</ondown>
    			<spinPosX>750</spinPosX>
    			<spinPosY>419</spinPosY>
    		</control>
        	</control>
        </controls>
    </window>
     

    m.standish

    Portal Pro
    July 9, 2006
    174
    8
    Wakefield
    Home Country
    United Kingdom United Kingdom
    Boilermaker UR a STAR of the highest degree, I hadnt applied it to a group just the top control!!

    THANK YOU VERY MUCH!!!

    BTW, got a weird feeling i meant to send u a pm about summat but for the hell of me i cant think why or what, u talked to me b4 bout owt???
     

    Boilermaker

    Retired Team Member
  • Premium Supporter
  • May 21, 2004
    519
    3
    I started grouping controls because i got tired of pasting the same animations over and over. If i'm not happy with an animation, makes it easy to change. I've yet to have a problem with this practice, hopefully somebody won't come along and give a good reason why its a bad idea.

    Haven't received any pm's lately...it's been a long week so don't ask me to remember anything right now...but if you think of what you might of sent, drop me another pm. I hit the boards a few times a day.
     

    Boilermaker

    Retired Team Member
  • Premium Supporter
  • May 21, 2004
    519
    3
    i would guess it isn't possible. We can control how info is displayed, but not really what info is sent to the listcontrol by the internal code of mp. For example, since what we are talking about is a listconrol, the tags IconXOff, IconYOff, itemWidth and itemHeight to control the position and size of a thumbnail. I tried putting an icon offset 1 in and 1 down, with a size of 28x28. Didn't see anything in the list, just an empty space where an icon would be I don't have icons for all my tv stations, but i don't think that's the problem.

    The other consideration would be that dialogmenu is used to display more than just this one dialog. Even if you could get tv icons to display, icons would display everywhere else dialogmenu is used. Probably wouldn't work out too well for stuff like the dialog that appears in Settings/My Videos when selecting a video renderer.

    Unless a dev comes thru and confirms this, you may want to play around with some of the tags you see for a listcontrol in references.xml...i could be wrong about all this.
     

    m.standish

    Portal Pro
    July 9, 2006
    174
    8
    Wakefield
    Home Country
    United Kingdom United Kingdom
    yeah, been playing about with it myself, cant get it to display anything either :eek:(
    Like i said its no biggie, ive got enough work on with generating all the screens for my skin without little fancies. When i get the basic stuff done, then ill delve a bit deeper.

    Right off to go find a good DVD player image to use as my video overlay ;o)
     

    m.standish

    Portal Pro
    July 9, 2006
    174
    8
    Wakefield
    Home Country
    United Kingdom United Kingdom
    Different fonts

    Do you know if its possible to use 2 different fonts in MP
    Ive got all the screens the same but id like to use a different font for a couple of screens

    Regards, Mark
     
    December 28, 2005
    237
    3
    Sydney
    Home Country
    Just open the font.xml file and add some new font code.

    All you have to do is make sure that it’s called something different.
    e.g.
    Code:
      <font>
        <name>font24</name>
        <filename>Arial</filename>
        <height>24</height>
      </font>
    
      <font>
        <name>font24Narrow</name>
        <filename>Arial Narrow</filename>
        <height>24</height>
      </font>

    Now each time you wish to use your new font just use the name,
    e.g.

    <control>
    ....
    <label>SAMPLE</label>
    <fomt>font24Narrow</font>
    ...
    </control>
     

    m.standish

    Portal Pro
    July 9, 2006
    174
    8
    Wakefield
    Home Country
    United Kingdom United Kingdom
    Thank you very much!!
    just need to find a lcd type font now (like you find on hifi seperates)
    See my latest job on the storm thread!

    If i can get that done today, i might even post up a preview skin
     

    Users who are viewing this thread

    Top Bottom