/** Constructs a new BitmapFont from the given {@link BitmapFontData} and {@link TextureRegion}. If the TextureRegion is null, * the image path(s) will be read from the BitmapFontData. The dispose() method will not dispose the texture of the region(s) * if the region is != null. * <p> * Passing a single TextureRegion assumes that your font only needs a single texture page. If you need to support multiple * pages, either let the Font read the images themselves (by specifying null as the TextureRegion), or by specifying each page * manually with the TextureRegion[] constructor. * @param integer If true, rendering positions will be at integer values to avoid filtering artifacts. */ public BitmapFont (BitmapFontData data, TextureRegion region, boolean integer) { this(data, region != null ? Array.with(region) : null, integer); }
/** Constructs a new BitmapFont from the given {@link BitmapFontData} and {@link TextureRegion}. If the TextureRegion is null, * the image path(s) will be read from the BitmapFontData. The dispose() method will not dispose the texture of the region(s) * if the region is != null. * <p> * Passing a single TextureRegion assumes that your font only needs a single texture page. If you need to support multiple * pages, either let the Font read the images themselves (by specifying null as the TextureRegion), or by specifying each page * manually with the TextureRegion[] constructor. * @param integer If true, rendering positions will be at integer values to avoid filtering artifacts. */ public BitmapFont (BitmapFontData data, TextureRegion region, boolean integer) { this(data, region != null ? Array.with(region) : null, integer); }
equals(json.toJson(" meow "), "\" meow \""); equals(json.toJson("\nmeow\n"), "\\nmeow\\n"); equals(json.toJson(Array.with(1, 2, 3), null, int.class), "[1,2,3]"); equals(json.toJson(Array.with("1", "2", "3"), null, String.class), "[1,2,3]"); equals(json.toJson(Array.with(" 1", "2 ", " 3 "), null, String.class), "[\" 1\",\"2 \",\" 3 \"]"); equals(json.toJson(Array.with("1", "", "3"), null, String.class), "[1,\"\",3]");
/** Constructs a new BitmapFont from the given {@link BitmapFontData} and {@link TextureRegion}. If the TextureRegion is null, * the image path(s) will be read from the BitmapFontData. The dispose() method will not dispose the texture of the region(s) * if the region is != null. * <p> * Passing a single TextureRegion assumes that your font only needs a single texture page. If you need to support multiple * pages, either let the Font read the images themselves (by specifying null as the TextureRegion), or by specifying each page * manually with the TextureRegion[] constructor. * @param integer If true, rendering positions will be at integer values to avoid filtering artifacts. */ public BitmapFont (BitmapFontData data, TextureRegion region, boolean integer) { this(data, region != null ? Array.with(region) : null, integer); }
public void launchPack(ProjectModel project, PackModel pack) { launchPack(project, Array.with(pack)); }
public void setToSuccess() { imgStateIndicator.setFrames(Array.with(VisUI.getSkin().getDrawable("custom/ic-proc-success"))); imgStateIndicator.setCurrentFrame(0); }
public void setToError(Exception e) { imgStateIndicator.setFrames(Array.with(VisUI.getSkin().getDrawable("custom/ic-proc-error"))); imgStateIndicator.setCurrentFrame(0); }
private Array<PackProcessingNode> prepareProcessingNodes(ProjectModel project, Array<PackModel> packs) { Array<PackProcessingNode> result = new Array<>(); for (PackModel pack : packs) { for (ScaleFactorModel scaleFactor : pack.getScaleFactors()) { PackModel newPack = new PackModel(pack); newPack.setScaleFactors(Array.with(scaleFactor)); TexturePacker.Settings settings = newPack.getSettings(); settings.scaleSuffix[0] = ""; settings.scale[0] = scaleFactor.getFactor(); settings.scaleResampling[0] = scaleFactor.getResampling(); PackProcessingNode processingNode = new PackProcessingNode(project, newPack); processingNode.setOrigPack(pack); result.add(processingNode); } } return result; }