View Single Post
Old 04-09-07, 08:22 AM   #14
CaptainCox
Sea Lord
 
Join Date: Feb 2007
Location: A Swede in Frankfurt am Main
Posts: 1,897
Downloads: 4
Uploads: 0
Default

OK been at this now for 2h or so...

I tried to simply work with 100%-50% as its fast and easy to calculate.
Worked with the "Eraser"

[G31 I20]
Name=Eraser
Type=1032;Button
ItemID=0x31010006
ParentID=0x31010000
Pos=8,20,28,50 (half size 56=28 and 100=50)
Zone= 8 340 28 50 0 1 0x31010000 0 -0.5 0x31010006 0.15 1.7 0 0
Materials=4
Display=2;Linear
Mat 0=data/menu/gui/layout/navigationtools.tga
Crop 0=0.9375,0,0.02734375,0.048828125 (divided 28/1024=0.02734375 and 50/1024=0,048828125)
Mat 1=data/menu/gui/layout/navigationtools.tga
Crop 1=0.9375,0,0.02734375,0.048828125
Mat 2=data/menu/gui/layout/navigationtools.tga
Crop 2=0.9375,0.432617,0.02734375,0.048828125
Mat 3=data/menu/gui/layout/navigationtools.tga
Crop 3=0.9375,0,0.02734375,0.048828125
MatFlags=0x9
TexFmt=0x0
Font=1
Text=0
TextFlags=0x0
StatesColors=0xB0B0B0FF, 0xFF, 0xFFFFFFFF, 0xFFFFFFFF
ToolTipText=2257

Looks like this


I also tried to half the size of the .dds and adjusted the calculation accordingly,

28/512 etc etc, with the same wierd result.

I also wonder what these are

Mat 2=data/menu/gui/layout/navigationtools.tga
Crop 2=0.9375,0.432617,0.02734375,0.048828125

???

@zAmboni, did you actually get this to work or?
__________________

Last edited by CaptainCox; 04-09-07 at 08:35 AM.
CaptainCox is offline   Reply With Quote