Doodle Monster Posted August 8, 2025 Share Posted August 8, 2025 Hi! So, i've been working on my modded character for some time now and He's almost done. I've been wondering about how to add a custom UI meter that would replace regular sanity essentialy it would appear maxed out when insane and empty when sane. If anyone has any tips or examples I can look at it would mean allot! (I will say nobody gets notified when I reply because i'm a new user and I can't send messages, so I do tend to get ghosted allot even though I reply. So be aware of that) I haven't really figured out how to do custom animation for items or anything like that yet, but I figure for a custom sanity meter I would only need a few icons. Link to comment https://forums.kleientertainment.com/forums/topic/167487-help-adding-a-custom-ui-sanity-meter-replacement-similar-to-wandas-age-meter/ Share on other sites More sharing options...
FerniFrenito Posted August 14, 2025 Share Posted August 14, 2025 Hello. I've been digging through the game files and I found what you need: The Badge class, located in widgets/badge.lua, allows you to create a UI object (from what I understand of the code) similar to those used for food, sanity, and, as you mentioned, Wanda's ability. In fact, this is the same class they all use. To create your object, I recommend looking at the code for widgets/hungerbadge.lua and widgets/sanitybadge.lua. I wasn't sure if your question was about how to create it or how to replace it, so if you need to know how to replace it, just let me know and I'll try to find something to help you. I hope this was helpful. Link to comment https://forums.kleientertainment.com/forums/topic/167487-help-adding-a-custom-ui-sanity-meter-replacement-similar-to-wandas-age-meter/#findComment-1831879 Share on other sites More sharing options...
Doodle Monster Posted August 19, 2025 Author Share Posted August 19, 2025 Thanks for the pointers! Will give it a go when I get a chance Link to comment https://forums.kleientertainment.com/forums/topic/167487-help-adding-a-custom-ui-sanity-meter-replacement-similar-to-wandas-age-meter/#findComment-1832248 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now