ID:871973
Jul 15 2012, 11:36 am
|
|
How can i center a window being viewed like custom alert, just want it to be in center of player screen.
|
mob this gets the player screen resolution but how can i center skin |
If you know the width and height of the screen and window, you can compute the x/y position to place the window at that'll make it centered in the screen:
var/Window/window = new("windowname", src) |
also
MedalDisplay this proc dosnt make MedalWindow disappear. |
Once you know their resolution you can create a /Window object and call its Pos() proc to center it.