mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-24 13:39:03 +07:00
Changed startup reminder
This commit is contained in:
parent
5d266174af
commit
e127df3aed
@ -429,7 +429,16 @@ public class Control implements ApplicationListener, Loadable{
|
|||||||
|
|
||||||
//just a regular reminder
|
//just a regular reminder
|
||||||
if(!OS.prop("user.name").equals("anuke") && !OS.hasEnv("iknowwhatimdoing")){
|
if(!OS.prop("user.name").equals("anuke") && !OS.hasEnv("iknowwhatimdoing")){
|
||||||
ui.showInfo("[scarlet]6.0 is not supposed to be played.[] Go do something else.");
|
app.post(() -> app.post(() -> {
|
||||||
|
ui.showStartupInfo("[accent]v6[] is currently in [accent]pre-alpha[].\n" +
|
||||||
|
"[lightgray]This means:[]\n" +
|
||||||
|
"- Content is missing\n" +
|
||||||
|
"- Most [scarlet]Unit AI[] does not work\n" +
|
||||||
|
"- Many units are [scarlet]missing[] or unfinished\n" +
|
||||||
|
"- The campaign is completely unfinished\n" +
|
||||||
|
"- Everything you see is subject to change or removal." +
|
||||||
|
"\n\nReport bugs or crashes on [accent]Github[].");
|
||||||
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
//play tutorial on stop
|
//play tutorial on stop
|
||||||
|
@ -347,6 +347,14 @@ public class UI implements ApplicationListener, Loadable{
|
|||||||
}}.show();
|
}}.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void showStartupInfo(String info){
|
||||||
|
new Dialog(""){{
|
||||||
|
getCell(cont).growX();
|
||||||
|
cont.margin(15).add(info).width(400f).wrap().get().setAlignment(Align.left);
|
||||||
|
buttons.button("$ok", this::hide).size(110, 50).pad(4);
|
||||||
|
}}.show();
|
||||||
|
}
|
||||||
|
|
||||||
public void showErrorMessage(String text){
|
public void showErrorMessage(String text){
|
||||||
new Dialog(""){{
|
new Dialog(""){{
|
||||||
setFillParent(true);
|
setFillParent(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user