mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-11 11:17:11 +07:00
Added warning message for upgrading users of the game
This commit is contained in:
parent
1397ed2d06
commit
d52d9bec81
@ -1,5 +1,6 @@
|
||||
text.about=Created by [ROYAL]Anuken.[]\nOriginally an entry in the [orange]GDL[] MM Jam.\n\nCredits:\n- SFX made with [YELLOW]bfxr[]\n- Music made by [GREEN]RoccoW[] / found on [lime]FreeMusicArchive.org[]\n\nSpecial thanks to:\n- [coral]MitchellFJN[]: extensive playtesting and feedback\n- [sky]Luxray5474[]: wiki work, code contributions\n- All the beta testers on itch.io and Google Play\n
|
||||
text.discord=Join the mindustry discord!
|
||||
text.changes=[SCARLET]Attention!\n[]Some important game mechanics have been changed.\n\n- [accent]Teleporters[] now use power.\n- [accent]Smelteries[] and [accent]crucibles[] now have a maximum item capacity.\n- [accent]Crucibles[] now require coal as fuel.
|
||||
text.gameover=The core was destroyed.
|
||||
text.highscore=[YELLOW]New highscore!
|
||||
text.lasted=You lasted until wave
|
||||
|
@ -1,5 +1,5 @@
|
||||
#Autogenerated file. Do not modify.
|
||||
#Mon Feb 19 20:13:04 EST 2018
|
||||
#Mon Feb 19 20:43:00 EST 2018
|
||||
version=beta
|
||||
androidBuildCode=248
|
||||
name=Mindustry
|
||||
|
@ -119,7 +119,8 @@ public class Control extends Module{
|
||||
"port", port+"",
|
||||
"name", android || gwt ? "player" : UCore.getProperty("user.name"),
|
||||
"servers", "",
|
||||
"color", Color.rgba8888(playerColors[8])
|
||||
"color", Color.rgba8888(playerColors[8]),
|
||||
"lastVersion", "3.2"
|
||||
);
|
||||
|
||||
KeyBinds.load();
|
||||
@ -245,6 +246,23 @@ public class Control extends Module{
|
||||
return tutorial;
|
||||
}
|
||||
|
||||
private void checkOldUser(){
|
||||
boolean hasPlayed = false;
|
||||
|
||||
for(Map map : world.maps().getAllMaps()){
|
||||
if(Settings.getInt("hiscore" + map.name) != 0){
|
||||
hasPlayed = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if(hasPlayed && Settings.getString("lastVersion").equals("3.2")){
|
||||
Timers.runTask(1f, () -> ui.showInfo("$text.changes"));
|
||||
Settings.putString("lastVersion", "3.3");
|
||||
Settings.save();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void dispose(){
|
||||
Platform.instance.onGameExit();
|
||||
@ -269,10 +287,11 @@ public class Control extends Module{
|
||||
Timers.run(1f, Musics::shuffleAll);
|
||||
|
||||
Entities.initPhysics();
|
||||
|
||||
Entities.collisions().setCollider(tilesize, world::solid);
|
||||
|
||||
Platform.instance.updateRPC();
|
||||
|
||||
checkOldUser();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user