Facepunch / sbox-issues

174 stars 11 forks source link

Visual UI Editor #5968

Open DrakeFruit opened 1 month ago

DrakeFruit commented 1 month ago

For?

S&Box

What can't you do?

Create UI in a way that's intuitive without code

How would you like it to work?

UI creation through objects and the inspector, like Unity does it (but not shit)

What have you tried?

making 3D UI with traces from the camera and colliders

Additional context

No response

bub-bl commented 1 month ago

In a "drag and drop" way ? Like wordpress ?

DrakeFruit commented 1 month ago

yeah, but less shit :D

Retroeer commented 1 month ago

Razor is powerful, I ~hate~ love it, but it is beyond frustrating to use in settings where positioning isn't calculated and liberty is to be taken. If you wanted to create a circle, and then have a triangle image extend outwards from inside of it, you have to first make a div for the circle, layer the image behind it, then carefully using top, bottom, whatever the fuck position it into place, and if you HEAVENS FORBID want to rotate it, you have to do that entire process all over again, and not even then you're guaranteed to perfectly center it, because you're literally working with decimal values because of how fucking frustrating it is A visual UI editor would probably be rather limiting compared to what Razor can do, but frankly all I want out of it is the ability to position things in real-time without having to alt tab 20 seconds to make sure something is close enough to being centered

DrakeFruit commented 1 month ago

I imagine you could get a visual editor on par with something similar to action graph or the particle components

garrynewman commented 1 month ago

This is something I want, but needs to be prototyped and thought about.

IMCraytex commented 1 month ago

This would be amazing, And is something that would help streamline and provide more accessibility for S&Box. allowing more users to come in and make great games. Love the suggestion and I'm All for it!

DrakeFruit commented 1 month ago

as far as I know this was already planned, but I couldn't find an open issue for it

bub-bl commented 1 month ago

If you do this feature, try to keep Razor. Razor is very good for UI and personaly, im more comfortable with Razor than an Visual Editor

DrakeFruit commented 1 month ago

why would razor be removed? they didn't remove c# when action graph was added lol