I have this set up:
mob/Stat()
if(global.GameInProgress==1)
return
statpanel("Game Info")
stat(global.players)
stat("[global.Players]/14")
if(usr.Joined)
stat(Leave_Game2)
else
stat(Join_Game2)
if(usr.host)
What's the problem, you might ask?
If I set global.GameInProgress to 1, instead of actually doing what it is expected to do and basically get rid of the Game Info statpanel, instead it removes the "Commands" verb panel and none of the things in the Game Info statpanel are clickable. I can still use the verbs in the Commands verb panel, however. If I exit out and open it up again (whilst hosted) it works.
(lummox told me to post this)
Numbered Steps to Reproduce Problem:
Umm.. Type the code in, run, start game.
Code Snippet (if applicable) to Reproduce Problem:
Here's one I created as a demo:
mob/verb/Say(var/txt as text)
view()<<"[usr] says, \"[txt]\""
mob/Stat()
if(global.GameInProgress==1)
return
statpanel("Game_Info")
stat(Start_Game2)
var/obj/Start_Game2
var/GameInProgress
world
New()
..()
Start_Game2= new/obj/Start_Game
obj/Start_Game
Click()
global.GameInProgress=1
usr.loc = locate(20,20,1)
You can also download the demo here:
http://www.2shared.com/file/NXAZwSUf/Demo.html
Expected Results:
It to actually work, and delete the Game_Info.
Actual Results:
Game_Info Tab stays, command tab deleted, can't use Game_Info Tab things, can still use command tab verbs
Does the problem occur:
Every time? Or how often?Every
In other games?IDK
In other user accounts?IDK
On other computers?IDK
When does the problem NOT occur?
Never
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
I'm not sure.
Workarounds:
None
After Resizing the Window: http://www.angelfire.com/hero/straygames/ByondBugs/ StatSpaz.png
You can avoid it if you quickly click over to the commands tab after clicking Start Game, not that that's any type of valid work around.