Skip to content

Commit

Permalink
Update module_Overlay.ahk
Browse files Browse the repository at this point in the history
  • Loading branch information
etofok committed Sep 4, 2024
1 parent 2b1cda6 commit eafa5fd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Modules/module_Overlay.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,11 @@ SetupImageOverlay() {
WinGet, windowHandle, ID, %winName%
WinGetPos, WarcraftIII_posX, WarcraftIII_posY, WarcraftIII_width, WarcraftIII_height, %winName%

; Set up the GUI for the overlay with transparency
Gui, gui_imageOverlay:-AlwaysOnTop -Caption +ToolWindow +LastFound -Border +Owner%windowHandle%

; Add the image with full dimensions of the window
; Show the GUI overlay at the exact position of the Warcraft III window
Gui, gui_imageOverlay:Add, Picture, x0 y0 w%WarcraftIII_width% h%WarcraftIII_height%, %image_OverlayLayout_Path%
Gui, gui_imageOverlay:Show, x%WarcraftIII_posX% y%WarcraftIII_posY% w%WarcraftIII_width% h%WarcraftIII_height%
Gui, gui_imageOverlay:-AlwaysOnTop -Caption +ToolWindow +LastFound -Border +Owner%windowHandle%

Gui, gui_imageOverlay:Color, %color%

Expand Down

0 comments on commit eafa5fd

Please sign in to comment.