![]() |
Minimising a window ignores minsize
2 Attachment(s)
I've created a gui window... (Attachment 1). It looks great in game... until you minimise it (attachment 2).
I have set the minsize attribute on the window so it cant be dragged smaller than it should be but minimising the window ignores this value (and the size of the graphics). Anyone know how i can fix this? I think the only way to fix it would be to set a different window graphic when it's minimised and then reset it when it's maximised but if anyone can think of a better solution I'd really like to hear it. |
Currently the width of the minimized window is always 98 pixels (don't ask me why), and the height is title height + bottom height.
|
Euh.. that's not allright eah..
|
Since you know the window will never be resized past your minsize, just add something like this (obviously replacing GuiWindowCtrl with the name of your window GUI):
NPC Code: Or to be more safe (in case this strange 98 number is changed): NPC Code: |
| All times are GMT +2. The time now is 06:29 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.