Descriptive Problem Summary:
The resize command in the Interface file is not being called when the client window maximizes.
Numbered Steps to Reproduce Problem:
Code Snippet (if applicable) to Reproduce Problem:
Expected Results:
The resize command is called upon window maximize.
Actual Results:
It does not call the command.
Does the problem occur:
Every time? Or how often?
Every time
In other games?
Yes
In other user accounts?
Yes
On other computers?
Yes
ID:1985736
Nov 19 2015, 3:19 pm
|
|||||||||||||
| |||||||||||||
In response to Somepotato
|
|
Nah, I'm using the maximize button.
|
I can't reproduce this issue and I'm using windows 10 (in your case anyway). Can you give us the code you were using?
|
mob/verb/resize() |
It is being called, it is just that winget isn't getting the size correctly.
Of an unrelated note, try to remember about the increased network and CPU usage that comes with using a massive viewport. |
In response to Somepotato
|
|
Yeah, I think the "size" of a window refers to the un-maximized size.
Konlet, in this case, you should definitely use the size of the map element instead. Also, round up to an odd number of tiles if you want to make sure the view fills the screen and keeps the player centered. |
In response to Kaiochao
|
|
client.pixel_x/y might be able to be used here for more precision, but would also require more math.
|
In response to Kaiochao
|
|
Thanks, Kaio. TBH though, I already was reading the map element, just didn't reference it in the snippet.
|
Anyway, it does call it, just not when the window is dragged to the top.
This stack overflow answer is likely relevant: http://stackoverflow.com/a/25983187/583841