EQ2Interface.com
Search Downloads


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

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 06-15-2007, 05:34 AM
Velikar Velikar is offline
A Young Mystail Rat
 
Join Date: Jun 2007
Server: Mistmoore
Posts: 2
Question 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.

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!!
Reply With Quote
  #2  
Unread 06-15-2007, 12:29 PM
Zonx's Avatar
Zonx Zonx is offline
A Green Troll
This person is a EQ2Map developer.
Featured
 
Join Date: Dec 2004
Server: Blackburrow
Posts: 2,221
Default

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.
Reply With Quote
  #3  
Unread 06-15-2007, 10:56 PM
Velikar Velikar is offline
A Young Mystail Rat
 
Join Date: Jun 2007
Server: Mistmoore
Posts: 2
Default

Perfect. Exact description of what I was looking for. Thanks much!
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 03:04 PM.


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