Insanity
May 15th, 2007, 19:38
I was looking at the graphics_frame.xml file because I want to add my own frame. Looking at the slottedmodifier definition, I see that it appears the left rect are offset from the middle rects. Assuming I am reading the definition correctly. I am not familiar with .xml much, wasn't sure if there was a purpose to this or not?
<framedef name="slottedmodifier">
<bitmap file="frames/slottedmodifier.png" />
<topleft rect="0,0,37,12" />
<top rect="37,0,160,12" />
<topright rect="212,0,12,12" />
<left rect="0,12,37,187" />
<middle rect="37,12,160,187" />
<right rect="212,12,12,187" />
<bottomleft rect="0,199,37,12" />
<bottom rect="37,199,160,12" />
<bottomright rect="212,199,12,12" />
</framedef>
Am I wrong, or is there a reason?
I wanted to define a custom frame and couldn't figure out why it would be defined this way.
<framedef name="slottedmodifier">
<bitmap file="frames/slottedmodifier.png" />
<topleft rect="0,0,37,12" />
<top rect="37,0,160,12" />
<topright rect="212,0,12,12" />
<left rect="0,12,37,187" />
<middle rect="37,12,160,187" />
<right rect="212,12,12,187" />
<bottomleft rect="0,199,37,12" />
<bottom rect="37,199,160,12" />
<bottomright rect="212,199,12,12" />
</framedef>
Am I wrong, or is there a reason?
I wanted to define a custom frame and couldn't figure out why it would be defined this way.