Skip to content

Commit

Permalink
guiWidescreenFix v0.2.1: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMorc authored Jan 29, 2025
1 parent c1cac9b commit 02a6034
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 28 deletions.
28 changes: 1 addition & 27 deletions guiWidescreenFix/guiWidescreenFix.lua
Original file line number Diff line number Diff line change
Expand Up @@ -51,30 +51,4 @@ function guiWF_checkOverlayOverlap(posX, posY, overlay)
return posX >= guiWF_x and posX <= guiWF_x + guiWF_width and posY >= overlay.y and posY <= overlay.y + overlay.height
end
_G.checkOverlayOverlap = guiWF_checkOverlayOverlap
print("[guiWidescreenFix] Patched Overlay.checkOverlayOverlap")

modClassEventListener = {};

function modClassEventListener:loadMap(name)
-- deprecated pda patch, not required anymore
--g_currentMission.missionStats.pdaMapArrowXPos = g_currentMission.missionStats.pdaMapWidth / 2 - g_currentMission.missionStats.pdaMapArrowSize + guiWF_guiOffset
--g_currentMission.missionStats.pdaMapPosX = guiWF_guiOffset
--print("[guiWidescreenFix] Patched PDA")
end;

function modClassEventListener:deleteMap()
end;

function modClassEventListener:mouseEvent(posX, posY, isDown, isUp, button)
end;

function modClassEventListener:keyEvent(unicode, sym, modifier, isDown)
end;

function modClassEventListener:update(dt)
end;

function modClassEventListener:draw()
end;

addModEventListener(modClassEventListener);
print("[guiWidescreenFix] Patched Overlay.checkOverlayOverlap")
2 changes: 1 addition & 1 deletion guiWidescreenFix/modDesc.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="iso-8859-1" standalone="no" ?>
<modDesc descVersion="1">
<author>Morc, GIANTS</author>
<version>0.2</version>
<version>0.2.1</version>

<extraSourceFiles>
<sourceFile filename="guiWidescreenFix.lua" />
Expand Down

0 comments on commit 02a6034

Please sign in to comment.