v0.2.2b: added in a warning relating to an OS issue for android L users
This commit is contained in:
parent
1febc6b7e3
commit
402f61aa76
|
@ -17,6 +17,7 @@
|
|||
*/
|
||||
package com.shatteredpixel.shatteredpixeldungeon.scenes;
|
||||
|
||||
import android.os.Build;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.Assets;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.Statistics;
|
||||
|
@ -25,6 +26,7 @@ import com.shatteredpixel.shatteredpixeldungeon.items.Generator;
|
|||
import com.shatteredpixel.shatteredpixeldungeon.items.Item;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.potions.Potion;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.levels.Level;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.ui.Window;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.windows.WndError;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.windows.WndStory;
|
||||
import com.watabou.noosa.BitmapText;
|
||||
|
@ -44,6 +46,8 @@ public class InterlevelScene extends PixelScene {
|
|||
private static final String TXT_DESCENDING = "Descending...";
|
||||
private static final String TXT_ASCENDING = "Ascending...";
|
||||
private static final String TXT_LOADING = "Loading...";
|
||||
private static final String TXT_L = "\n\n\nDue to an issue with Android L,\nThe game may need some\n" +
|
||||
"extra time to load initially.\n\nSorry for any inconvenience,\nGoogle should fix this shortly.";
|
||||
private static final String TXT_RESURRECTING= "Resurrecting...";
|
||||
private static final String TXT_RETURNING = "Returning...";
|
||||
private static final String TXT_FALLING = "Falling...";
|
||||
|
@ -106,6 +110,15 @@ public class InterlevelScene extends PixelScene {
|
|||
message.y = (Camera.main.height - message.height()) / 2;
|
||||
add( message );
|
||||
|
||||
if (Build.VERSION.RELEASE.equals("5.0") && Dungeon.hero == null && Dungeon.depth == 0){
|
||||
BitmapText Lwarn = PixelScene.createMultiline(TXT_L, 9);
|
||||
Lwarn.hardlight(Window.TITLE_COLOR);
|
||||
Lwarn.measure();
|
||||
Lwarn.x = (Camera.main.width - Lwarn.width()) / 2;
|
||||
Lwarn.y = message.y;
|
||||
add( Lwarn );
|
||||
}
|
||||
|
||||
phase = Phase.FADE_IN;
|
||||
timeLeft = TIME_TO_FADE;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user