This is related to an Interface file. I've created a new window, problem is it spawns at the top of the screen. I'm asking how I would be able to make it centered in the middle of the screen. I have tried basically moving it when editing the window but that did not work. I'm also not sure if coding would fix this or if there is a special way to edit the file. Help would be greatly appreciated.
-ZMD Productions
ID:273355
Feb 23 2010, 5:27 pm
|
|
In response to Gizhy
|
|
That worked exactly how I wanted thanks a lot.
|
// Gets the screen x and y size of our player's resolution. I just thought I would through this out there. It works best if you make the window you are using transparent, and the window doesn't have a status bar, title bar, etc. You can change these at runtime. |
In response to ZMD Productions
|
|
No problem.
|
In response to ZMD Productions
|
|
Just remember that not everyone has the same resolution as you.
Similar to Ulterior Motives, but this one works: //STEP 1! create a new interface window, I'm naming mine RESIZEPLX. Make it invisible and just throw it in a corner, you're done with it. |
winset(src,windowname,"pos=100x100")
That isn't the POS to center but that's how I get my windows to center. Just find the center by adjusting the pos.