Deployment dialog replaced
This commit is contained in:
29
core/src/mindustry/ui/dialogs/PlanetDialog.java
Normal file
29
core/src/mindustry/ui/dialogs/PlanetDialog.java
Normal file
@@ -0,0 +1,29 @@
|
||||
package mindustry.ui.dialogs;
|
||||
|
||||
import mindustry.gen.*;
|
||||
import mindustry.graphics.*;
|
||||
import mindustry.ui.*;
|
||||
|
||||
import static mindustry.Vars.ui;
|
||||
|
||||
public class PlanetDialog extends FloatingDialog{
|
||||
private PlanetRenderer renderer = new PlanetRenderer();
|
||||
|
||||
public PlanetDialog(){
|
||||
super("", Styles.fullDialog);
|
||||
|
||||
addCloseButton();
|
||||
buttons.addImageTextButton("$techtree", Icon.tree, () -> ui.tech.show()).size(230f, 64f);
|
||||
|
||||
shown(this::setup);
|
||||
}
|
||||
|
||||
void setup(){
|
||||
cont.clear();
|
||||
titleTable.remove();
|
||||
|
||||
cont.addRect((x, y, w, h) -> {
|
||||
renderer.draw();
|
||||
}).grow();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user