EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > XML Modification Help & Info

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 11-11-2005, 08:38 PM
GenesisRage GenesisRage is offline
A Darkpaw Brute
 
Join Date: Dec 2004
Server: Everfrost
Posts: 43
Default 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
Reply With Quote
  #2  
Unread 11-11-2005, 09:12 PM
Landiin Landiin is offline
Slayer of clock cycles
This person is a EQ2Map developer.
Featured
 
Join Date: Nov 2004
Server: Oasis
Posts: 3,464
Default

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.
__________________
Landiin's EQ2MAP Updater Discussion Download

Last edited by Landiin : 11-11-2005 at 09:15 PM.
Reply With Quote
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:04 AM.


Our Network
EQInterface | EQ2Interface | WoWInterface | LoTROInterface | ESOUI | MMOUI