I've been testing out the new UI natives, and playing around with clearing and re-customizing the UI.
My thought process was to hide everything then just display what I want and move/transform them to my needs.
This works just fine for command buttons and portraits, however I'm unable to do the same for item buttons.
Well, not completely at least.
Below I've attached some screenshots and snippets of code that illustrate my problem.
Item buttons don't show as intended.
Example: https://i.imgur.com/tddD707.jpg
Item buttons show as intended
Example: https://i.imgur.com/mBw2iBt.jpg
I'm thinking there might be a bug that's blocking item buttons from re-showing after being hidden.
Does anyone have some insight on this/have you run into this issue as well?
My thought process was to hide everything then just display what I want and move/transform them to my needs.
This works just fine for command buttons and portraits, however I'm unable to do the same for item buttons.
Well, not completely at least.
Below I've attached some screenshots and snippets of code that illustrate my problem.
Item buttons don't show as intended.
Example: https://i.imgur.com/tddD707.jpg
Code:
init
doAfter(10) () ->
hideOriginFrames(true)
let gameUI = getOriginFrame(ORIGIN_FRAME_WORLD_FRAME, 0)
gameUI.setScale(.01)
//SetHeroPortraits()
ShowOriginElement(ORIGIN_FRAME_ITEM_BUTTON, 5)
function ShowOriginElement(originframetype elementName, int index)
for int x = 0 to index
var fh = getOriginFrame(elementName, x)
fh.show()
fh.clearAllPoints()
fh.setScale(1)
fh.setAbsPoint(FRAMEPOINT_BOTTOM, .2 + x*.04, .2)
Item buttons show as intended
Example: https://i.imgur.com/mBw2iBt.jpg
Code:
init
doAfter(10) () ->
hideOriginFrames(false)
let gameUI = getOriginFrame(ORIGIN_FRAME_WORLD_FRAME, 0)
gameUI.setScale(.01)
//SetHeroPortraits()
ShowOriginElement(ORIGIN_FRAME_ITEM_BUTTON, 5)
function ShowOriginElement(originframetype elementName, int index)
for int x = 0 to index
var fh = getOriginFrame(elementName, x)
fh.show()
fh.clearAllPoints()
fh.setScale(1)
fh.setAbsPoint(FRAMEPOINT_BOTTOM, .2 + x*.04, .2)
I'm thinking there might be a bug that's blocking item buttons from re-showing after being hidden.
Does anyone have some insight on this/have you run into this issue as well?