Jump to content

Recommended Posts

I'd like to implement some custom HUD elements into my mod, as well as some other elements similar to that, but I have no idea where to start with learning how to use Widgets. There doesn't seem to be a solid tutorial or guide on how to use them, and every mod that I look at that uses them are overly confusing and complicated.

If you could point me in the direction of a tutorial I may have missed, it would be greatly appreciated of all of you, or at the very least, a good mod to learn them from. For now I'm looking into beefalo widgets to learn, but it's weird.

The only tutorial that I found when I started to learn widgets was this one:

Widgets are quite complicated, at least for me, so it's not an easy task.
What kind of widgets do you have in mind to do? If you tell me, I could perhaps give you some help.

  • Like 1

Custom UI elements are mostly placing elements on a root element and code for getting that root element on the screen in the first place.

Everything child added to the parent element is placed relative to it as well, which makes placement convenient.

Let me know if you run into any issues!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...