. . . Posted July 27, 2021 Share Posted July 27, 2021 (edited) hello, i use a mod which all of its code is basically this in modmain.lua local function HideMapControls(self) self.rotleft:Kill() self.rotright:Kill() self.pauseBtn:Kill() self.minimapBtn:Kill() end AddClassPostConstruct("widgets/mapcontrols", HideMapControls) what it does is get rid of these icons on the bottom right of the screen because I have bad OCD I like my screen to have as little UI/HUD especially when I feel it's kinda pointless since all these icons you can preform their actions by pressing keys so I prefer have them gone. In the latest beta DST update this code now causes when a player dies or revives the game instantly stops responding and you have to close it, i have no idea how to fix it so if anyone smart knows a way that it can be fixed or same thing can be achieved by making these icons invisible I'd be very grateful, thank you for your time. have a great day ! Edited July 28, 2021 by . . . Link to comment Share on other sites More sharing options...
-t- Posted July 28, 2021 Share Posted July 28, 2021 Try this AddClassPostConstruct("widgets/mapcontrols", function(self) function self:Show() self._base.Hide(self) self:RefreshTooltips() end end) 1 Link to comment Share on other sites More sharing options...
. . . Posted July 28, 2021 Author Share Posted July 28, 2021 thanks a lot bro it works just like before now but no crash Link to comment 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