From 8545d3824c4164990338002ae1a86c40148f1eaa Mon Sep 17 00:00:00 2001 From: Lance Ewing Date: Wed, 3 Apr 2024 19:08:40 +0100 Subject: [PATCH] Removing now redundant code related to earlier page indicator dot attempt. --- .../java/com/agifans/agile/HomeScreen.java | 50 ------------------- 1 file changed, 50 deletions(-) diff --git a/core/src/main/java/com/agifans/agile/HomeScreen.java b/core/src/main/java/com/agifans/agile/HomeScreen.java index fd6f607..ad8cccf 100644 --- a/core/src/main/java/com/agifans/agile/HomeScreen.java +++ b/core/src/main/java/com/agifans/agile/HomeScreen.java @@ -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 iconContainer = new Container(); - 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 iconContainer = new Container(); - 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;