SRL Archive - Suggestions

Size of window


Bad Boy JH

2010-03-02 20:02:51

How about a way to detect the size of the window…that way we can bot with a resizable window….for example we now have an constant for the Inventory Coords, what about we get the size of the window… and subtract some amount, and we get the coords for the Inventory window…

Wizzup?

2010-03-02 20:03:52

GetClientDimensions

i luffs yeww

2010-03-02 20:04:32

Someone suggested this. I think there's already a GetClientDimensions, though?

>_> Damn you, Wizzup?!

Bad Boy JH

2010-03-02 20:07:33

really? interesting….what about the other suggestion though, using it to allow for resizable windows?

i luffs yeww

2010-03-02 20:13:34

I think there's more to it than that.. The whole game changes according to the size of the window.

Bionicle

2010-03-02 20:18:06

From: i luffs yeww
I think there's more to it than that.. The whole game changes according to the size of the window.


yes, things like MSCX, MSCY, MIX1, MIY1 ect will all be broken. Even things like all of inventory.scar (i think) would all be broken because the global stats would be wrong if the whole screen is bigger/smaller and the inventory slots would be in the wrong place.

i luffs yeww

2010-03-02 20:21:31

I know. :p And all of Inventory.scar would be broken for the most part.

Bad Boy JH

2010-03-02 20:32:38

What I am saying is instead of having MIX1 as a constant (for example) we have it as a variable, and we set it, depending on what the size of the screen is…

i luffs yeww

2010-03-02 20:34:18

We know what you mean, but it wouldn't work. ;) The game's interface changes in resizable mode.. Like.. sometimes the tabs are stacked, and sometimes not. That'd be too much to figure out, and a waste.

Wizzup?

2010-03-02 20:50:52

I'm not sure if you can resize it while keeping the correct target. But if you keep the M*** coordinates variable according to the size it will be possible, yes.