Skip to content

Commit

Permalink
Bugfix: text was still visible when HUD is hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsage committed Mar 2, 2022
1 parent d0d3842 commit 9884c04
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Binary file modified FS22_ProductionInspector.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion src/ProductionInspector.lua
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ function ProductionInspector:draw()
linesPerEntry = linesPerEntry - 1
end

if #info_text == 0 or not g_productionInspector.isEnabledVisible or g_sleepManager:getIsSleeping() then
if #info_text == 0 or not g_productionInspector.isEnabledVisible or g_sleepManager:getIsSleeping() or g_noHudModeEnabled then
-- we have no entries, hide the overlay and leave
-- also if we hid it on purpose
self.inspectBox:setVisible(false)
Expand Down
9 changes: 5 additions & 4 deletions src/modDesc.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,10 @@ Changelog:
v1.0.0.1
- Add key bind to toggle HUD on and off
v1.0.0.2
- Add option to hide empty input materials
v1.0.0.3
- Separate percentage and fill level for input and output, add options for each
v1.0.0.4
- Add optional indicators for output product destination (selling, storing, or distributing)
- Save config when using the visibility toggle key
Expand All @@ -41,6 +38,8 @@ v1.0.0.6
v1.0.0.7
- Fix loading of text size from xml
- Add menu option to change text size
v1.0.0.8
- Bugfix: text was still visibile when HUD was toggled off
]]></en>
<de><![CDATA[Production Inspector zeigt Ihre laufenden Produktionen auf einen Blick
Expand Down Expand Up @@ -75,10 +74,12 @@ v1.0.0.5
v1.0.0.7
- Fixes Laden der Textgröße aus xml
- Menüoption zum Ändern der Textgröße hinzufügen
v1.0.0.8
- Bugfix: Der Text war noch sichtbar, wenn das HUD ausgeschaltet war.
]]></de>
</description>
<author>JTSage</author>
<version>1.0.0.7</version>
<version>1.0.0.8</version>
<iconFilename>modIcon.dds</iconFilename>
<multiplayer supported="true"/>
<extraSourceFiles>
Expand Down

0 comments on commit 9884c04

Please sign in to comment.