Can this be done? I've got a UI element which is part of the UnitPanel and uses a PullDown. Much of it gets cut off at the bottom of the screen, though.
Can't work out what AutoFlip does, but the code to "pop-up" rather than "drop-down" the menu is surprisingly simple
Code:
pullDown:CalculateInternals();
local offsetY = -(pullDown:GetSizeY() + pullDown:GetGrid():GetSizeY())
pullDown:GetGrid():SetOffsetVal(0, offsetY)
Not tried this with CivV, but I can't see why it wouldn't work. If you want to reverse the order of the items (so if they drop-down as A, B, C they would then pop-up as C, B, A (ie A will always be nearest to the menu control) you can add a <StackData> item with the growth set to Up rather than Bottom)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.