示例#1
0
 private void initGUI() {
   Label label = new GenericLabel(ChatColor.RED + script.getName());
   scriptField = new GenericTextField();
   scriptField.setMinHeight(150);
   scriptField.setMinWidth(100);
   scriptField.setTabIndex(3);
   Container c = new GenericContainer();
   c.setLayout(ContainerType.VERTICAL);
   c.addChild(label);
   c.addChild(scriptField);
   attachWidget(lib, c);
 }
示例#2
0
  public void open() {
    player.getMainScreen().attachPopupScreen(this);

    scriptField.setText(script.getScript());
  }
 public TextFieldChangeEvent(SpoutPlayer player, Screen screen, TextField field, String newVal) {
   super("TextFieldChangeEvent", player, screen, ScreenType.CUSTOM_SCREEN);
   this.field = field;
   this.oldVal = field.getText();
   this.newVal = newVal;
 }