f.getHeader("basic").setColumn(4);
f.addElement("basic.type", c);
// add hero basis
f.addElement("basic.hero", new FormDBComboBox(RGSS1Helper.getName(Type.ACTOR), p, Type.ACTOR, e.getParameters(), 0, false));
// add parameters 317
f.addHeader("parameters", new FormHeader(I18N.t("Parameters"), "parameter").setSorting(2));
f.addElement("parameters.typ", FormHelper.setEnabeldWhenRightElementSelect(c,
RubyForm.getComboBoxNum(I18N.t("Parameter"), JavaHelper.numAry(5), getParameters(p), e.getParameters(), 1).setSorting(-1),
"317"));
CommandFormHelper.addOperatorSupport(f, e, 2, "parameters.", c, "317");
// add skill 318
f.addHeader("skill", new FormHeader(RGSS1Helper.getName(Type.SKILL), RGSS1Helper.getIcon(Type.SKILL)).setColumn(4).setSorting(3));
f.addElement(
"skill.typ",
FormHelper.setEnabeldWhenRightElementSelect(
c,
RubyForm.getComboBoxNum(RGSS1Helper.getName(Type.SKILL), JavaHelper.numAry(1), new String[] { "-", "+" },
e.getParameters(), 1).setSorting(0), "318"));
f.addElement(
"skill.skill",
FormHelper.setEnabeldWhenRightElementSelect(c,
new FormDBComboBox("", p, Type.SKILL, e.getParameters(), 2, false).setSorting(1), "318"));
// add equip 319
f.addHeader("equip", new FormHeader(RGSS1Voc.equip(p), RGSS1Helper.getIcon(Type.WEAPON)).setSorting(4));
FormComboBox b = RubyForm.getComboBoxNum(RGSS1Voc.equip(p), JavaHelper.numAry(4),
new String[] { RGSS1Voc.weapon(p), RGSS1Voc.shield(p), RGSS1Voc.helm(p), RGSS1Voc.armor(p), RGSS1Voc.acc(p) },
e.getParameters(), 1);
f.addElement("equip.typ", FormHelper.setEnabeldWhenRightElementSelect(c, b.setSorting(-1), "319"));
f.addElement("equip.weapon", FormHelper.addEnableLister(
new FormDBComboBox(RGSS1Voc.weapon(p), p, Type.WEAPON, e.getParameters(), 2, false).setSorting(0), b, "0", c, "319"));
f.addElement(
"equip.shield",
FormHelper.addEnableLister(
new FormDBComboBox(RGSS1Voc.shield(p), p, Type.ARMOR, e.getParameters(), 2, false).setSorting(1), b, "0", c, "319"));
f.addElement(
"equip.helm",
FormHelper.addEnableLister(
new FormDBComboBox(RGSS1Voc.helm(p), p, Type.ARMOR, e.getParameters(), 2, false).setSorting(2), b, "0", c, "319"));
f.addElement(
"equip.armor",
FormHelper.addEnableLister(
new FormDBComboBox(RGSS1Voc.armor(p), p, Type.ARMOR, e.getParameters(), 2, false).setSorting(3), b, "0", c, "319"));
f.addElement(
"equip.acc",
FormHelper.addEnableLister(
new FormDBComboBox(RGSS1Voc.acc(p), p, Type.ARMOR, e.getParameters(), 2, false).setSorting(4), b, "0", c, "319"));
b.informListeners();
// // add name 320
// f.addHeader("name", new FormHeader(RGSS1Helper.getName(Type.CLASS),
// RGSS1Helper.getIcon(Type.CLASS)).setSorting(5));
// f.addElement("name.name",
// FormHelper.setEnabeldWhenRightElementSelect(c,
// RubyForm.getString("Name", e.getParameters().get(2)), "320"));
// add class 321
f.addHeader("class", new FormHeader(RGSS1Helper.getName(Type.CLASS), RGSS1Helper.getIcon(Type.CLASS)).setSorting(6));
f.addElement(
"class.class",
FormHelper.setEnabeldWhenRightElementSelect(c,
new FormDBComboBox(RGSS1Helper.getName(Type.CLASS), p, Type.CLASS, e.getParameters(), 1, false), "321"));
//
// // add graphic 322
// f.addHeader("graphic", new FormHeader("Grafik",
// "ress").setSorting(7));
// f.addElement("graphic.graph",