Skip to content

Commit

Permalink
Removing now redundant code related to earlier page indicator dot att…
Browse files Browse the repository at this point in the history
…empt.
  • Loading branch information
lanceewing committed Apr 3, 2024
1 parent 56a9240 commit 8545d38
Showing 1 changed file with 0 additions and 50 deletions.
50 changes: 0 additions & 50 deletions core/src/main/java/com/agifans/agile/HomeScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -508,56 +508,6 @@ public Texture drawEmptyIcon(int iconWidth, int iconHeight) {
return texture;
}

private Button buildPageIndicatorDots(int currentPage, int numOfPages) {
int imageWidth = numOfPages * 100;
Pixmap pixmap = new Pixmap(imageWidth, 80, Pixmap.Format.RGBA8888);
Texture texture = new Texture(pixmap, Pixmap.Format.RGBA8888, false);
pixmap.setColor(1.0f, 1.0f, 1.0f, 0.10f);
pixmap.fill();
texture.draw(pixmap, 0, 0);
Image icon = new Image(texture);
icon.setAlign(Align.center);
Container<Image> iconContainer = new Container<Image>();
iconContainer.setActor(icon);
iconContainer.align(Align.center);
iconContainer.setWidth(imageWidth);
iconContainer.setHeight(80);
Button pageIndicator = new Button(skin);
ButtonStyle style = pageIndicator.getStyle();
style.up = style.down = null;
pageIndicator.stack(new Image(skin.getDrawable("top")), iconContainer)
.width(imageWidth)
.height(80);
return pageIndicator;
}

private Button buildNavButton(String iconPath) {
Button button = new Button(skin);
ButtonStyle style = button.getStyle();
style.up = style.down = null;

Pixmap iconPixmap = new Pixmap(Gdx.files.internal(iconPath));
Texture iconTexture = new Texture(iconPixmap);
iconPixmap.dispose();
iconTexture.setFilter(TextureFilter.Linear, TextureFilter.Linear);

Image icon = new Image(iconTexture);
icon.setAlign(Align.center);
Container<Image> iconContainer = new Container<Image>();
iconContainer.setActor(icon);
iconContainer.align(Align.center);
iconContainer.setWidth(80);
iconContainer.setHeight(80);
button.stack(new Image(skin.getDrawable("top")), iconContainer)
.width(80)
.height(80);
button.row();

button.addListener(appClickListener);
button.addListener(appGestureListener);
return button;
}

private static final int ICON_IMAGE_WIDTH = 320;
private static final int ICON_IMAGE_HEIGHT = 240;
private static final int ICON_LABEL_HEIGHT = 90;
Expand Down

0 comments on commit 8545d38

Please sign in to comment.