NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Wishlist v
« Previous 1 … 123 124 125 126 127 … 193 Next »
Appearance manager

 
  • 0 Vote(s) - 0 Average
Appearance manager
dottore
Offline

Posting Freak

Posts: 986
Threads: 44
Joined: May 2004
#11
2006-01-26, 05:43 PM
tipstir is right, every png "steels" a bit of performance (although tipstirs skins use images for buttons too ;-).

a set of composite images would be cool. for example, let's have a buttons.xml in the appearance-folder, where we define buttons like this:

<compositeImage "whiteButtonNormal" size="x,x">
<drawRect....
<drawImage.....
whatever
</compositeImage>

<compositeImage "whiteButtonSelected" size="x,x">
<drawRect....
<drawImage.....
whatever
</compositeImage>
<compositeImage "BlackButtonNormal" size="x,x">
<drawRect....
<drawImage.....
whatever
</compositeImage>

<compositeImage "BlackButtonSelected" size="x,x">
<drawRect....
<drawImage.....
whatever
</compositeImage>

then appearance manager could display "whiteButton" and "BlackButton". if the user selects one, the manager could overwrite the buttons in baseskin.xml.

just an idea.
---------------------
www.sitecomposer.de
Old Dog
Offline

Posting Freak

Posts: 1,083
Threads: 99
Joined: Jul 2005
#12
2006-01-26, 08:03 PM
dottore Wrote:tipstir is right, every png "steels" a bit of performance (although tipstirs skins use images for buttons too ;-).

a set of composite images would be cool. for example, let's have a buttons.xml in the appearance-folder, where we define buttons like this:

<compositeImage "whiteButtonNormal" size="x,x">
<drawRect....
<drawImage.....
whatever
</compositeImage>

<compositeImage "whiteButtonSelected" size="x,x">
<drawRect....
<drawImage.....
whatever
</compositeImage>
<compositeImage "BlackButtonNormal" size="x,x">
<drawRect....
<drawImage.....
whatever
</compositeImage>

<compositeImage "BlackButtonSelected" size="x,x">
<drawRect....
<drawImage.....
whatever
</compositeImage>

then appearance manager could display "whiteButton" and "BlackButton". if the user selects one, the manager could overwrite the buttons in baseskin.xml.

just an idea.


This is an interesting idea...
Learning new tricks!
Visit Plain Jane's Collection
Old Dog
Offline

Posting Freak

Posts: 1,083
Threads: 99
Joined: Jul 2005
#13
2006-01-26, 08:10 PM
There could be multiple xml files representing coordinated elements, not just buttons, but headers, selection bars, etc.

The AM would display the Main Menu button from the set and when selected the whole file is copied into the baseskin.xml.
Learning new tricks!
Visit Plain Jane's Collection
dottore
Offline

Posting Freak

Posts: 986
Threads: 44
Joined: May 2004
#14
2006-01-26, 08:11 PM
even better.
---------------------
www.sitecomposer.de
Old Dog
Offline

Posting Freak

Posts: 1,083
Threads: 99
Joined: Jul 2005
#15
2006-01-26, 08:14 PM
Not sure GBPVR provides the functionality for this yet.

We need to think about this a while...
Learning new tricks!
Visit Plain Jane's Collection
Old Dog
Offline

Posting Freak

Posts: 1,083
Threads: 99
Joined: Jul 2005
#16
2006-01-26, 08:15 PM
If CompositeImages could be nested, it would work.
Learning new tricks!
Visit Plain Jane's Collection
Old Dog
Offline

Posting Freak

Posts: 1,083
Threads: 99
Joined: Jul 2005
#17
2006-01-26, 08:16 PM
BTW, the current approach does allow for sets of coordinated elements.
Learning new tricks!
Visit Plain Jane's Collection
Old Dog
Offline

Posting Freak

Posts: 1,083
Threads: 99
Joined: Jul 2005
#18
2006-01-26, 08:29 PM
Is there AN AUTHORITY that could comment on the MVP performance hit of drawing .png images for buttons vs inline coding?
Learning new tricks!
Visit Plain Jane's Collection
KingArgyle
Offline

Posting Freak

Posts: 1,271
Threads: 95
Joined: Nov 2004
#19
2006-01-26, 09:00 PM
Not sure...sub should be coming out with some best practices for skinning, but from my understanding. GBPVR just builds the graphic image and then sends the combined image to the MVP. So....don't know if there is any slow down between combing a already made image and one that is drawn by GBPVR itself. I think it has more to do with the size of the images than how they are put together.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,724
Threads: 767
Joined: Nov 2003
#20
2006-01-26, 09:16 PM
Quote:Not sure...sub should be coming out with some best practices for skinning, but from my understanding.
Dont worry, I havnt forgotten about this. Its more about best practices for developers writing plugins etc, but does cover some of the related skinning aspects. I made a really good start on it over the christmas break, but I've been very busy with work since then. Hopefully I'll finish it off some time soon.

Quote:Is there AN AUTHORITY that could comment on the MVP performance hit of drawing .png images for buttons vs inline coding?
Its not necessarily true for all composite images, but when it comes to buttons, there should be virtually no difference. All the composite images used for buttons are only every drawn once, then the resulting button images (both normal and selected) are cached as a bitmap for quick acess whenever they needed in the future. This is true regardless of what your composite image is made up from.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): « Previous 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  BaseSkin and Appearance Integration DangerMouse 1 1,570 2006-04-09, 03:38 PM
Last Post: Old Dog
  From appearance manager thread Old Dog 0 1,411 2006-01-11, 04:46 PM
Last Post: Old Dog

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode