EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   XML Modification Help & Info (https://www.eq2interface.com/forums/forumdisplay.php?f=22)
-   -   Chat Window Background Color (https://www.eq2interface.com/forums/showthread.php?t=8590)

Velikar 06-15-2007 05:34 AM

Chat Window Background Color
 
I'm looking for a way to change the black chat window background. Figured out how to change a bunch of other stuff, yet cant quite find this one.

Been around the web and back trying to figure this out. I'm probably just way to tired and missing something obvious in UIEditor. :confused:

EX:
http://www.eq2interface.com/downloads/full4641.jpg

This has a nice gradient that I like. But I cant figure out what files are specifically doing it, because I don't know where to look. I don't know if its an XML or DDS file that needs changed, or just a color value somewhere.

Not an XML person so I don't know quite what to look for.

Any help would be greatly appreciated, Thx!!

Zonx 06-15-2007 12:29 PM

This easiest solution is to just grab the chat window and DDS files from the mod in your screenshot, but I'm going to assume you want to know how to code this yourself.

Any background with a texture or gradiant will ultimately be a reference to one or more DDS files. For resizable windows, this is typically a reference to a RectangleStyle which references one or more ImageStyles, which in turn reference an ImageFrame.

ImageFrames define a rectangle within a DDS file to be used. You provide the ImageStyle with a path to the DDS file and cords for the upper left and lower right corners of the rectangle (or image slice). This is the most basic way to place images into the UI. You must define an ImageFrame even if you're using the entire DDS file as 1 image.

ImageStyles are used to make an ImageFrame reusable by name rather than specifying the DDS file and cords every time you want to use the image. It also allows the game to run more efficiantly by only loading the image into memory once. Other styles that make use of images generally must refer to an ImageStyle not the ImageFrame directly.

RectangleStyles make use of multiple ImageStyles to create rectangles that tile and/or stretch those images to fill the space. In most cases, the background of a resizable window will reference a RectangleStyle.

The default chat window uses a simple solid black background. The object can be found at root.MainHUD.MainChat.WindowFrame.Bkg. To change the background to a tileable image, you're going to need to give it an RStyleDefault reference to a RectangleStyle. If you're unfamiliar with how to create the styles needed for this, you might want to look at the Bkg object in the Acheivments window. Note you can double-click references in UIBuilder to jump to that object. You will probably need to...

1) Get a copy of the desired background graphic (DDS file).
2) Create a new ImageFrame (in XML) for that DDS file.
3) Create an ImageStyle so its reusable.
4) Create a RectangleStyle so the image tiles and/or stretches when resized.
5) Plug the name of that RectangleStyle in as the Bkg object's RStyleDefault value.

Velikar 06-15-2007 10:56 PM

Perfect. Exact description of what I was looking for. Thanks much! :nana:


All times are GMT -5. The time now is 05:21 PM.

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