use of eidolons.client.cc.gui.neo.choice.ChoiceSequence in project Eidolons by IDemiurge.
the class Tavern method openView.
public ChoiceSequence openView() {
generateHeroes();
HC_SequenceMaster sm = new HC_SequenceMaster() {
public void doneSelection() {
getSequence().getValue();
Unit hero = (Unit) getSequence().getResults().get(0);
hired(hero);
Launcher.resetView(VIEWS.HC);
}
@Override
public void cancelSelection() {
Launcher.resetView(VIEWS.HC);
}
};
// toggle between heroes and mercs?
// mini-dialogue upon selection or 'approach'?
ChoiceSequence cs = new ChoiceSequence();
cs.setManager(sm);
cs.addView(new TavernView(this, cs));
cs.start();
return cs;
}
Aggregations