Jump to content

Recommended Posts

Hi! so i've been wanting to do this for awhile now and only recently gave a crack at it. I wanted to have my character Wramp's sanity ui replaced with another color. So I started looking around to see if making a custom badge was possible and followed a tutorial on how to get it to work. right now i'm stuck on: 

[00:00:31]: [string "scripts/mainfunctions.lua"]:1626: attempt to call global 'SetGlobalErrorWidget' (a nil value)
 

And here's what my modmain looks like with the function that adds the widget

--METER STARTS HERE
wramp_shadowbadge  = require "widgets/wramp_shadowbadge"
AddClassPostConstruct("widgets/statusdisplays", function(self)
if self.owner.prefab ~= 'wramp' then
     return
end
 
self.name = self:AddChild(wramp_shadowbadge(self.owner))
self.name:SetPosition(-125, 75, 0) --Best to change these all to zero and start the game to see where it is. Then change the numbers one by one to get a better idea of what each number does.
 
end)
--METER ENDS

I'm pretty sure it's missing some nessesary parts. Any help would be really awesome! My character IS on the workshop now if anyone wants to try him :wilson_love:

So i've got my resource meter to gain and lower properly; the issue is I have no idea how to give it a texture. I'm going to do a little testing to see If I can figure something out. if anyone has any resources on adding UI Icons please send them my way!

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...