Package de.yaams.extensions.rgssproject.database

Examples of de.yaams.extensions.rgssproject.database.JavaTable


   * @param name
   * @param i
   * @return
   */
  public static FormCheckbox getBooleanFlag(final String name, final RubyObject holder, final int index, final int flag) {
    final JavaTable table = new JavaTable(holder);

    return (FormCheckbox) new FormCheckbox(name, (table.get(index, 0, 0) & flag) == flag).addChangeListener(new FormElementChangeListener() {

      @Override
      public void stateChanged(FormElement form) {
        if (Boolean.parseBoolean(form.getContentAsString())) {
          table.set(index, 0, 0, table.get(index, 0, 0) | flag);
        } else {
          table.set(index, 0, 0, table.get(index, 0, 0));
        }

      }
    });
  }
View Full Code Here


    form.addHeader("tileset", new FormHeader(I18N.t("Tileset"), "tileset").setColumn(16));
    // load tileset
    ArrayList<BufferedImage> img = RGSS1Load.loadTilesetAsImage(project, id);

    // scale?
    JavaTable table = new JavaTable(act.getInstanceVariable("@passages"));
    int lg = img.size() + 384;
    if (lg != table.getX()) {
      table.setX(lg);
      new JavaTable(act.getInstanceVariable("@priorities")).setX(lg);
      new JavaTable(act.getInstanceVariable("@terrain_tags")).setX(lg);
    }

    for (int i = 0, l = img.size(); i < l; i++) {
      form.addElement("tileset." + i, new FormTileset(act, i + 384, img.get(i)).setSorting(i));
    }
View Full Code Here

TOP

Related Classes of de.yaams.extensions.rgssproject.database.JavaTable

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.