ID:73359
 
Resolved
Fixed in 443
BYOND Version:442
Operating System:Windows XP Pro
Web Browser:Firefox 3.0.11
Status: Resolved (443)

This issue has been resolved.
Descriptive Problem Summary:
If a window is maximized using winset(src, "main", "is-maximized=true"), the window cannot be minimized using winset(src, "main", "is-minimized=true") until is-maximized is set to false.
Numbered Steps to Reproduce Problem:
1. Create a window without a toolbar
3. Add 2 buttons for minimize and maximize (code below)
4. Press the maximize button
5. Press the minimize button
Code Snippet (if applicable) to Reproduce Problem:
client
verb
Minimize()
winset(src, "main", "is-minimized=true")
Maximize()
if(winget(src, "main", "is-maximized")=="true")
winset(src, "main", "is-maximized=false")
else
winset(src, "main", "is-maximized=true")


Expected Results:
The window should minimize
Actual Results:
The window flickers
Does the problem occur:
Every time? Or how often? Yes, every time
In other games? Unknown
In other user accounts? Unknown
On other computers? Unknown

When does the problem NOT occur?
Unknown
Workarounds:
If you use the maximize button first to un-maximize, you then can minimize.
I also have this problem. You cannot minimize a full screen window.
"Workarounds:
If you use the maximize button first to un-maximize, you then can minimize."


Why would you do that when you can just un-maximize it in the minimize verb?
winset(src, "main", "is-maximized=false")
winset(src, "main", "is-minimized=true")
The point isn't that there is a work-around, as he stated that. The point was that it's a bug, this isn't a design philosophy question, it's a bug report.

=o
I wouldn't consider it a bug, the window can't be both maximized and minimized. But I guess it should null the other value once it gets minimized/maximized. Carry on (: