Don't Starve

Don't Starve

Minimap HUD
HUD消失BUG的解决方法/Solution to HUD disappearance
mod设置中调整"update throtting"(我开的6ups)就能显著提高帧数。但是这样会导致开关游戏地图时,很大概率会让整个游戏HUD消失并且无法正常退出游戏。以下是解决方法:
1.找到这个mod源文件里的dont_starve\mods\workshop-188251898\scripts\widgets\minimapwidget.lua这个文件
2.打开它找到function MiniMapWidget:OnHide()这个函数
3.将如下代码替换掉这个函数(从function开始到end)
function MiniMapWidget:OnHide()
if self.minimap:IsVisible() then
self.minimap:ToggleVisibility()
end
self.minimap:Zoom(-1000)
self.minimap:Zoom(self.mapscreenzoom)
self.minimap:ResetOffset()
self:DisableMinimapUpdating()
end

4.解决了开关地图HUD会消失的问题,开玩。
EN VERSION:
Adjust "update throtting"(mine is 6ups) in mod config can really help improving fps, but when u do that u'll find ur full game HUD disappear when u open/close ur map, and then u can't quit ur game. Now I solved this problem:
1.Find the mod's source file in dont_starve\mods\workshop-188251898\scripts\widgets\minimapwidget.lua
2.Open it and find this function: function MiniMapWidget:OnHide()
3.Replace this function with the code below:
function MiniMapWidget:OnHide()
if self.minimap:IsVisible() then
self.minimap:ToggleVisibility()
end
self.minimap:Zoom(-1000)
self.minimap:Zoom(self.mapscreenzoom)
self.minimap:ResetOffset()
self:DisableMinimapUpdating()
end

4.Now this problem is solved, enjoy ur game.

Q:如何找到的解决方法?
A:比较另一个mod(Minimap HUD Customizable)和这个mod的代码差别,发现这个OnHide函数不太一样,经过替换测试后,发现HUD消失的bug解决了。:bbtraccoon:
< >
Showing 1-5 of 5 comments
希望能帮到大家:shigure2:
Originally posted by 脑子里有鲸鱼:
希望能帮到大家:shigure2:
感谢
感谢
Siwuxie 12 Mar @ 11:43am 
感谢
< >
Showing 1-5 of 5 comments
Per page: 1530 50