E.g. if you have a dialog with width 400,
And a button with with 100.
And you want to use left alignment on that button, but have it in the middle of the dialog.
Then the width offset is ( 400 / 2 ) - ( 100 / 2 ).
Well, that's pretty easy math, but as long as you keep these numbers inside your head it's not hard to design a very accurate UI on paper before porting it into SC2.
Is there a nice visual editor for dialogs in the starcraft 2 editor? I don't want to place them by tweaking x and y values...
I had this same thought the other day. Would be nice if somebody could make a program to show what dialogs would look like in real time.
You can just keep track of the math.
E.g. if you have a dialog with width 400,
And a button with with 100.
And you want to use left alignment on that button, but have it in the middle of the dialog.
Then the width offset is ( 400 / 2 ) - ( 100 / 2 ).
Well, that's pretty easy math, but as long as you keep these numbers inside your head it's not hard to design a very accurate UI on paper before porting it into SC2.