Official BS.Player forums  

Go Back   Official BS.Player forums > Main forum > BS.Player Skins and Skinning

BS.Player Skins and Skinning Comments on skins, new ideas, skinmaker, skinmaker documentation, or anything else concerning BS.Player skins

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 17th January 2011
Member
BS.player Regular User
 
Join Date: Nov 2009
Posts: 33
Rep Power: 0
ilomambo is on a distinguished road
Default Help with rectangles and draw styles

Does anyone have an explanation of the different rectangles defined in the medialib base skin and their draw style, also about client areas and resize rectangles?

The base medialib skin ini file does not contain any useful comment regarding these, and I seached the forum but did not find a clue.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTweet this Post!Spurl this Post!Reddit! MySpace
Reply With Quote
  #2 (permalink)  
Old 18th January 2011
Member
BS.player Regular User
 
Join Date: Nov 2009
Posts: 33
Rep Power: 0
ilomambo is on a distinguished road
Default

Here is a short description, I managed to understand from reverse engneering the Base skin and the Prophecy skin.

* You may define as many rectangles as you want
* Rectangles spanning a horizontal stripe can be of 3 types: NORMAL, STRETCHX and OFFSX.
* Rectangles in a vertical stripe can be NORMAL, STRETCHY and OFFSY
* NORMAL, OFFSX and OFFSY are drawn as is when the window is resized
* STRETCHX and STRETCHY are scaled up or down.
* Stretch rectangles cannot overlap, not in the X ,nor Y dimensions (overlap in the sense that they cannot span the same X or Y coordinates, even if they are not on top of each other geometrically)
* Stretch rectangles may overlap with NORMAL and OFFSX, OFFSY rectangles
* All the area must be covered by some rectangle, otherwise it will not get drawn.
** Especially, define a rectangle for the ClientArea, of type STRECHX and STRECHY. This is not a rule, since some skins work without defining it


* The Resizearea just tells BSP where it should change the cursor from normal to resize cursor.
* You can enable each side and corner of the window to allow resize from it ( for example I only allowed resizing from the right side, bottom side and right-low corner)

* In the MinHW, always put the original main bitmap size, it is not clear, nor consistent, what would happen if you put a different minimum size, since the pre-scaling BSP does in this case, is not the same as opening the original size and resizing.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTweet this Post!Spurl this Post!Reddit! MySpace
Reply With Quote
Reply

Tags
draw, rectangles, styles

Thread Tools
Display Modes

Posting Rules


All times are GMT +1. The time now is 10:00 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.5.2
Ad Management plugin by RedTyger

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19