Solybum / PSOBBMod-Addons

GNU General Public License v3.0
29 stars 29 forks source link

Player Reader single players windows resizing? #36

Open FiftyCaliber opened 4 years ago

FiftyCaliber commented 4 years ago

I use the single players 1-4 and I have their height set to 107 with Always Auto Resize off. Yet when I start client up and enter lobby some of the windows (seems to be random) resize to the 56 height visually but in the configuration it still says 107. I've done some programming in .lua before but honestly I am very inexperienced and rusty so I am unsure about trying to fix this issue myself. My option.lua is the following:

return
{
    configurationEnableWindow = false,
    enable = true,

    allPlayersEnableWindow = false,
    allHideWhenMenu = false,
    allHideWhenSymbolChat = false,
    allHideWhenMenuUnavailable = false,
    allPlayersChanged = true,
    allPlayersAnchor = 1,
    allPlayersX = 50,
    allPlayersY = 50,
    allPlayersW = 450,
    allPlayersH = 350,
    allPlayersNoTitleBar = "",
    allPlayersNoResize = "",
    allPlayersNoMove = "",
    allPlayersTransparentWindow = false,

    singlePlayersEnableWindow = true,
    singlePlayersShowBarText = true,
    singlePlayersShowBarMaxValue = true,

    players = {
        {
            EnableWindow = true,
            Changed = false,
            Anchor = 6,
            X = -225,
            Y = -100,
            W = 150,
            H = 107,
            NoTitleBar = "NoTitleBar",
            NoResize = "NoResize",
            NoMove = "NoMove",
            NoScrollbar = "NoScrollbar",
            AlwaysAutoResize = "",
            TransparentWindow = false,
            SD = true,
            Invulnerability = true,
        },
        {
            EnableWindow = true,
            Changed = false,
            Anchor = 6,
            X = -75,
            Y = -100,
            W = 150,
            H = 107,
            NoTitleBar = "NoTitleBar",
            NoResize = "NoResize",
            NoMove = "NoMove",
            NoScrollbar = "NoScrollbar",
            AlwaysAutoResize = "",
            TransparentWindow = false,
            SD = true,
            Invulnerability = true,
        },
        {
            EnableWindow = true,
            Changed = false,
            Anchor = 6,
            X = 75,
            Y = -100,
            W = 150,
            H = 107,
            NoTitleBar = "NoTitleBar",
            NoResize = "NoResize",
            NoMove = "NoMove",
            NoScrollbar = "NoScrollbar",
            AlwaysAutoResize = "",
            TransparentWindow = false,
            SD = true,
            Invulnerability = true,
        },
        {
            EnableWindow = true,
            Changed = false,
            Anchor = 6,
            X = 225,
            Y = -100,
            W = 150,
            H = 107,
            NoTitleBar = "NoTitleBar",
            NoResize = "NoResize",
            NoMove = "NoMove",
            NoScrollbar = "NoScrollbar",
            AlwaysAutoResize = "",
            TransparentWindow = false,
            SD = true,
            Invulnerability = true,
        },
    },
}

Also not like it's an issue but why is player reader even active while in lobby?

Solybum commented 4 years ago

I think I might have experienced issues with those windows before, the auto resize stuff is not perfect... I guess I can check it out.

At some point tofuman came up with the idea of hiding some windows when you open the menu, nobody had done that before afaik, and I guess is the same for hiding windows based on the area you are.