WIP campaign complete dialog
This commit is contained in:
@@ -4458,7 +4458,7 @@ public class Blocks{
|
|||||||
//TODO is this a good idea to begin with?
|
//TODO is this a good idea to begin with?
|
||||||
unitSort = UnitSorts.strongest;
|
unitSort = UnitSorts.strongest;
|
||||||
|
|
||||||
consumeLiquid(Liquids.nitrogen, 5f / 60f);
|
consumeLiquid(Liquids.nitrogen, 6f / 60f);
|
||||||
}};
|
}};
|
||||||
|
|
||||||
scathe = new ItemTurret("scathe"){{
|
scathe = new ItemTurret("scathe"){{
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package mindustry.ui.dialogs;
|
package mindustry.ui.dialogs;
|
||||||
|
|
||||||
import mindustry.*;
|
import mindustry.*;
|
||||||
|
import mindustry.core.*;
|
||||||
import mindustry.gen.*;
|
import mindustry.gen.*;
|
||||||
import mindustry.type.*;
|
import mindustry.type.*;
|
||||||
|
|
||||||
@@ -25,10 +26,12 @@ public class CampaignCompleteDialog extends BaseDialog{
|
|||||||
//TODO obviously needs different text.
|
//TODO obviously needs different text.
|
||||||
cont.clear();
|
cont.clear();
|
||||||
|
|
||||||
cont.add("[accent]Congrations. You done it.[]\n\nThe enemy on " + planet.localizedName + " has been defeated.");
|
cont.add("[accent]Congratulations.\nThe enemy on " + planet.localizedName + " has been defeated.\n\nThe final sector has been conquered.").row();
|
||||||
|
|
||||||
float playtime = planet.sectors.sumf(s -> s.hasSave() ? s.save.meta.timePlayed : 0) / 1000f;
|
float playtime = planet.sectors.sumf(s -> s.hasSave() ? s.save.meta.timePlayed : 0) / 1000f;
|
||||||
|
|
||||||
|
//TODO needs more info
|
||||||
|
cont.add("Total Playtime: " + UI.formatTime(playtime)).left().row();
|
||||||
|
|
||||||
show();
|
show();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user