mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-06 16:50:39 +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
|
* Returns an array of string containing only the username and password
|
||||||
* @return String array with 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");
|
throw new IllegalStateException("BotUI already created");
|
||||||
}
|
}
|
||||||
instance = this;
|
instance = this;
|
||||||
|
//WebLookAndFeel.install();
|
||||||
JPopupMenu.setDefaultLightWeightPopupEnabled(false);
|
JPopupMenu.setDefaultLightWeightPopupEnabled(false);
|
||||||
|
|
||||||
setTitle("Parabot");
|
setTitle("Parabot");
|
||||||
|
|||||||
@@ -37,6 +37,15 @@ public class RandomHandler {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
randoms.add(random);
|
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