chaos booster draft implementation first check-in

This commit is contained in:
brodee 2015-06-22 21:55:43 -07:00
parent 8685c67679
commit e3b84eaab5
12 changed files with 462 additions and 14 deletions

View file

@ -152,9 +152,16 @@ public class DraftPanel extends javax.swing.JPanel {
}
public void updateDraft(DraftView draftView) {
this.txtPack1.setText(draftView.getSets().get(0));
this.txtPack2.setText(draftView.getSets().get(1));
this.txtPack3.setText(draftView.getSets().get(2));
if (draftView.getSets().size() != 3){
// Chaos draft
this.txtPack1.setText("???");
this.txtPack2.setText("???");
this.txtPack3.setText("???");
}else{
this.txtPack1.setText(draftView.getSets().get(0));
this.txtPack2.setText(draftView.getSets().get(1));
this.txtPack3.setText(draftView.getSets().get(2));
}
this.chkPack1.setSelected(draftView.getBoosterNum() > 0);
this.chkPack2.setSelected(draftView.getBoosterNum() > 1);
this.chkPack3.setSelected(draftView.getBoosterNum() > 2);