Skip to content

Commit

Permalink
fixed interactiveControl buttons
Browse files Browse the repository at this point in the history
updated modDesc
  • Loading branch information
TobiasF92 committed May 1, 2023
1 parent 78643de commit db798f9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions modDesc.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<modDesc descVersion="73">
<modDesc descVersion="74">
<author>Vertex Dezign</author>
<version>1.1.0.0</version>
<version>1.1.1.0</version>

<title>
<en>Interactive Control</en>
Expand All @@ -20,6 +20,10 @@ Using the controls you can steer different things:
For further informations: <a href="https://github.com/TobiasF92/FS22_interactiveControl/blob/main/README.md">README</a> on Github.
Changelog (1.1.1.0):
- Updated translations: russian
- Fixed InteractiveButtons not working
Changelog (1.1.0.0):
- Added translations: italian, russian, polish, czech
- Added mod compatibility with 'FS22_additionalGameSettings'
Expand All @@ -44,6 +48,10 @@ Mit den Bedienelementen können Sie verschiedene Dinge steuern:
Für mehr Informationen: <a href="https://github.com/TobiasF92/FS22_interactiveControl/blob/main/README.md">README</a> auf Github.
Changelog (1.1.1.0):
- Aktualisierte Übersetzungen: russisch
- Behoben, dass Interactive Buttons nicht mehr funktionierten
Changelog (1.1.0.0):
- Übersetzungen hinzugefügt: italienisch, russisch, polnisch, tschechisch
- Kompatibilität mit 'FS22_additionalGameSettings' hinzugefügt
Expand Down
2 changes: 1 addition & 1 deletion src/vehicles/specializations/InteractiveControl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ function InteractiveControl:updateInteractiveControls(isIndoor, isOutdoor, hasIn
local indoor = isIndoor and icState and hasInput and button:isIndoorActive()
local outdoor = isOutdoor and not hasInput and button:isOutdoorActive()

if button:isActivatable() and isCurrentlyEnabled and (indoor or outdoor)
if button:isActivatable() and interactiveControl.isCurrentlyEnabled and (indoor or outdoor)
and (activeController == nil or activeController:isa(InteractiveButton)) then

button:updateDistance(self.currentUpdateDistance)
Expand Down

0 comments on commit db798f9

Please sign in to comment.