szyszek
(szyszek)
March 23, 2014, 8:52pm
13
This is some of the nastiest design I’ve ever worked with, it even makes oldschool Win32 programming seem easy/fun.
Just to fill in the color of an SNew argument, I’ve gone through about 6 classes/struts that do nothing but wrap functoin call and do half a dozen implicit conversions just to get a data structure Slate can work with. It’s simply disgusting.
The only conclusion I can come to is that we’re supposed to be designing 4-6 classes for each widget, because half a dozen half a dozen line function-arguments (a function that takes two arguments, which are two function calls, that take 2-3 arguments each, that take 2-3 function calls each and so forth…) aren’t how good C++ is written.
For example,
.ColorAndOpacity(this, FLinearColor(FColor(255, 213, 160, GetCurrentOpacity() * 255))
is bad
what exactly would you like to do? Do you want to have a color parameter in your widget? What kind of widget would you like to make? Specify your question to make it easier to help you.