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
88 stars 3 forks source link

Use width from window state if present #227

Closed github-actions[bot] closed 3 years ago

github-actions[bot] commented 3 years ago

Use width from window state if present

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


    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) {    

d318886d7a76b7cae3304e7dfd22f1ed4f88d97c

github-actions[bot] commented 3 years ago

Closed in 9b41e291176fc9b43585f0f2a3e56919356527ce