This site requires JavaScript, please enable it in your browser!
Greenfoot back
kiarocks
kiarocks wrote ...

2012/3/20

Deactivating the reset button.

kiarocks kiarocks

2012/3/20

#
I have successfully deactivated the Run, Act and Pause buttons, but is there a way to prevent reset?
marzukr marzukr

2012/3/23

#
how did you deactivate the run, act and pause?
kiarocks kiarocks

2012/3/23

#
Could not get the reset button deactivated but for act and run put this in your World file:
public void stopped()
{
    Greenfoot.start();
}
Duta Duta

2012/3/23

#
Oh so when you say deactivated, you mean just their functionality, rather than modifying the Greenfoot source to physically remove them?
kiarocks kiarocks

2012/3/23

#
Yes
kiarocks kiarocks

2012/3/23

#
static AWorld me;
public AWorld()
{
    super(600,400,1);
    /*Put at the end*/if(me != null)Greenfoot.setWorld(me);
else me = this;
}
Also, this might work:
You need to login to post a reply.