Resurrecting, due to apathy from developers.
What I’m trying to do is actually very, very simple. I’ve got a parent widget class that inherits from U_UserWidget, named ‘MY_UserWidget’.
Now, let’s say I’ve made a background that is going to be the same for all widgets that I use. I place it in the designer, it’s an Image, I set it up, everything is fine.
Next, I make a child of MY_UserWidget. What I’d expect is to have all the variables, functions and **design **from the parent to be there. I get all functions and all variables that are NOT from the designer and no design at all.
I’ve got 150+ screens of UI that all share elements, slate styles are one way, but shared widgets are not going to work this way.
Now imagine there’s no z-order between widgets, all you can do is make ONE MASTER WIDGET and create ALL 150 * whatever widgets INSIDE it. Of course it’s impossible to do by hand, so I tried spawning them in.
And guess what? Widgets forget their designer variables and spawn as 0px * 0px at 0,0 with everything reset.
So on the MY_UserWidget I’ve added ‘customPosition’, ‘customSize’ and ‘customAnchors’ variables, and on child construct I reference them and set those values manually. But it doesn’t work every time because of reasons (I presume the DPI Scaling), there are constant errors when I change one variable on one child of a child of a child, the whole chain breaks down and everything is broken, because when you set the size of an element to 1920x1080, when you change to 16:10 resolution it’s not scaling properly.
So my question is: how to make a 150+ screens UI with a lot of tabs, screens, popups, tooltips and generally complicated thig, when there’s no inheritance that works?
When (and even IF) it’s going to be fixed? People are talking about it for over a year now and there’s no word on it.
Let me know if I can be of any help, I’ve figured out SOME workarounds, but all of them are very manual and hacky and will make a designer rip his hair out having to setup the widget elements and then setup it’s exact position and size, anchors that don’t make any sense and it will still look bad.
I’m sorry if I sound bitter, I am, I get paid to do this and there’s no progress.