VolantisDev / Launchpad

Step up your non-Steam game! Generate Steam-compatible .exe files to effortlessly launch any game through Steam with overlay support.
https://launchpad.games
MIT License
87 stars 3 forks source link

Use height from window state if present #228

Closed github-actions[bot] closed 3 years ago

github-actions[bot] commented 3 years ago

Use height from window state if present

https://github.com/VolantisDev/Launchpad/blob/98fc16258616fb0a39108cc5e25c48d464a8eba2/Lib/Shared/AppLib/Gui/GuiBase.ahk#L403


    AddButtons() {
    }

    End(windowState := "") {
        width := this.windowSettings["contentWidth"] + (this.margin * 2)

        ; TODO: Use width from window state if present
        if (this.width) {
            width := this.width
        }

        height := ""

        ; TODO: Use height from window state if present
        if (this.height) {
            height := this.height
        }

        windowSize := "w" . width

        if (height) {
            windowSize .= " h" . height
        }

        MonitorGetWorkArea(, monitorL, monitorT, monitorR, monitorB)

        if (this.positionAtMouseCursor) {    

5451c095e0ba9741fc18e0c622d13501a9c91360

github-actions[bot] commented 3 years ago

Closed in 9b41e291176fc9b43585f0f2a3e56919356527ce