Package org.jruby

Examples of org.jruby.RubyObject$VariableTableEntry


   * @see de.yaams.packandgo.helper.gui.list.YSimpleList#add()
   */
  @Override
  public void add() {
    // ask the tab
    RubyObject o = panel.createObject();

    // add it
    panel.getElements().add(new SystemGObject(o));
    panel.getElements().get(panel.getElements().size() - 1).setModified(true);
    add(panel.getElements().size() - 1);
View Full Code Here


   * @see de.yaams.packandgo.helper.gui.list.YSimpleList#add()
   */
  @Override
  public void add() {
    // ask the tab
    RubyObject o = panel.createObject();

    // add it
    panel.getElements().add(new SystemGObject(o));
    panel.getElements().get(panel.getElements().size() - 1).setModified(true);
    add(panel.getElements().size() - 1);
View Full Code Here

   *
   * @see de.yaams.packandgo.programm.tabs.YaTab#getContent()
   */
  public void buildForm(FormBuilder form, int id) {
    // get page
    RubyObject action = elements.get(id).getObject();

    // build
    FormComboBox f = RubyForm.getComboBoxNum(I18N.t("Typ"), new String[] { "0", "1" },
        new String[] { "Basic", RGSS1Helper.getName(Type.SKILL) }, action, "@kind");
    form.addElement("basic.kind", f.setSorting(-1));
View Full Code Here

   *
   * @see de.yaams.packandgo.programm.tabs.YaTab#getContent()
   */
  public void buildForm(FormBuilder form, int id) {
    // get page
    RubyObject page = elements.get(id).getObject();
    RubyObject condition = (RubyObject) page.getInstanceVariable("@condition");

    // build
    form.addElement("basic.span", RubyForm.getComboBoxNum(I18N.t("Span"), new String[] { "0", "1", "2" }, new String[] { "Battle",
        "Turn", "Movement" }, page, "@span"));

View Full Code Here

   * de.yaams.maker.helper.gui.form.FormList#configForm(de.yaams.maker.helper
   * .gui.form.core.FormBuilder, java.lang.Object)
   */
  @Override
  protected void configForm(FormBuilder f, IRubyObject element) {
    RubyObject r = (RubyObject) element;

    // set it
    f.addElement("basic.x", RubyForm.getNumber(I18N.t("X-Pos"), r, "@x"));
    f.addElement("basic.y", RubyForm.getNumber(I18N.t("Y-Pos"), r, "@y"));
    f.addElement("basic.hidden", RubyForm.getBoolean(I18N.t("Appear Midway"), r, "@hidden"));
View Full Code Here

   * @param value
   * @return
   */
  @Override
  public Object getText(final Object value) {
    RubyObject r = (RubyObject) value;

    return RGSS1Helper.get(project, Type.ENEMY).get(RubyHelper.toInt(r.getInstanceVariable("@enemy_id"))).getName();
  }
View Full Code Here

   *
   * @see de.yaams.maker.helper.gui.form.FormList#getIcon(java.lang.Object)
   */
  @Override
  protected Object getIcon(IRubyObject value) {
    RubyObject r = (RubyObject) value;

    // new Throwable().printStackTrace();

    return RGSS1Helper.getIcon(project, Type.ENEMY, RubyHelper.toInt(r.getInstanceVariable("@enemy_id")));
  }
View Full Code Here

   * de.yaams.maker.helper.gui.form.FormList#configForm(de.yaams.maker.helper
   * .gui.form.core.FormBuilder, java.lang.Object)
   */
  @Override
  protected void configForm(FormBuilder f, IRubyObject element) {
    RubyObject r = (RubyObject) element;

    // set it
    f.addElement("basic.level", RubyForm.getNumber(I18N.t("Ab Level"), r, "@level").setMinMax(0, 99, 1));
    f.addElement("basic.skill", new FormDBComboBox(title, project, Type.SKILL, r, "@skill_id", false));

View Full Code Here

   * @param value
   * @return
   */
  @Override
  public Object getText(final Object value) {
    RubyObject r = (RubyObject) value;

    return I18N.t("Ab Lv {0} lernt {1}", r.getInstanceVariable("@level"),
        RGSS1Helper.get(project, Type.SKILL).get(RubyHelper.toInt(r.getInstanceVariable("@skill_id"))).getName());
  }
View Full Code Here

   *
   * @see de.yaams.maker.helper.gui.form.FormList#getIcon(java.lang.Object)
   */
  @Override
  protected Object getIcon(IRubyObject value) {
    RubyObject r = (RubyObject) value;

    // new Throwable().printStackTrace();

    return RGSS1Helper.getIcon(project, Type.SKILL, RubyHelper.toInt(r.getInstanceVariable("@skill_id")));
  }
View Full Code Here

TOP

Related Classes of org.jruby.RubyObject$VariableTableEntry

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.