EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   XML Modification Help & Info (https://www.eq2interface.com/forums/forumdisplay.php?f=22)
-   -   RectangleStyle explained (https://www.eq2interface.com/forums/showthread.php?t=4783)

GenesisRage 11-11-2005 08:38 PM

RectangleStyle explained
 
i didnt think i was the only one that found the rectanglestyle to be a bit confusing, so i ran through many tests to find out what exactly happends.

-first off, it does not need 9 elements, you can get away with just 1.
-how the images will line up all depend on sizes, but all are next to the center frame

Code:

+---+----------+----+
|  |          |    |
+-+-+----------+----+
  | |          |    |
  | |          |    |
  | |          |    |
  +-+----------+----+-+
  | |          |      |
  +-+----------+      |
              +------+

-notice how the the different sizes align with the center frame.
-the corners will always be a 1:1 ratio.
-the sides (n,s,e,w) are a 1:1 ratio from center to edge, but varry from corner to corner (n will be a varied width from nw to ne)

Shrink and Stretch
-these names were the hardest part, because they do no operate as you would image.

shrink=true, stretch=true: image will scale, and will not repeat
shrink=true, stretch=false: image will not scale, repeated image will scale
shrink=false, stretch=true:image will not scale, and will not repeat (default)
shrink=false, stretch=false: image will not scale, repeated image will not scale

shrink true=scale, false=dont scale
stretch true=dont repeat, false=repeat

-as you can see the words do not really match their meanings
-the way i remember is shrink=scale, stretch=opposite of repeat

with clever planning you can setup very useful rectanglestyle's. i decided to post this after working out a background with a large gradient where the bottom faded to black, and thought someone might be able to learn from my headache :)

Landiin 11-11-2005 09:12 PM

The important thing to remeber when making rects is;
  • NW, NE, SW and SE should be the same size.
  • All north images should be the same heigth as the NW and NE images, same for topwest and topeast. Width just needs to be big enuff to get the texter.
  • All south images should be the same heigth as the SW and SE images, same for bottomwest and bottomeast. Width just needs to be big enuff to get the texter.
  • All west images should be teh same width as teh NW and SW images. Heigth just needs to be big enuff to get the texter.
  • All east images should be the same width as the NE and SE imaages. Heigth just needs to be big enuff to get the texter.


All times are GMT -5. The time now is 05:01 AM.

vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI