Recommended Posts

makar5000    51

Hey everyone! I'm trying to make a widget, that'll show up when some event in the world is pushed. I've made a widget using savindicator.lua, but I don't know how to add it to the player, and how should I open it on some event. Does anybody knows how to do it? 

Thanks for your replies! I can give you elegant skin, if someone'll help me!

My mod is riiiight here:

widget.rar

 

Edited by makar5000

Share this post


Link to post
Share on other sites
Lumina    1,197

As far as i know, widget are hard. Not impossible, but enough to limit the number of people with the knowlegde to help you.

  • Like 3

Share this post


Link to post
Share on other sites
Lampofulmine    289

@makar5000 I'm not a DST modder but my team and I did implement a new widget on DS/DLCs. What I can tell you is that instead of basing ours on widget, we based our on a badge. In order to "connect" it to the player we added a few lines of code in a postinit section (which you don't appear to have) where we used the sim.lua to directly attach it to player and the player.lua to call for events and such... Hope this helps !

Share this post


Link to post
Share on other sites
mrboosch    4

@makar5000 @Lampofulmine I have successfully created a widget. I, too, based mine off of badge - and I used netvars to pop the data to it. You should be able to pull down the Tak the Goblin mod to see it, and if you cant, let me know and we can connect via steam.

Share this post


Link to post
Share on other sites

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