"Turn", "Movement" }, page, "@span"));
form.addHeader("cond", new FormHeader(I18N.t("Bedingung"), "if").setCollapsed(true).setColumn(6));
// add turn
FormCheckbox c = RubyForm.getBoolean(I18N.t("Turn"), condition, "@turn_valid");
form.addElement("cond.turn_a", c);
form.addElement("cond.turn_turn_a",
FormHelper.setEnabeldWhenRightElementSelect(c, RubyForm.getNumber("", condition, "@turn_a"), "true"));
form.addElement("cond.turn_turn_b",
FormHelper.setEnabeldWhenRightElementSelect(c, RubyForm.getNumber("+ X*", condition, "@turn_b"), "true"));
c.informListeners();
// add enemy
c = RubyForm.getBoolean(I18N.t(RGSS1Helper.getName(Type.ENEMY)), condition, "@enemy_valid");
form.addElement("cond.enemy_a", c);
form.addElement("cond.enemy_def", FormHelper.setEnabeldWhenRightElementSelect(c, RubyForm.getNumber("", condition, "@enemy_index")
.setMinMax(1, 8, 1), "true"));
form.addElement(
"cond.enemy_hp",
FormHelper.setEnabeldWhenRightElementSelect(c,
RubyForm.getNumber("Hp is or below (%):", condition, "@enemy_hp").setMinMax(0, 100, 1), "true"));
c.informListeners();
// add actor
c = RubyForm.getBoolean(RGSS1Helper.getName(Type.ACTOR), condition, "@actor_valid");
form.addElement("cond.actor_a", c);
form.addElement("cond.actor_def", FormHelper.setEnabeldWhenRightElementSelect(c, new FormDBComboBox("", project, Type.ACTOR,
condition, "@actor_id", true), "true"));
form.addElement(
"cond.actor_hp",
FormHelper.setEnabeldWhenRightElementSelect(c,
RubyForm.getNumber("Hp is or below (%):", condition, "@actor_hp").setMinMax(0, 100, 1), "true"));
c.informListeners();
// add actor
c = RubyForm.getBoolean(RGSS1Helper.getName(Type.SWITCH), condition, "@switch_valid");
form.addElement("cond.switch_a", c);
form.addElement("cond.switch_id", FormHelper.setEnabeldWhenRightElementSelect(c, new FormSwitchVarSelector(project,
I18N.t("Is on"), condition, "@switch_id", Type.SWITCH), "true"));
form.addElement("cond.switch_id2", new FormEmpty());
c.informListeners();
// add code
form.setCenter(new YEventCommandList(page.getInstanceVariable("@list"), project, null));
}