it is done
This commit is contained in:
15
core/src/mindustry/ui/MobileButton.java
Normal file
15
core/src/mindustry/ui/MobileButton.java
Normal file
@@ -0,0 +1,15 @@
|
||||
package mindustry.ui;
|
||||
|
||||
import arc.scene.style.*;
|
||||
import arc.scene.ui.ImageButton;
|
||||
import arc.util.Align;
|
||||
|
||||
public class MobileButton extends ImageButton{
|
||||
|
||||
public MobileButton(Drawable icon, String text, Runnable listener){
|
||||
super(icon);
|
||||
clicked(listener);
|
||||
row();
|
||||
add(text).growX().wrap().center().get().setAlignment(Align.center, Align.center);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user