summaryrefslogtreecommitdiff
path: root/core/src/kz/ilotterytea/maxon/ui
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2024-10-26 00:19:22 +0500
committerilotterytea <iltsu@alright.party>2024-10-26 00:19:22 +0500
commitd1ee70ccb99cc23cbd3d20bb5daf70cd9aa54205 (patch)
treeafd2f85ebb2b4f546ffde2491e4600c3aea6fdea /core/src/kz/ilotterytea/maxon/ui
parent9468770a3471d607b0bfd6b0f8554eeb6eccf1e0 (diff)
upd: unused code cleanup
Diffstat (limited to 'core/src/kz/ilotterytea/maxon/ui')
-rw-r--r--core/src/kz/ilotterytea/maxon/ui/AnimatedImageButton.java24
-rw-r--r--core/src/kz/ilotterytea/maxon/ui/InventoryAnimatedItem.java26
-rw-r--r--core/src/kz/ilotterytea/maxon/ui/NinepatchButton.java28
-rw-r--r--core/src/kz/ilotterytea/maxon/ui/SupaIconButton.java24
4 files changed, 0 insertions, 102 deletions
diff --git a/core/src/kz/ilotterytea/maxon/ui/AnimatedImageButton.java b/core/src/kz/ilotterytea/maxon/ui/AnimatedImageButton.java
deleted file mode 100644
index 4972afd..0000000
--- a/core/src/kz/ilotterytea/maxon/ui/AnimatedImageButton.java
+++ /dev/null
@@ -1,24 +0,0 @@
-package kz.ilotterytea.maxon.ui;
-
-import com.badlogic.gdx.scenes.scene2d.ui.ImageButton;
-import com.badlogic.gdx.scenes.scene2d.utils.Drawable;
-
-public class AnimatedImageButton extends ImageButton {
- public AnimatedImageButton(AnimatedImage image) {
- super(image.getDrawable());
- ImageButtonStyle style = new ImageButtonStyle();
-
- style.up = image.getDrawable();
- super.setStyle(style);
- }
-
- public void setDrawable(Drawable drawable) {
- ImageButtonStyle style = new ImageButtonStyle();
-
- style.up = drawable;
- super.setStyle(style);
- }
-
- @Override public void act(float delta) {
- }
-}
diff --git a/core/src/kz/ilotterytea/maxon/ui/InventoryAnimatedItem.java b/core/src/kz/ilotterytea/maxon/ui/InventoryAnimatedItem.java
deleted file mode 100644
index af6c6da..0000000
--- a/core/src/kz/ilotterytea/maxon/ui/InventoryAnimatedItem.java
+++ /dev/null
@@ -1,26 +0,0 @@
-package kz.ilotterytea.maxon.ui;
-
-import com.badlogic.gdx.scenes.scene2d.ui.*;
-import kz.ilotterytea.maxon.player.MaxonItem;
-
-public class InventoryAnimatedItem extends Stack {
- public InventoryAnimatedItem(
- MaxonItem item,
- Skin skin,
- Integer amount
- ) {
- super(new Image(item.icon.getDrawable()));
-
- Table table = new Table();
- table.setSize(super.getWidth(), super.getHeight());
- table.add(new Label(String.format("x%s", amount), skin, "default")).bottom().right();
-
- TextTooltip.TextTooltipStyle style = new TextTooltip.TextTooltipStyle();
- style.label = new Label.LabelStyle();
- style.label.font = skin.getFont("small");
- style.label.fontColor = skin.getColor("white");
-
- super.add(table);
- super.addListener(new TextTooltip(String.format("%s (%s)", item.name, item.multiplier), style));
- }
-}
diff --git a/core/src/kz/ilotterytea/maxon/ui/NinepatchButton.java b/core/src/kz/ilotterytea/maxon/ui/NinepatchButton.java
deleted file mode 100644
index ab96c63..0000000
--- a/core/src/kz/ilotterytea/maxon/ui/NinepatchButton.java
+++ /dev/null
@@ -1,28 +0,0 @@
-package kz.ilotterytea.maxon.ui;
-
-import com.badlogic.gdx.graphics.g2d.NinePatch;
-import com.badlogic.gdx.scenes.scene2d.ui.Skin;
-import com.badlogic.gdx.scenes.scene2d.ui.TextButton;
-import com.badlogic.gdx.scenes.scene2d.utils.NinePatchDrawable;
-
-public class NinepatchButton extends TextButton {
- public NinepatchButton(
- NinePatch up,
- NinePatch down,
- NinePatch over,
- String text,
- Skin skin,
- String styleName
- ) {
- super(text, skin, styleName);
- TextButtonStyle style = new TextButtonStyle();
-
- style.up = new NinePatchDrawable(up);
- style.down = new NinePatchDrawable(down);
- style.over = new NinePatchDrawable(over);
- style.fontColor = skin.getColor("white");
- style.font = skin.getFont("default");
-
- super.setStyle(style);
- }
-}
diff --git a/core/src/kz/ilotterytea/maxon/ui/SupaIconButton.java b/core/src/kz/ilotterytea/maxon/ui/SupaIconButton.java
deleted file mode 100644
index 2ebdbc0..0000000
--- a/core/src/kz/ilotterytea/maxon/ui/SupaIconButton.java
+++ /dev/null
@@ -1,24 +0,0 @@
-package kz.ilotterytea.maxon.ui;
-
-import com.badlogic.gdx.graphics.g2d.NinePatch;
-import com.badlogic.gdx.scenes.scene2d.ui.*;
-import com.badlogic.gdx.utils.Align;
-
-public class SupaIconButton extends Stack {
-
- public SupaIconButton(
- NinePatch ninepatch,
- CharSequence text,
- Skin skin
- ) {
- super(new Image(ninepatch));
-
- Label label = new Label(text, skin);
- Table table = new Table();
-
- label.setAlignment(Align.center);
-
- table.add(label).expand().fillX().center().left();
- super.add(table);
- }
-}