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

Examples of de.yaams.maker.helper.gui.form.core.FormHeader


              }
            }).setSorting(2));

            // add party
            form.addHeader("party", new FormHeader(I18N.t("Party"), "hero"));
            form.addElement("party.hero", new FormDBList(project, Type.ACTOR, system.getInstanceVariable("@party_members"),
                I18N.t("Wähle die Helden für die Party aus")));
            // add map
            form.addElement(
                "party.pos",
                new FormButton(I18N.t(I18N.t("Start Position {0} - {1}/{2}", RubyHelper.toInt(system, "@start_map_id"),
                    RubyHelper.toInt(system, "@start_x"), RubyHelper.toInt(system, "@start_y"))), "map", new AE() {

                  @Override
                  public void run() {
                    // load
                    YMapView map = new YMapView(RubyHelper.toInt(system, "@start_map_id"), project);
                    map.installClickSupport();

                    map.setSelectX(RubyHelper.toInt(system, "@start_x"));
                    map.setSelectY(RubyHelper.toInt(system, "@start_y"));
                    map.installMapChance();

                    // show
                    if (YDialog.show(I18N.t("Start Position"), "map", map, true)) {
                      //
                      RubyHelper.setNum(system, "@start_x", map.getSelectX());
                      RubyHelper.setNum(system, "@start_y", map.getSelectY());
                      RubyHelper.setNum(system, "@start_map_id", map.getMapID());
                    }
                    ((JButton) form.getElement("party.pos").getElement()).setText(I18N.t(
                        "Start Position {0} - {1}/{2}", RubyHelper.toInt(system, "@start_map_id"),
                        RubyHelper.toInt(system, "@start_x"), RubyHelper.toInt(system, "@start_y")));

                  }
                }));

            // build objects
            // ExtentionManagement.work("project.game_setting.basic",
            // JavaHelper.createHashStringObj("project",
            // project,"form",
            // form,"system", system));

            return form.getPanel(true);
          }
        });

        // vocab
        eles.add(new SplitActionListElement(I18N.t("Vocabulary"), I18N.t("Übersetzt die Hauptelemente des Spiels"), "vocab") {

          @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));
            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));
            form.addElement("basic.agi", RubyForm.getString(I18N.t("Agility"), "@agi", words));
            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));
            form.addElement("fight.att", RubyForm.getString(I18N.t("Attack"), "@attack", words));
            form.addElement("fight.skill", RubyForm.getString(I18N.t("Skill"), "@skill", words));
            form.addElement("fight.def", RubyForm.getString(I18N.t("Defense"), "@guard", words));
            form.addElement("fight.item", RubyForm.getString(I18N.t("Item"), "@item", words));
            form.addElement("fight.equ", RubyForm.getString(I18N.t("Equip"), "@equip", words));

            form.setColumn(6);
            // get it
            return form.getPanel(true);
          }
        });

        // graphics & audio
        eles.add(new SplitActionListElement(I18N.t("Backgrounds & Music"), I18N.t("Set Options for Title, Gameover, .."),
            "graphic_audio") {

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

            // add it
            form.addHeader("basic", new FormHeader(I18N.t("Basics"), "graphic"));
            form.addElement("basic.window", new FormGraphEle(I18N.t("Windowskin"), project, RTP.WINDOWSKIN, system,
                "@windowskin_name", null));

            // title screen
            form.addHeader("title", new FormHeader(I18N.t("Title"), "graphic"));
            form.addElement("title.graph", new FormGraphEle(I18N.t("Graphic"), project, RTP.TITLE, system, "@title_name", null));
            form.addElement("title.music",
                new FormMusicEle(I18N.t("Music"), project, RTP.BGM, system.getInstanceVariable("@title_bgm")));

            // game over screen
            form.addHeader("gameover", new FormHeader(I18N.t("Game Over"), "graphic"));
            form.addElement("gameover.graph", new FormGraphEle(I18N.t("Graphic"), project, RTP.GAMEOVER, system,
                "@gameover_name", null));
            form.addElement("gameover.music",
                new FormMusicEle(I18N.t("Music"), project, RTP.ME, system.getInstanceVariable("@gameover_me")));

            // battle screen
            form.addHeader("battle", new FormHeader(I18N.t("Battle"), "weapon"));
            form.addElement("battle.trans", new FormGraphEle(I18N.t("Transition"), project, RTP.TRANSITION, system,
                "@battle_transition", null));
            form.addElement("battle.mus",
                new FormMusicEle(I18N.t("Music"), project, RTP.BGM, system.getInstanceVariable("@battle_bgm")));
            form.addElement("battle.start",
                new FormMusicEle(I18N.t("Start"), project, RTP.SE, system.getInstanceVariable("@battle_start_se")));
            form.addElement("battle.end",
                new FormMusicEle(I18N.t("End"), project, RTP.ME, system.getInstanceVariable("@battle_end_me")));
            form.addElement("battle.es",
                new FormMusicEle(I18N.t("Escape"), project, RTP.SE, system.getInstanceVariable("@escape_se")));
            form.addElement("battle.adie",
                new FormMusicEle(I18N.t("Actor die"), project, RTP.SE, system.getInstanceVariable("@actor_collapse_se")));
            form.addElement("battle.edie",
                new FormMusicEle(I18N.t("Enemy die"), project, RTP.SE, system.getInstanceVariable("@enemy_collapse_se")));

            // another soundeffects
            form.addHeader("sound", new FormHeader(I18N.t("Sound effects"), "audio"));
            form.addElement("sound.dec",
                new FormMusicEle(I18N.t("Decision"), project, RTP.SE, system.getInstanceVariable("@decision_se")));
            form.addElement("sound.can",
                new FormMusicEle(I18N.t("Cancel"), project, RTP.SE, system.getInstanceVariable("@cancel_se")));
            form.addElement("sound.buzz",
View Full Code Here


      @Override
      public void work(HashMap<String, Object> objects) {
        FormBuilder f = (FormBuilder) objects.get("form");

        // add it
        f.addHeader("substance", new FormHeader(I18N.t("Look and Feel"), "substance").setColumn(4));

        FormComboBox c = YSettingHelper.combo(null, I18N.t("Look"), "substance", "0", className, classTitle);

        c.selectField(Setting.get("substance", "0"));
        c.addChangeListener(new FormElementChangeListener() {
View Full Code Here

      @Override
      public void work(HashMap<String, Object> objects) {
        final FormBuilder f = (FormBuilder) objects.get("form");

        // add rtp
        f.addHeader("rtp", new FormHeader(I18N.t("RTP"), "rtp").setColumn(4));

        // add buttons
        for (int i = 0, l = id.length; i < l; i++) {
          boolean e = isRTPinstalled(id[i], rgss[i]) != null;
          final String key = "rtp." + rgss[i] + "_" + id[i];
View Full Code Here

  public void buildForm(FormBuilder form, int id) {
    // get page
    RubyObject page = elements.get(id).getObject();

    // build
    form.addHeader("basic", new FormHeader(I18N.t("Grundlegenes"), "event"));
    form.addElement(
        "basic.trigger",
        RubyForm.getComboBoxNum(I18N.t("Trigger"), new String[] { "0", "1", "2", "3", "4" }, new String[] { "action button",
            "contact with player", "contact with event", "autorun", "parallel processing" }, page, "@trigger"));

    // animation
    form.addHeader("animation", new FormHeader(I18N.t("Animation"), "animation").setColumn(10).setCollapsed(true));
    form.addElement("animation.ani", RubyForm.getBoolean("Moving Animation", page, "@walk_anime"));
    form.addElement("animation.stop", RubyForm.getBoolean("Stopped Animation", page, "@step_anime"));
    form.addElement("animation.fix", RubyForm.getBoolean("Fixed Direction", page, "@direction_fix"));
    form.addElement("animation.move", RubyForm.getBoolean("Move Through", page, "@through"));
    form.addElement("animation.top", RubyForm.getBoolean("Always On Top", page, "@always_on_top"));

    // animation
    form.addHeader("move", new FormHeader(I18N.t("Bewegung"), "animation").setColumn(6));
    form.addElement(
        "move.typ",
        RubyForm.getComboBoxNum(I18N.t("Type"), new String[] { "0", "1", "2", "3" }, new String[] { "Fixed", "Random", "Approach",
            "Custom" }, page, "@move_type"));
    form.addElement(
        "move.speed",
        RubyForm.getComboBoxNum(I18N.t("Speed"), new String[] { "1", "2", "3", "4", "5", "6" }, new String[] { "slowest", "slower",
            "slow", "fast", "faster", "fastest" }, page, "@move_speed"));
    form.addElement(
        "move.freq",
        RubyForm.getComboBoxNum(I18N.t("Frequency"), new String[] { "1", "2", "3", "4", "5", "6" }, new String[] { "lowest",
            "lower", "low", "high", "higher", "highest" }, page, "@move_frequency"));

    // add contition
    RubyObject cond = (RubyObject) page.getInstanceVariable("@condition");
    form.addHeader("cond", new FormHeader(I18N.t("Bedingung"), "if").setColumn(8).setCollapsed(true));

    // add local switch
    FormCheckbox v = RubyForm.getBoolean("Local Switch", cond, "@self_switch_valid");
    form.addElement("cond.ls", v);
    form.addElement(
        "cond.ls2",
        FormHelper.setEnabeldWhenRightElementSelect(
            v,
            RubyForm.getComboBox("", new String[] { "A", "B", "C", "D" }, new String[] { "A", "B", "C", "D" },
                cond.getInstanceVariable("@self_switch_ch")), "true"));
    v.informListeners();

    // add switch 1
    v = RubyForm.getBoolean("Switch 1", cond, "@switch1_valid");
    form.addElement("cond.s1", v);
    form.addElement("cond.s12", FormHelper.setEnabeldWhenRightElementSelect(v, new FormSwitchVarSelector(project, "", cond,
        "@switch1_id", Type.SWITCH), "true"));
    v.informListeners();

    // add switch 2
    v = RubyForm.getBoolean("Switch 2", cond, "@switch2_valid");
    form.addElement("cond.s2", new FormEmpty());
    form.addElement("cond.s23", new FormEmpty());
    form.addElement("cond.s24", v);
    form.addElement("cond.s25", FormHelper.setEnabeldWhenRightElementSelect(v, new FormSwitchVarSelector(project, "", cond,
        "@switch2_id", Type.SWITCH), "true"));
    v.informListeners();

    // add variable
    v = RubyForm.getBoolean("Variable", cond, "@variable_valid");
    form.addElement("cond.v3", v);
    form.addElement("cond.v4", FormHelper.setEnabeldWhenRightElementSelect(v, new FormSwitchVarSelector(project, "", cond,
        "@variable_id", Type.VARIABLE), "true"));
    form.addElement("cond.v5",
        FormHelper.setEnabeldWhenRightElementSelect(v, RubyForm.getNumber(">=", cond, "@variable_value"), "true"));
    v.informListeners();

    // graphic
    RubyObject graph = (RubyObject) page.getInstanceVariable("@graphic");

    form.addHeader("graphic", new FormHeader(I18N.t("Graphic"), "graphic").setColumn(4).setCollapsed(true));

    // add select
    FormComboBox gS = new FormComboBox(I18N.t("Typ"), new String[] { "1", "0" }, new String[] { "Tile", "Character" });
    gS.selectField(RubyHelper.toInt(graph.getInstanceVariable("@tile_id")) == 0 ? "1" : "0");
    form.addElement("graphic.typ", gS.setSorting(-2));

    // add tile
    form.addElement("graphic.tile",
        FormHelper.setEnabeldWhenRightElementSelect(gS, RubyForm.getNumber(I18N.t("Tile"), graph, "@tile_id").setSorting(-1), "1"));

    // add char
    form.addElement("graphic.char", FormHelper.setEnabeldWhenRightElementSelect(gS, new FormGraphEle(I18N.t("Char"), project,
        RTP.CHARACTER, graph, "@character_name", "@character_hue"), "0"));
    form.addElement("graphic.char2", new FormEmpty());
    form.addElement("graphic.charpatt", FormHelper.setEnabeldWhenRightElementSelect(gS,
        RubyForm.getNumber(I18N.t("Pattern"), graph, "@pattern").setMinMax(0, 3, 1), "0"));
    form.addElement(
        "graphic.chardir",
        FormHelper.setEnabeldWhenRightElementSelect(
            gS,
            RubyForm.getComboBoxNum(I18N.t("Direction"), new String[] { "2", "4", "6", "8" }, new String[] { "Down", "Left",
                "Right", "Up" }, graph, "@direction"), "0"));
    form.addElement(
        "graphic.charopa",
        FormHelper.setEnabeldWhenRightElementSelect(gS,
            RubyForm.getNumber(I18N.t("Opacity"), graph, "@opacity").setMinMax(0, 255, 1), "0"));
    form.addElement(
        "graphic.charblend",
        FormHelper.setEnabeldWhenRightElementSelect(gS,
            RubyForm.getNumber(I18N.t("Blendtype"), graph, "@blend_type").setMinMax(0, 2, 1), "0"));

    gS.informListeners();

    // unsupported
    form.addHeader("unsupported", new FormHeader(I18N.t("Nicht unterstützt"), "error").setCollapsed(true));
    form.addElement("unsupported.ele", new FormInfo("", I18N.t("Movement route")));
    // @movement_route

    // add code
    form.setCenter(new YEventCommandList(page.getInstanceVariable("@list"), project, map));
View Full Code Here

   * @return
   */
  public static void addOperatorSupport(FormBuilder f, final EventCode e, int startpam) {

    // add header
    f.addHeader("operator", new FormHeader(I18N.t("Operation"), "del_add"));

    // add plus/neg
    addOperatorSupport(f, e, startpam, "operator.", null, null);
  }
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()) {
        // 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

  public void buildForm(FormBuilder form, int id) {
    // prepare
    RubyObject act = elements.get(id).getObject();

    // build basics
    form.addHeader("basic", new FormHeader(I18N.t("Grundlegenes"), getIcon() + "_info"));
    form.addElement("basic.name", RubyForm.getString(I18N.t("Name"), "@name", act));

    // animation
    form.addHeader("other", new FormHeader(I18N.t("Sonstiges"), "animation").setColumn(6));
    form.addElement("other.ani", new FormDBComboBox("Animation", project, Type.ANIMATION, act, "@animation_id", true));
    form.addElement("other.rat", RubyForm.getNumber(I18N.t("Rating"), act, "@rating").setMinMax(0, 10, 1));
    form.addElement("other.acc", RubyForm.getNumber(I18N.t("Accuracy"), act, "@hit_rate"));
    form.addElement("other.hp", RubyForm.getNumber(I18N.t("Max HP"), act, "@maxhp_rate"));
    form.addElement("other.sp", RubyForm.getNumber(I18N.t("Max SP"), act, "@maxsp_rate"));

    // values
    form.addHeader("feat", new FormHeader(I18N.t("Attribute"), "opts").setColumn(6));
    form.addElement(
        "feat.rest",
        RubyForm.getComboBoxNum("Restriction", new String[] { "0", "1", "2", "3", "4" }, new String[] { "None", "Can't use skills",
            "Always attack enemies", "Always attack allies", "All actions are disableld" }, act, "@restriction"));
    form.addElement("feat.unrest", RubyForm.getBoolean(I18N.t("Unresistable"), act, "@nonresistance"));
    form.addElement("feat.zerohp", RubyForm.getBoolean(I18N.t("Link with dead (HP 0)"), act, "@zero_hp"));
    form.addElement("feat.exp", RubyForm.getBoolean(I18N.t("Can't get exp"), act, "@cant_get_exp"));
    form.addElement("feat.eva", RubyForm.getBoolean(I18N.t("Evasion forbidden"), act, "@cant_evade"));
    form.addElement("feat.dam", RubyForm.getBoolean(I18N.t("Progressive Damage"), act, "@slip_damage"));

    // values
    form.addHeader("value", new FormHeader(I18N.t("Werte"), "systemmonitor").setColumn(8));
    form.addElement("value.str", RubyForm.getNumber(RGSS1Voc.str(project), act, "@str_rate"));
    form.addElement("value.dex", RubyForm.getNumber(RGSS1Voc.dex(project), act, "@dex_rate"));
    form.addElement("value.agi", RubyForm.getNumber(RGSS1Voc.agi(project), act, "@agi_rate"));
    form.addElement("value.int", RubyForm.getNumber(RGSS1Voc.inte(project), act, "@int_rate"));
    form.addElement("value.atk", RubyForm.getNumber("Attack Power", act, "@atk_rate"));
    form.addElement("value.pdef", RubyForm.getNumber("Phys Def", act, "@pdef_rate"));
    form.addElement("value.mdef", RubyForm.getNumber("Mag Def", act, "@mdef_rate"));
    form.addElement("value.eva", RubyForm.getNumber("Evasion", act, "@eva"));

    // build panel
    form.addHeader("rec", new FormHeader(I18N.t("Heilung"), "add").setColumn(4));
    form.addElement("rec.end", RubyForm.getBoolean(I18N.t("End After Battle"), act, "@battle_only"));
    form.addElement("rec.start",
        RubyForm.getNumber("Min. turn wait", act, "@hold_turn").setInfoTxt("How long must wait, to get a chance to recover"));
    form.addElement("rec.startrel", RubyForm.getNumber(I18N.t("% Chance to recover each turn"), act, "@auto_release_prob"));
    form.addElement(
        "rec.shockr",
        RubyForm.getNumber(I18N.t("% Chance to recover"), act, "@shock_release_prob").setInfoTxt(
            I18N.t("When damage is dealt, how big is the chance to recover?")));

    // build panel
    form.addHeader("result", new FormHeader(I18N.t("Setzen von Auswirkungen"), "status").setColumn(6).setSorting(4));

    form.addElement("result.element",
        new FormDBList(project, Type.ELEMENT, act.getInstanceVariable("@guard_element_set"), I18N.t("Attribute Resistance")));
    form.addElement("result.statusAdd",
        new FormDBList(project, Type.STATUS, act.getInstanceVariable("@plus_state_set"), I18N.t("Hinzufügen des Status.")));
View Full Code Here

  public void buildForm(FormBuilder form, int id) {
    // prepare
    RubyObject act = elements.get(id).getObject();

    // build basics
    form.addHeader("basic", new FormHeader(I18N.t("Grundlegenes"), getIcon() + "_info").setColumn(4));
    form.addElement("basic.name", RubyForm.getString("Name", "@name", act));
    form.addElement("basic.desc", RubyForm.getString(I18N.t("Beschreibung"), "@description", act));
    form.addElement("basic.image", new FormGraphEle(I18N.t("Bild"), project, RTP.ICON, act, "@icon_name", null));

    form.addHeader("usa", new FormHeader(I18N.t("Benutzung"), "info"));
    form.addElement("usa.price", RubyForm.getNumber(I18N.t("Preis"), act, "@price"));

    // values
    form.addHeader("value", new FormHeader(I18N.t("Werte"), "systemmonitor").setColumn(8));
    form.addElement("value.atk", RubyForm.getNumber("Attack Power", act, "@atk"));
    form.addElement("value.pdef", RubyForm.getNumber("Phys Defense", act, "@pdef"));
    form.addElement("value.mdef", RubyForm.getNumber("Mag Defense", act, "@mdef"));
    form.addElement("value.str", RubyForm.getNumber(RGSS1Voc.str(project), act, "@str_plus"));
    form.addElement("value.dex", RubyForm.getNumber(RGSS1Voc.dex(project), act, "@dex_plus"));
    form.addElement("value.agi", RubyForm.getNumber(RGSS1Voc.agi(project), act, "@agi_plus"));
    form.addElement("value.int", RubyForm.getNumber(RGSS1Voc.inte(project), act, "@int_plus"));

    // animation
    form.addHeader("other", new FormHeader(I18N.t("Sonstiges"), "animation").setColumn(4));
    form.addElement("other.user", new FormDBComboBox("User Animation", project, Type.ANIMATION, act, "@animation1_id", true));
    form.addElement("other.target", new FormDBComboBox("Target Animation", project, Type.ANIMATION, act, "@animation2_id", true));

    // build panel
    form.addHeader("result", new FormHeader(I18N.t("Setzen von Auswirkungen"), "skill").setColumn(6).setSorting(4));

    form.addElement("result.element",
        new FormDBList(project, Type.ELEMENT, act.getInstanceVariable("@element_set"), I18N.t("Setzen von Elementen")));
    form.addElement("result.statusAdd",
        new FormDBList(project, Type.STATUS, act.getInstanceVariable("@plus_state_set"), I18N.t("Hinzufügen des Status.")));
View Full Code Here

    // add map view
    final YMapView view = new YMapView(map, project);
    view.recreateEventImage();

    // build basics
    form.addHeader("basic", new FormHeader(I18N.t("Grundlegenes"), getIcon() + "_info").setColumn(6));
    form.addElement("basic.name", RubyForm.getString("Name", "@name", map));
    form.addElement("basic.tile", new FormDBComboBox(I18N.t("Tileset"), project, Type.TILESET, map, "@tileset_id", false)
        .addChangeListener(new FormElementChangeListener() {

          @Override
          public void stateChanged(FormElement form) {
            view.recreateImage();

          }
        }));
    form.addElement("basic.size",
        new FormInfo(I18N.t("Size"), I18N.t("{0}x{1}", map.getInstanceVariable("@width"), map.getInstanceVariable("@height")))
            .setInfoTxt(I18N.t("You can chance the map size in the mapeditor.")));

    // sounds
    form.addHeader("sound", new FormHeader(I18N.t("Sounds"), "audio").setColumn(8));
    form.addElement("sound.bgm", new FormMusicEle("BGM", project, RTP.BGM, map.getInstanceVariable("@bgm")));
    form.addElement("sound.bgmauto", RubyForm.getBoolean("Autoplay", map, "@autoplay_bgm"));
    form.addElement("sound.bgs", new FormMusicEle("BGS", project, RTP.BGS, map.getInstanceVariable("@bgs")));
    form.addElement("sound.bgsauto", RubyForm.getBoolean("Autoplay", map, "@autoplay_bgs"));

    // build panel
    form.addHeader("troop",
        new FormHeader(RGSS1Helper.getName(Type.TROOP), RGSS1Helper.getIcon(Type.TROOP)).setColumn(4).setCollapsed(true));
    form.addElement("troop.step", RubyForm.getNumber("Encounter Step", map, "@encounter_step").setMinMax(0, 500, 1));
    form.addElement(
        "troop.troop",
        new FormDBList(project, Type.TROOP, map.getInstanceVariable("@encounter_list"), I18N.t("{0} auf der Karte",
            RGSS1Helper.getName(Type.TROOP))));
View Full Code Here

  public void buildForm(FormBuilder form, int id) {
    // prepare
    RubyObject act = elements.get(id).getObject();

    // build basics
    form.addHeader("basic", new FormHeader(I18N.t("Grundlegenes"), getIcon() + "_info").setColumn(4));
    form.addElement("basic.name", RubyForm.getString(I18N.t("Name"), "@name", act));
    form.addElement(
        "basic.position",
        RubyForm.getComboBoxNum("Position", new String[] { "0", "1", "2", "3" }, new String[] { "Top", "Middle", "Bottom",
            "Whole Screen" }, act, "@position"));

    form.addHeader("graphic", new FormHeader(I18N.t("Graphics"), "graphic"));
    form.addElement("graphic.graphic", new FormGraphEle(I18N.t("Graphic"), project, RTP.ANIMATION, act, "@animation_name",
        "@animation_hue"));

    // build panel
    form.addHeader("animation", new FormHeader(I18N.t("Animationsoptionen"), "animation").setSorting(1).setColumn(2));
    form.addElement("animation.timing", new FormAnimationTimingList(getProject(), act.getInstanceVariable("@timings")));

    // build panel
    form.addHeader("unsupported", new FormHeader(I18N.t("Nicht unterstützt"), "error").setColumn(4).setCollapsed(true));
    form.addElement("unsupported.frames", RubyForm.getError("Frames", "@frames", act));
    form.addElement("unsupported.max", RubyForm.getError("Frames Max", "@frame_max", act));

  }
View Full Code Here

TOP

Related Classes of de.yaams.maker.helper.gui.form.core.FormHeader

Copyright © 2018 www.massapicom. 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.