Does something like this exist? I know that a var entitled "size" exists, but it doesn't change when I maximize a window. This makes me doubt whether or not this is the var that I am looking for.
Edit: I also tried wingetting the size of the map control (which changes along with the window), and its size parameter didn't change either.
ID:157911
![]() Dec 9 2009, 2:08 am (Edited on Dec 9 2009, 2:59 am)
|
|
![]() Dec 9 2009, 3:28 am
|
|
[link] might shed some light on your issue.
|
Since you didn't even mention what you intend to do, I could only reply to the information you provided, which is that 'size' doesn't change upon setting 'is-maximized' to true.
Maybe if you elaborate on what you intend to do, somebody can provide a more helpful reply. |
All I am trying to do is get the size of a maximized screen (since it will be different from player to player) so that I can use that size later on for various purposes.
|
Yes, I saw that thread and did try to use interface elements like labels, and it didn't work. I've heard that there is a way to do it with Java, but I don't know how to use Java, lol.
|
Ninjafro wrote:
did try to use interface elements like labels, and it didn't work What exactly did you try? I'm sorry, but as it works the way that was described in the thread, you'll have to be a bit more specific if you want others to catch your mistake. Ninjafro wrote: Java JavaScript, not Java. That's two completely different things. |
Lol, sorry. I'm a bit of a noob with some stuff. XD
Anyway, I made a label that goes in the window (default) that is being maximized. I set it to fill the window and set top-left and bottom right anchors so that it expands with the screen. mob player Login() ..() src.sizetest() mob/proc sizetest() winset(src,"default","is-maximized=true") var/c=winget(src,"default.reslab","size") src << output("[c]","chat.chatoutput") |