PDA

View Full Version : chatbox difficulties



Azrael Nightstar
August 22nd, 2006, 22:12
Hey all, another installment of "Az is stuck" here. I changed the graphic for the chatbox, based on the original sizing, for the below:
https://img247.imageshack.us/img247/3153/chatboxbj8.th.png (https://img247.imageshack.us/my.php?image=chatboxbj8.png)

But when it's implemented, it puts a little dark bar through the box near the bottom, like so:
https://img370.imageshack.us/img370/5676/desktopjy0.th.jpg (https://img370.imageshack.us/my.php?image=desktopjy0.jpg)

At first I thought it was that I needed to change the sizes of the rectangles in the frame definitions, but that doesn't seem to do anything. The current setup for them:


<framedef name="chatbox">
<bitmap file="rulesets\CP2020\frames\chatbox.png" />
<topleft rect="0,0,11,16" />
<top rect="11,0,497,16" />
<topright rect="508,0,21,16" />
<left rect="0,11,11,491" />
<middle rect="11,11,497,491" />
<right rect="508,11,21,491" />
<bottomleft rect="0,507,11,23" />
<bottom rect="11,507,497,23" />
<bottomright rect="508,507,21,23" />
</framedef>

<framedef name="chatboxhilight">
<bitmap file="rulesets\CP2020\frames\chatboxhilight.png" />
<topleft rect="0,0,12,12" />
<top rect="12,0,501,12" />
<topright rect="513,0,16,12" />
<left rect="0,12,12,460" />
<middle rect="12,12,501,460" />
<right rect="513,12,16,460" />
<bottomleft rect="0,480,12,50" />
<bottom rect="12,480,501,50" />
<bottomright rect="513,480,16,50" />
</framedef>

I also suspected the chatboxhilight, so I made it a totally transparent image, but still nothing. What am I missing? Who shall rid me of the evil black bar!?

Toadwart
August 23rd, 2006, 05:01
It all looks black to me. Are you referring to the single line where the focus is? The line that you type the chat into?

The location of that area (and the ACT/OOC/etc icons is defined in another file (gameelements.xml). Try altering the <chatwindow> stuff in that file.

Azrael Nightstar
August 23rd, 2006, 07:10
Apologies, the difference is subtle and requires a lot of contrast to see, I should've given some more info. It's horzontal, 2 pix wide, and located at about 1/4 of the way up the dark portion.

I figured it out, stupid mistake:( The edges of the dark portion where it meets the silver are slightly darker, and I didn't push the outer rectangles in far enough to where the center was all a uniform color. Oh well, I'll pay more attention next time I guess

Toadwart
August 23rd, 2006, 09:13
Your eyes are better than mine :eek:
Even with the contrast at 100% I couldn't see the difference. Though I was able to detect it using GIMP(a freeware graphics editor)