mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-03 00:37:55 +00:00
Added RandomHandler#setActive and enabled all randoms by default
This commit is contained in:
@@ -70,6 +70,7 @@ public final class Landing {
|
||||
}
|
||||
|
||||
/**
|
||||
* TODO
|
||||
* Returns an array of string containing only the username and password
|
||||
* @return String array with username and password
|
||||
*/
|
||||
|
||||
@@ -37,6 +37,7 @@ public class BotUI extends JFrame implements ActionListener, ComponentListener,
|
||||
throw new IllegalStateException("BotUI already created");
|
||||
}
|
||||
instance = this;
|
||||
//WebLookAndFeel.install();
|
||||
JPopupMenu.setDefaultLightWeightPopupEnabled(false);
|
||||
|
||||
setTitle("Parabot");
|
||||
|
||||
@@ -37,6 +37,15 @@ public class RandomHandler {
|
||||
}
|
||||
}
|
||||
randoms.add(random);
|
||||
setActive(random);
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a random to the active randoms
|
||||
* @param random
|
||||
*/
|
||||
public void setActive(Random random){
|
||||
this.activeRandoms.add(random);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user