Skip to content

Commit 6449505

Browse files
committed
v0.4.0.5
Fix for HUD being rendered while other GUI is active (e.g. menu or shop)
1 parent 0817541 commit 6449505

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

FS19_SprayerSectionControl.zip

16 Bytes
Binary file not shown.

SprayerSectionControl.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ function SprayerSectionControl:onMouseEvent(posX, posY, isDown, isUp, mouseButto
372372
end
373373

374374
function SprayerSectionControl:onUpdate()
375-
if self:getIsActiveForInput(false, true) and self.spec_ssc.isSSCReady and self.spec_ssc.hudActive then
375+
if not g_gui:getIsGuiVisible() and self:getIsActiveForInput(false, true) and self.spec_ssc.isSSCReady and self.spec_ssc.hudActive then
376376
self.spec_ssc.hud.bg:render()
377377
for k,hud in pairs(self.spec_ssc.hud.sections) do
378378
hud:render()

modDesc.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</fr>
1515
</description>
1616
<author>Rival</author>
17-
<version>0.4.0.4</version>
17+
<version>0.4.0.5</version>
1818
<iconFilename>icon.dds</iconFilename>
1919
<multiplayer supported="true"/>
2020

0 commit comments

Comments
 (0)