Added warning message for upgrading users of the game
This commit is contained in:
@@ -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.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.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.gameover=The core was destroyed.
|
||||||
text.highscore=[YELLOW]New highscore!
|
text.highscore=[YELLOW]New highscore!
|
||||||
text.lasted=You lasted until wave
|
text.lasted=You lasted until wave
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#Autogenerated file. Do not modify.
|
#Autogenerated file. Do not modify.
|
||||||
#Mon Feb 19 20:13:04 EST 2018
|
#Mon Feb 19 20:43:00 EST 2018
|
||||||
version=beta
|
version=beta
|
||||||
androidBuildCode=248
|
androidBuildCode=248
|
||||||
name=Mindustry
|
name=Mindustry
|
||||||
|
|||||||
@@ -119,7 +119,8 @@ public class Control extends Module{
|
|||||||
"port", port+"",
|
"port", port+"",
|
||||||
"name", android || gwt ? "player" : UCore.getProperty("user.name"),
|
"name", android || gwt ? "player" : UCore.getProperty("user.name"),
|
||||||
"servers", "",
|
"servers", "",
|
||||||
"color", Color.rgba8888(playerColors[8])
|
"color", Color.rgba8888(playerColors[8]),
|
||||||
|
"lastVersion", "3.2"
|
||||||
);
|
);
|
||||||
|
|
||||||
KeyBinds.load();
|
KeyBinds.load();
|
||||||
@@ -245,6 +246,23 @@ public class Control extends Module{
|
|||||||
return tutorial;
|
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
|
@Override
|
||||||
public void dispose(){
|
public void dispose(){
|
||||||
Platform.instance.onGameExit();
|
Platform.instance.onGameExit();
|
||||||
@@ -269,10 +287,11 @@ public class Control extends Module{
|
|||||||
Timers.run(1f, Musics::shuffleAll);
|
Timers.run(1f, Musics::shuffleAll);
|
||||||
|
|
||||||
Entities.initPhysics();
|
Entities.initPhysics();
|
||||||
|
|
||||||
Entities.collisions().setCollider(tilesize, world::solid);
|
Entities.collisions().setCollider(tilesize, world::solid);
|
||||||
|
|
||||||
Platform.instance.updateRPC();
|
Platform.instance.updateRPC();
|
||||||
|
|
||||||
|
checkOldUser();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user