diff options
| author | ilotterytea <iltsu@alright.party> | 2022-09-04 22:56:25 +0600 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2022-09-04 22:56:25 +0600 |
| commit | 104ed62d7e99afbaead936a7ead7e16edac2380c (patch) | |
| tree | 9eee34e3ad4b81e3439f3d1591e4314ccfa6ea08 /core | |
| parent | 0d881e320630f6697bc4a2004d5fcce020c66e2a (diff) | |
будет в будущем
Diffstat (limited to 'core')
| -rw-r--r-- | core/src/com/ilotterytea/maxoning/ui/SaveSlot.java | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/core/src/com/ilotterytea/maxoning/ui/SaveSlot.java b/core/src/com/ilotterytea/maxoning/ui/SaveSlot.java deleted file mode 100644 index 4b413a9..0000000 --- a/core/src/com/ilotterytea/maxoning/ui/SaveSlot.java +++ /dev/null @@ -1,30 +0,0 @@ -package com.ilotterytea.maxoning.ui; - -import com.badlogic.gdx.graphics.g2d.NinePatch; -import com.badlogic.gdx.scenes.scene2d.Stage; -import com.badlogic.gdx.scenes.scene2d.ui.Image; -import com.badlogic.gdx.scenes.scene2d.ui.Label; -import com.badlogic.gdx.scenes.scene2d.ui.Skin; -import com.badlogic.gdx.scenes.scene2d.ui.Stack; -import com.rafaskoberg.gdx.typinglabel.TypingLabel; - -public class SaveSlot extends Stack { - public SaveSlot( - Skin skin, - NinePatch ninePatch, - float x, float y, - float width, float height, - CharSequence text - ) { - Image img = new Image(ninePatch); - TypingLabel label = new TypingLabel(text, skin); - - img.setPosition(x, y); - img.setSize(width, height); - - label.setPosition(img.getWidth() / 2, img.getHeight() / 2); - - super.add(img); - super.add(label); - } -} |
