Package de.yaams.maker.helper.gui.form.core

Examples of de.yaams.maker.helper.gui.form.core.FormBuilder.addHeader()


          @Override
          protected Component getComponent(Project p) {
            FormBuilder form = new FormBuilder("game.voc");

            // add it
            form.addHeader("help", new FormHeader(I18N.t("Info"), "help"));
            form.addElement("help.more",
                new FormInfo("", I18N.t("You will find more Vocabulary directly in the script section")));

            form.addHeader("basic", new FormHeader(I18N.t("Basics"), "vocab"));
            form.addElement("basic.gold", RubyForm.getString(I18N.t("Gold"), "@gold", words));
View Full Code Here


            // add it
            form.addHeader("help", new FormHeader(I18N.t("Info"), "help"));
            form.addElement("help.more",
                new FormInfo("", I18N.t("You will find more Vocabulary directly in the script section")));

            form.addHeader("basic", new FormHeader(I18N.t("Basics"), "vocab"));
            form.addElement("basic.gold", RubyForm.getString(I18N.t("Gold"), "@gold", words));
            form.addElement("basic.hp", RubyForm.getString(I18N.t("HP"), "@hp", words));
            form.addElement("basic.sp", RubyForm.getString(I18N.t("SP"), "@sp", words));
            form.addElement("basic.str", RubyForm.getString(I18N.t("Strength"), "@str", words));
            form.addElement("basic.dex", RubyForm.getString(I18N.t("Dexterity"), "@dex", words));
View Full Code Here

            form.addElement("basic.int", RubyForm.getString(I18N.t("Intelligence"), "@int", words));
            form.addElement("basic.att", RubyForm.getString(I18N.t("Attack Power"), "@atk", words));
            form.addElement("basic.phy", RubyForm.getString(I18N.t("Physical Defense"), "@pdef", words));
            form.addElement("basic.mag", RubyForm.getString(I18N.t("Magic Defense"), "@mdef", words));

            form.addHeader("fight", new FormHeader(I18N.t("Fight"), "weapon"));
            form.addElement("fight.weapon", RubyForm.getString(I18N.t("Weapon"), "@weapon", words));
            form.addElement("fight.armor", RubyForm.getString(I18N.t("Shield"), "@armor1", words));
            form.addElement("fight.helm", RubyForm.getString(I18N.t("Helmet"), "@armor2", words));
            form.addElement("fight.body", RubyForm.getString(I18N.t("Body armor"), "@armor3", words));
            form.addElement("fight.acc", RubyForm.getString(I18N.t("Accessory"), "@armor4", words));
View Full Code Here

    FormBuilder form = new FormBuilder("event.main");

    // show general infos
    form.getHeader("basic").setTitle(I18N.t("Generell")).setIcon("event");
    form.addElement("basic.aapos", new FormInfo("Position", I18N.t("{0} x {1}", x, y)));
    form.addHeader("caction", new FormHeader(I18N.t("Aktion"), "map"));

    // add overview
    if (events.size() > 0) {
      form.addHeader("overview", new FormHeader(I18N.t("Alle Events"), "events"));
      for (final String key : events.keySet()) {
View Full Code Here

    form.addElement("basic.aapos", new FormInfo("Position", I18N.t("{0} x {1}", x, y)));
    form.addHeader("caction", new FormHeader(I18N.t("Aktion"), "map"));

    // add overview
    if (events.size() > 0) {
      form.addHeader("overview", new FormHeader(I18N.t("Alle Events"), "events"));
      for (final String key : events.keySet()) {
        // add button
        form.addElement("overview." + key, new FormButton(I18N.t("{0} ({1}x{2})", gEn(key), gEx(key), gEy(key)), "event", new AE() {

          @Override
View Full Code Here

      return;
    }

    // build form
    final FormBuilder f = new FormBuilder("preview.graphic");
    f.addHeader("basic", new FormHeader("", null));
    f.addElement("basic.path", new FormTextField(I18N.t("Pfad"), file.getAbsolutePath()));
    f.addElement(
        "basic.size",
        new FormTextField(I18N.t("Größe"), I18N.t("{0}x{1}x{2}", image.getWidth(), image.getHeight(), image.getImage()
            .getAccelerationPriority())));
View Full Code Here

    oldCode = e;

    try {
      // build panel
      FormBuilder f = new FormBuilder("event.code.list." + e.getCommand().getIcon());
      f.addHeader("basic", new FormHeader(I18N.t("Basic"), e.getCommand().getIcon()));

      // build it
      getSelectedObject().buildPanel(f);
      // add modifikation
      f.addChangeListener(new FormElementChangeListener() {
View Full Code Here

        }
      });

      if (getSelectedObject().getCommand().isBeta() || YLevel.IS_DEVELOPER) {
        f.addHeader("warn", new FormHeader(I18N.t("Hinweis für die Benutzung"), "info").setSorting(8));
        if (getSelectedObject().getCommand().isBeta()) {
          f.addElement(
              "warn.info",
              new FormInfo("", I18N.t("Die Unterstützung von {0} ist noch experimentell. Es kann zu Problemen kommen.", e.getCommand().getName())));
        }
View Full Code Here

   */
  @Override
  public JComponent getPanel() {
    FormBuilder f = getMainPanel();

    f.addHeader("mac", new FormHeader(I18N.t("Mac spezifisch"), "mac"));
    // add path
    f.addElement("mac.name", YSettingHelper.text(project, I18N.t("App-Name"), "export." + icon + ".appname", project.getTitle()));

    return f.getPanel(true);
  }
View Full Code Here

   *
   * @return
   */
  protected FormBuilder getMainPanel() {
    FormBuilder f = new FormBuilder("export." + getIcon());
    f.addHeader("basic", new FormHeader(I18N.t("Generelle Exportoptionen"), "export"));

    // add path
    f.addElement("basic.path", new FormFileSelectField(I18N.t("Pfad"), path, JFileChooser.SAVE_DIALOG, false, true)
        .addChangeListener(new FormElementChangeListener() {

View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.