Blockland Forums > Modification Help

Deleting a GUI Control

Pages: (1/2) > >>

jes00:

Anyone know of a way to delete a GUI control in a the main menu?

jes00:

------ignore this.-------

cheese6:

why would you want to do this
Also
%object.isVisible(0);
%object.delete();

Greek2me:


--- Quote from: cheese6 on December 16, 2011, 03:40:22 PM ---%object.isVisable(0);

--- End quote ---
visible

Superb:


--- Quote from: cheese6 on December 16, 2011, 03:40:22 PM ---why would you want to do this
Also
%object.isVisable(0);
%object.delete();

--- End quote ---

%object.setVisible(0);

anyways

for(%i=0;%i<mainMenuGui.getCount();%i++)
{
     %o = mainMenuGui.getObject(%i);
     //do something maybe echo the class name blah blah
}

if you know which object it is, you can do:

mainMenuGui.getObject(x).delete();

Pages: (1/2) > >>

Go to full version