Example #1
0
  public GUICommPack() {
    super(null, "CommPack");

    this.xSize = 248;
    this.ySize = 193;
    this.offsy = -45;
    launchButton.clickAction =
        new Runnable() {
          public void run() {}
        };

    power.state = 99;
    focus.state = 99;

    addClickable(power);
    addClickable(focus);
    addClickable(rate);

    addClickable(ptf);
    addClickable(dtf);
    addClickable(rtf);
    power.clickAction = new Adjustor.StateToNumberText(power, ptf);
    //		ptf.clickAction= new Adjustor.NumberTextToState(ptf, power);
    focus.clickAction = new Adjustor.StateToNumberText(focus, dtf);
    //		dtf.clickAction= new Adjustor.NumberTextToState(dtf, dispersion);
    rate.clickAction = new Adjustor.StateToNumberText(rate, rtf);
    //		rtf.clickAction= new Adjustor.NumberTextToState(rtf, rate);

    addClickable(launchButton);

    launchButton.clickAction = calldown;

    power.clickAction.run();
    focus.clickAction.run();
    rate.clickAction.run();
  }