First of all I want to excuse my grammar, I’m from Germany. But never the less I hope you understand what I mean
Because of the fact, that my in game characters are nearly all dwarves I thought that maybe I could create my own interface for dwarves with some ornaments and stuff. I’m at the very beginning of the progress of my work, but here’s my first problem I can’t figure out my self.
I’d like to create a special frame for all the window-boxes like the inventory, quest book, character window and all the other ones. So I looked through other UIs and also downloaded this package
of all the files that could be customized and I learned al lot from all that. But my problem is that I’d like to resize and reposition the images for the corners of the boxes and in every UI I looked at, the corners are all the same size of 36x36 and the same position like the original files. What I’d like to do should show the following picture:
The red frame should be the original outline of all the windows, so the Position of the upper left corner of the red line is 0, 0. The green square should be my own picture for the corners of the boxes (it should be at the position -4, -4 and has a size of 20x20 pixels) and the blue rectangles should be my image for the left respectively the upper frame (so the left one should be on position 0, 16 and has a size of 16x200).
In all the .xml files of other custom UIs exists only one line for the picture of the corner or borders which applies for every window. This looks like that:
<Mapping ArtAssetID="box_silver_upper_left" FileName="box\box_silver_upper_left.tga"></Mapping>
So my question is, whether it is possible to have only one line for the size and position for this graphic that also applies for every window, like this:
<Element ID="Base_Box_Silver_TopLeft" X="-4" Y="-4" Width="20" Height="20"> </Element>
Or do I have to edit every window separately?
But at a second thought the question is, how I could specify the position for let’s say the lower right corner. Nearly every window has an other size, so I possibly couldn’t use the following line, right?
<Element ID="Base_Box_Silver_BottomRight" X="ParentWidth-16" Y=" ParentHeight-16" Width="20" Height="20"> </Element>
Of course not with “ParentWidth” as a parameter, but something similar.
But to cut the long story short: Is it possible at all to create a border stile as I intended?
Thanks in advance