Jump to content

Recommended Posts

Good evening fellow dst moders,
 
I'm wondering if it would be a hard task to make a simple mod that hides the HUD during ingame one way or another, such as pressing a key combination. 
 
I have no knowledge whatsoever about lua scripting or moding don't starve. What I do know is the console command for hiding the HUD:

ThePlayer.HUD:Toggle(1)ThePlayer.HUD:Toggle(0)%(1) <-- hides the HUD%(0) <-- unhides the HUD

I remember there being a mod doing what the console commands above do, but the mod was available for vanilla Don't Starve. (workshop link, I plan on testing it to see if it still works)

 

Would anyone be up for the task or at least offer me an idea on how difficult it would be to have such a feature as a mod on the steam workshop? :-)

Edited by ailailou

@ailailou, that's pretty simple. Here you go, there isn't an icon for the mod, however, if you want to provide an Icon I will add you to the author and put the icon in it for others to see.

 

Simply press H to turn on or off the HUD. 

 

I even uploaded it to the workshop for you to use. http://steamcommunity.com/sharedfiles/filedetails/?id=375509193

 

Edited by Kzisor

Oh my, works like a charm! Thank you! After starting the thread I had a quick glance at the Lua scripting language and the FAQ around here on the mods subforum and after looking through the files you've included in the mod zip I was curious to see if I could add the image icon myself and some other minor details.

 

I included the image for the icon but for it to load in the ingame Mod menu it should have a .tex file and a .xml as well, am I right? :grin: So, I did some research around here on the forums and found some tools, I got my hand on the .tex and .xml files, and everything shows up pretty nice in the mod menu.

 

Other stuff I added:

  • forumthread, redirects to this thread
  • a short description for the mod

 

-edit- Oh my, it's even already on the Steam Workshop, was about to mention if that would be possible but you were 2 steps ahead of me. I am really thankful @Kzisor! It was really interesting trying to learn some basic lua scripting stuff! :D

Toggle HUD.zip

Edited by ailailou

Thank you!^^ Oh, and one more thing, which I just couldn't fix myself and I can't tell why it doesn't work.

 

Before replying to the thread I had a second version of the icon with a border so that it would stand out more:

 

444qba7.png

 

made the .tex file and whatnot, and once the mods menu loads I start scrolling down and just before the mod should appear in the list the game crashes. No idea why this happens. The version without borders works fine.

 

Also, I prepared 2 screenshots as well in case you want to add them to the steam workshop. As for the thumbnail in the steam workshop, I saw that some mods have this really nice gif as a preview. So I made a gif as well. :grin: Feel free to add them to the steam page if you want to.

 

 

 

 

Toggle HUD (no border).zip

Toggle HUD (with border).zip

Screenshots+Gif.zip

Edited by ailailou

I have no idea how the .png with the border ended up with that dimension because I was working in the same template in Gimp in which I created the border-less one. :grin:

 

Alrighty then, I'm attaching the last version of the mod with the newest and correctly sized icon. I tested it out and it should work. I made the text color the same as the border one, because Steam Workshop has a dark background so only the border was visible in the mod list.

 

Thank you for the the great collaboration @Kzisor!^^ 

 

 

 

 

 

 

Toggle HUD (last icon version).zip

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