Welcome, Guest.
Username: Password: Remember me

TOPIC: UI_Spacer (blankspace for visual UI organization)

UI_Spacer (blankspace for visual UI organization) 5 months 1 week ago #1

Just a simple proposal. It doesn't even have to be an integer or anything like shown below (that's just how I do it on ENB)
uniform int spacer1 < ui_type = "blank"; > =  0.0;

In theory, you wouldn't even need to specify min/max values. (Maybe not even a default value?) As long the int is set to "ui_type" blank, you would just render it as a blank spacer on the UI with nothing to tweak and no label.

If you added this, I could just update my macros to do something like:
UI_SPACER(1)
Last Edit: 5 months 1 week ago by TreyM.
The administrator has disabled public write access.

UI_Spacer (blankspace for visual UI organization) 5 months 1 week ago #2

I'd rather want to avoid adding dummy variables that don't do anything, since they'll just bloat constant buffer memory for no real reason. But I could add something to specify spacing on existing variables, so that space is inserted right before or after them. Maybe something like the following?:
uniform float foobar < ui_type = "slider"; ui_spacing = "before"; > = 0;
Cheers, crosire =)
The administrator has disabled public write access.
The following user(s) said Thank You: TreyM

UI_Spacer (blankspace for visual UI organization) 5 months 1 week ago #3

That's a fantastic idea and is much better than making a dummy variable.
The administrator has disabled public write access.