![]() |
Screen Sizing
Due to players with larger monitors having an advantage to sparring/PVP and what not, I want to make a controlled screen size where the amount seen in a room is set and and the rest is just black.
At first, I just created 4 black boxes and stretched their width and height as needed. BUT you couldn't see the chat bar, and also it did have it's glitches.. Any ideas?! |
Change the dimensions of GraalControl.
|
Quote:
|
Quote:
GraalControl.extent = { w, h}; |
Quote:
Now I'm just having an issue with centering it. I tried to set the x as screenwidth/2-(what ever I set width divided by 2).. UNTIL I realized the screen width is the width of what you can see..and not the actual window. So my next question is how do I find out what the size of the actual client's window is? PHP Code:
|
you can use screenwidth and screenheight
|
PHP Code:
|
2 Attachment(s)
After testing it seems screenwidth and screenheight only refer to GraalControl's width / height, I'm not aware of any variable that references window width / height. Once you know that, that method should work.
Here's an example. e. says "owner has denied your access to the site." if I put the script on here.. o.O I feel loved T-T Just going to attach it then. e2. and just for overkill a circle version xP |
Quote:
|
1 Attachment(s)
Quote:
Attached a simplified version.. (Still giving me that issue, so can't do php tags) :/ |
All times are GMT +2. The time now is 09:55 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.