Changed startup reminder

This commit is contained in:
Anuken 2020-07-29 19:04:20 -04:00
parent 5d266174af
commit e127df3aed
2 changed files with 18 additions and 1 deletions

View File

@ -429,7 +429,16 @@ public class Control implements ApplicationListener, Loadable{
//just a regular reminder
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

View File

@ -347,6 +347,14 @@ public class UI implements ApplicationListener, Loadable{
}}.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){
new Dialog(""){{
setFillParent(true);