View Single Post
  #13  
Unread 03-05-2005, 10:19 AM
SOE_Bobble SOE_Bobble is offline
EQII Developer
Yes this person is from Daybreak!
 
Join Date: Aug 2004
Posts: 82
Default UISplitter Sample

How to use UISplitter:

Splitters are currently not be available to test in the game (even on the test server.) Might be a case of letting you have access a little too soon.

However, you can play with them in UIBuilder.

Think sliderbar without the thumb/slider--
It needs a style - horizontal means the splitter moves vertically.
Background is the bar image. Startcap/Endcap draw on either end.

And then assign a widget/page to ControlBefore and ControlAfter. Before should be above or to the right, after = below/left.

You can set a minsize and/or maxsize on the two controls if desired.

Here's a sample window with a splitter:
Code:
<?xml version="1.0" encoding="utf-8" ?> 
<Page Name="root" ScrollExtent="800,600" Size="800,600">
  <Page Name="Sample" ScrollExtent="320,240" Size="320,240">
    <SplitterStyle Name="SplitterStyle" /> 
    <Page BackgroundColor="#0000FF" BackgroundOpacity="1.000" Name="Before" ScrollExtent="316,99" Size="316,99" /> 
    <Splitter BackgroundColor="#F0F0F0" BackgroundOpacity="1.000" ControlAfter="After" ControlBefore="Before" Location="4,106" Name="Splitter" ScrollExtent="310,14" Size="310,14" Style="SplitterStyle" /> 
    <Page BackgroundColor="#00FF00" BackgroundOpacity="1.000" Location="26,127" Name="After" ScrollExtent="268,98" Size="268,98" /> 
  </Page>
</Page>
It may be a challenge for UI mods to use the splitter for windows where the code is searching for widgets. Adding another page as a container solves lots of layout issues, including those for the splitter. But by default, the code doesn't search children for widgets. There is a fix for that, but it hasn't been applied everywhere yet.

The first "official" splitter will be used for the quest journal window in an upcoming update. To keep older versions from breaking, it will search subpages for widgets. If that proves useful, we will likely apply that to more windows.


MrBobble
Reply With Quote