View Single Post
  #5  
Unread 03-08-2010, 09:23 AM
EQAditu's Avatar
EQAditu EQAditu is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Mar 2005
Server: Permafrost
Posts: 256
Default

First off, if a style has a forward slash at the start of it, that means that it's a rooted reference. Meaning it starts from the eq2ui.xml file and navigates outwards. (This is why you have to open that file with UIBuilder or all rooted references to the default UI break)

If you make a new RectangleStyle, just put it in your custom XML file. Don't overwrite the default files or you know what will happen. In my previous post, I said to put this new style in the root Page element of your XML file. Afterwards you just reference the RectangleStyle by name. You can reference the style from anywhere within that window, not just elements that are peers of it.

Code:
<Page Name="MyCustomWindow" ... >
    <RectangleStyle Name="MyRectStyle" Center="MyCenterTexture" ... />
    <ImageStyle Name="MyCenterTexture" ... >
        <ImageFrame Name="image" Source="some.dds" SourceRect="0,0,100,100" ... />
    </ImageStyle>

    <Page Name="Background" Size="100,100" RStyleDefault="MyRectStyle" ... />
</Page>
Pretend that "some.dds" is a file in the same folder as your window file.
Reply With Quote