@Override public void render() { if (selectedOption != -1) { RectangleRenderer.begin(); RectangleRenderer.setColor(StripesMatrix.darkCell); RectangleRenderer.setAlpha(0.8f); RectangleRenderer.setBounds( selectionBounds.getX(), selectionBounds.getY() + lineH * (selectedOption), selectionBounds.getWidth(), selectionBounds.getHeight()); RectangleRenderer.renderRect(); RectangleRenderer.end(); } StaticBitmapFont.begin(); titleText.render(); pricesText.render(); currencyText.render(); ammountsText.render(); StaticBitmapFont.end(); arrowsColumn.render(); goldBatch.begin(); goldSprite.draw(goldBatch); goldBatch.end(); if (buttonChangeCurrency.checkButton()) {} }
private void resetGlyphLayoutAmmounts(String s) { ammountsText.setText(s, optionsBounds.getX(), optionsBounds.getY(), optionsBounds.getWidth()); }