Skip to content

Commit

Permalink
v0.4.0.5
Browse files Browse the repository at this point in the history
Fix for HUD being rendered while other GUI is active (e.g. menu or shop)
  • Loading branch information
RivalAUT committed Dec 13, 2020
1 parent 0817541 commit 6449505
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified FS19_SprayerSectionControl.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion SprayerSectionControl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ function SprayerSectionControl:onMouseEvent(posX, posY, isDown, isUp, mouseButto
end

function SprayerSectionControl:onUpdate()
if self:getIsActiveForInput(false, true) and self.spec_ssc.isSSCReady and self.spec_ssc.hudActive then
if not g_gui:getIsGuiVisible() and self:getIsActiveForInput(false, true) and self.spec_ssc.isSSCReady and self.spec_ssc.hudActive then
self.spec_ssc.hud.bg:render()
for k,hud in pairs(self.spec_ssc.hud.sections) do
hud:render()
Expand Down
2 changes: 1 addition & 1 deletion modDesc.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</fr>
</description>
<author>Rival</author>
<version>0.4.0.4</version>
<version>0.4.0.5</version>
<iconFilename>icon.dds</iconFilename>
<multiplayer supported="true"/>

Expand Down

0 comments on commit 6449505

Please sign in to comment.