View Single Post
11/08/15, 08:05 PM   #6
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 613
Originally Posted by merlight View Post
ZO_HorizontalScrollList is of no use here. It's written for a fixed number of items of equal width.
Nah, you can do it:




XML:
Warning: Spoiler


LUA:
Warning: Spoiler



I didn't do this in the screenshots, didn't think of it until afterwords, but if you wanted (you probably would) you can change the DefaultEntryAnchor so that the "selected" control gets aligned left instead of center.
Lua Code:
  1. -- add:
  2. local LEFT_PADDING = 50
  3.  
  4. function patternList:SetDefaultEntryAnchor(control, offsetX)
  5.     --control:SetAnchor(CENTER, self.control, CENTER, offsetX)
  6.     control:SetAnchor(LEFT, self.control, LEFT, offsetX + LEFT_PADDING)
  7. end

Last edited by circonian : 11/09/15 at 05:30 PM.
  Reply With Quote