Quote:
Originally Posted by abbelyn
Love the statsbar setup, was wondering if auto resizing aspect is completely tied in or if there is an easy way to add it into another statbar?
I got 1 possibly 2 more bars I need get into a more workable format for my screen. I got setup like your code is, except for the checkboxes & I can't seem to get it to decrease the gap between items (gap is about equal to the textspace of the biggest item). I can post or PM you what I got so far if you wish to take a look =)
I'm still rather a n00b at the XML modding.
|
Be glad to help out if I can. Not sure what you mean about the resizing?
The stats are in individual pages inside a composite. The composite is set to Horizontal and spacing type is set to Spread (which is default). I give each of those pages a max/min size so that they are not resized when the window is resized, or elements are hidden. Instead, the gap between the objects is the only thing that changes.
If you use a spacing type of Fill, it will simply fill from left to right, with the same spacing between the objects. You can adjust this with the "Spacing" property however.
The trick though is what I mentioned about the MinimumSize/MaximumSize, set this both to the same thing (the size that it should be), and then the composite can't change that.
I did most of it in UIBuilder. It will show composite stuff pretty well. Just when you change the size of an object, toggle it's visibiliy off then back on, so that it re-aligns everything.