Jump to content


Photo

Audio Player Skin And Button Map


  • Please log in to reply
8 replies to this topic

#1 isaac_24

isaac_24

    X-S Senior Member

  • Members
  • PipPip
  • 279 posts

Posted 06 May 2005 - 04:11 PM

I'm trying to skin a custom audip skin and have run into some problem with the button map. I have a few questions:

1) Does the button map have a width and height attribute like the main background does?

2) Is there a limit as to how big/long/small the buttons can be? Like if they can only be a certain size?

#2 unleashx

unleashx

    X-S Freak

  • Members
  • PipPipPipPipPip
  • 1,330 posts
  • Xbox Version:v1.1
  • 360 version:unknown

Posted 06 May 2005 - 04:31 PM

1) The button map will be divided in 4x8 grids, so there's no width and height.
Refer to the following image map for more info:
user posted image

2) Theoretically, no. Your image, as represented by a signle grid, will be resized to fit the width and height specified in the "Element" element. Take for example the following:

<Element Type="Play" Left="219" Top="186" Width="30" Height="36" />

The "Play" image will be stretch into 30x36 pixels area.


#3 isaac_24

isaac_24

    X-S Senior Member

  • Members
  • PipPip
  • 279 posts

Posted 06 May 2005 - 05:00 PM

This makes it difficult to fit a button map like this:

user posted image

I can't find a way to divide each button with an equal width. If the width needs to be the same for each cell, why add a width attribute to each button element? Hopefully I missed something or some flexibilty can be implemented some time later sad.gif

Edited by isaac_24, 06 May 2005 - 05:08 PM.


#4 unleashx

unleashx

    X-S Freak

  • Members
  • PipPipPipPipPip
  • 1,330 posts
  • Xbox Version:v1.1
  • 360 version:unknown

Posted 06 May 2005 - 07:06 PM

That is easy. Make the semi-circular thing part of the background image. Then line up the buttons horizontally (just retain the circular buttons and make everything else transparent). Then use the xml to position each button.

With the image I attached in my earlier post, I can control the position via the xml. You should layout your buttons like I have them in that image.

#5 isaac_24

isaac_24

    X-S Senior Member

  • Members
  • PipPip
  • 279 posts

Posted 06 May 2005 - 11:45 PM

Oh, I sorta get it now. I was using the example from the orange skin you included in MPlayer.rar file. It had the whole bar included. I'll give that a shot and see what I come up with.

#6 isaac_24

isaac_24

    X-S Senior Member

  • Members
  • PipPip
  • 279 posts

Posted 07 May 2005 - 02:46 AM

Ok. Thanks unleashx! It worked. I also noticed that the buttons need to be in a certain order also, I tried changing it around but it would jump around from button to button everywhere. I put them in the order you have (prev, play, pause, stop, etc) and it worked fine. Changing the xml order didn't do anything either.

#7 isaac_24

isaac_24

    X-S Senior Member

  • Members
  • PipPip
  • 279 posts

Posted 07 May 2005 - 03:06 AM

Under your buttons, what are the two bars at the bottom? I understand that it's the volume bar but why have 2 for each instead of 1?

#8 unleashx

unleashx

    X-S Freak

  • Members
  • PipPipPipPipPip
  • 1,330 posts
  • Xbox Version:v1.1
  • 360 version:unknown

Posted 07 May 2005 - 03:33 AM

The first bar is the position or progress indicator. The lower one is the volume indicator.

Be sure to let me know when you're done with this, i wanna try it out. smile.gif

#9 isaac_24

isaac_24

    X-S Senior Member

  • Members
  • PipPip
  • 279 posts

Posted 07 May 2005 - 04:33 AM

I've posted the skin in this thread. It's my first one so be gentle. biggrin.gif

EDIT: Before I forget, if you pause the song, the SongTrack name get shown out the bounds of the Audio Player. It does in using the default Audio Player as well.

Edited by isaac_24, 07 May 2005 - 04:45 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users