2016-01-31 22:19:19 +00:00
|
|
|
/*
|
|
|
|
* Pixel Dungeon
|
|
|
|
* Copyright (C) 2012-2015 Oleg Dolya
|
|
|
|
*
|
|
|
|
* Shattered Pixel Dungeon
|
2016-05-08 23:54:12 +00:00
|
|
|
* Copyright (C) 2014-2016 Evan Debenham
|
2016-01-31 22:19:19 +00:00
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
|
|
|
*/
|
|
|
|
package com.shatteredpixel.shatteredpixeldungeon.scenes;
|
|
|
|
|
|
|
|
import com.shatteredpixel.shatteredpixeldungeon.Chrome;
|
|
|
|
import com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon;
|
2016-02-01 22:27:47 +00:00
|
|
|
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
|
2016-01-31 22:19:19 +00:00
|
|
|
import com.shatteredpixel.shatteredpixeldungeon.ui.Archs;
|
2016-02-01 09:10:19 +00:00
|
|
|
import com.shatteredpixel.shatteredpixeldungeon.ui.ExitButton;
|
2016-02-12 18:46:42 +00:00
|
|
|
import com.shatteredpixel.shatteredpixeldungeon.ui.RenderedTextMultiline;
|
2016-01-31 22:19:19 +00:00
|
|
|
import com.shatteredpixel.shatteredpixeldungeon.ui.ScrollPane;
|
|
|
|
import com.shatteredpixel.shatteredpixeldungeon.ui.Window;
|
|
|
|
import com.watabou.noosa.Camera;
|
|
|
|
import com.watabou.noosa.NinePatch;
|
2016-02-01 09:10:19 +00:00
|
|
|
import com.watabou.noosa.RenderedText;
|
2016-01-31 22:19:19 +00:00
|
|
|
import com.watabou.noosa.ui.Component;
|
|
|
|
|
|
|
|
//TODO: update this class with relevant info as new versions come out.
|
|
|
|
public class ChangesScene extends PixelScene {
|
|
|
|
|
|
|
|
private static final String TXT_Update =
|
2016-05-07 03:22:03 +00:00
|
|
|
"_v0.3.5a:_\n" +
|
|
|
|
"- Reduced warrior shield charge earlygame\n" +
|
|
|
|
"- Reduced berserker damage at higher HP\n" +
|
|
|
|
"- Increased berserk exhaust damage penalty\n" +
|
|
|
|
"- Increased power of 2,4,6 combo finishers\n" +
|
|
|
|
"- Translation updates\n" +
|
|
|
|
"- Various bugfixes\n" +
|
|
|
|
"\n" +
|
2016-05-01 08:36:09 +00:00
|
|
|
"_v0.3.5:_\n" +
|
|
|
|
"Warrior Rework:\n" +
|
|
|
|
"- Starting STR down to 10, from 11\n" +
|
|
|
|
"- Short sword dmg down to 1-10, from 1-12\n" +
|
|
|
|
"- Short sword can no longer be reforged\n" +
|
|
|
|
"- Now IDs potions of health, not STR\n" +
|
|
|
|
"- Now starts with a unique seal for armor\n" +
|
|
|
|
"- Seal grants shielding ontop of health\n" +
|
|
|
|
"- Seal allows for one upgrade transfer\n" +
|
2016-02-17 04:47:36 +00:00
|
|
|
"\n" +
|
2016-05-01 08:36:09 +00:00
|
|
|
"Berserker Rework:\n" +
|
|
|
|
"- Bonus damage now scales with lost HP, instead of a flat 50% at 50% hp\n" +
|
|
|
|
"- Berserker can now endure through death for a short time, with caveats\n" +
|
2016-02-10 07:47:15 +00:00
|
|
|
"\n" +
|
2016-05-01 08:36:09 +00:00
|
|
|
"Gladiator Rework:\n" +
|
|
|
|
"- Combo no longer grants bonus damage\n" +
|
|
|
|
"- Combo is now easier to stack\n" +
|
|
|
|
"- Combo now unlocks special finisher moves\n" +
|
2016-02-10 07:47:15 +00:00
|
|
|
"\n" +
|
2016-05-01 08:36:09 +00:00
|
|
|
"Balance Tweaks:\n" +
|
|
|
|
"- Spears can now reach enemies 1 tile away\n" +
|
|
|
|
"- Wand of Blast Wave now pushes bosses less\n" +
|
|
|
|
"\n" +
|
|
|
|
"Misc:\n" +
|
|
|
|
"- Can now examine multiple things in one tile\n" +
|
|
|
|
"- Classic font added for Russian language\n" +
|
|
|
|
"- Added Hungarian language\n" +
|
|
|
|
"\n"+
|
|
|
|
"_v0.3.4:_ Multiple language support\n" +
|
|
|
|
"\n" +
|
|
|
|
"_v0.3.3:_ Support for Google Play Games\n" +
|
2016-02-10 07:47:15 +00:00
|
|
|
"\n" +
|
2016-05-07 03:22:03 +00:00
|
|
|
"_v0.3.2:_ Prison Rework & Balance Changes\n" +
|
2016-02-10 07:47:15 +00:00
|
|
|
"\n" +
|
2016-05-01 08:36:09 +00:00
|
|
|
"_v0.3.1:_ Traps reworked & UI upgrades\n" +
|
2016-02-10 07:47:15 +00:00
|
|
|
"\n" +
|
2016-05-01 08:36:09 +00:00
|
|
|
"_v0.3.0:_ Wands & Mage completely reworked\n" +
|
2016-02-10 07:47:15 +00:00
|
|
|
"\n" +
|
|
|
|
"_v0.2.4:_ Small improvements and tweaks\n" +
|
|
|
|
"\n" +
|
|
|
|
"_v0.2.3:_ Artifact additions & improvements\n" +
|
|
|
|
"\n" +
|
|
|
|
"_v0.2.2:_ Small improvements and tweaks\n" +
|
|
|
|
"\n" +
|
|
|
|
"_v0.2.1:_ Sewer improvements\n" +
|
|
|
|
"\n" +
|
|
|
|
"_v0.2.0:_ Added artifacts, reworked rings\n" +
|
|
|
|
"\n" +
|
|
|
|
"_v0.1.1:_ Added blandfruit, reworked dew vial\n" +
|
|
|
|
"\n" +
|
|
|
|
"_v0.1.0:_ Improvements to potions/scrolls";
|
2016-01-31 22:19:19 +00:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public void create() {
|
|
|
|
super.create();
|
|
|
|
|
2016-02-01 09:10:19 +00:00
|
|
|
int w = Camera.main.width;
|
|
|
|
int h = Camera.main.height;
|
2016-01-31 22:19:19 +00:00
|
|
|
|
2016-02-01 22:27:47 +00:00
|
|
|
RenderedText title = PixelScene.renderText( Messages.get(this, "title"), 9 );
|
2016-02-01 09:10:19 +00:00
|
|
|
title.hardlight(Window.TITLE_COLOR);
|
|
|
|
title.x = (w - title.width()) / 2 ;
|
|
|
|
title.y = 4;
|
2016-02-12 18:46:42 +00:00
|
|
|
align(title);
|
2016-02-01 09:10:19 +00:00
|
|
|
add(title);
|
2016-01-31 22:19:19 +00:00
|
|
|
|
2016-02-01 09:10:19 +00:00
|
|
|
ExitButton btnExit = new ExitButton();
|
|
|
|
btnExit.setPos( Camera.main.width - btnExit.width(), 0 );
|
|
|
|
add( btnExit );
|
2016-01-31 22:19:19 +00:00
|
|
|
|
2016-02-01 09:10:19 +00:00
|
|
|
RenderedTextMultiline text = renderMultiline(TXT_Update, 6 );
|
2016-01-31 22:19:19 +00:00
|
|
|
|
|
|
|
|
2016-02-01 09:10:19 +00:00
|
|
|
int pw = w - 6;
|
|
|
|
int ph = h - 20;
|
2016-01-31 22:19:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
NinePatch panel = Chrome.get(Chrome.Type.WINDOW);
|
|
|
|
panel.size( pw, ph );
|
|
|
|
panel.x = (w - pw) / 2;
|
2016-02-01 09:10:19 +00:00
|
|
|
panel.y = title.y + title.height() + 2;
|
2016-01-31 22:19:19 +00:00
|
|
|
add( panel );
|
|
|
|
|
|
|
|
ScrollPane list = new ScrollPane( new Component() );
|
|
|
|
add( list );
|
|
|
|
|
|
|
|
Component content = list.content();
|
|
|
|
content.clear();
|
|
|
|
|
|
|
|
text.maxWidth((int) panel.innerWidth());
|
|
|
|
|
|
|
|
content.add(text);
|
|
|
|
|
|
|
|
content.setSize( panel.innerWidth(), text.height() );
|
|
|
|
|
|
|
|
list.setRect(
|
|
|
|
panel.x + panel.marginLeft(),
|
|
|
|
panel.y + panel.marginTop(),
|
|
|
|
panel.innerWidth(),
|
|
|
|
panel.innerHeight());
|
|
|
|
list.scrollTo(0, 0);
|
|
|
|
|
|
|
|
Archs archs = new Archs();
|
|
|
|
archs.setSize( Camera.main.width, Camera.main.height );
|
|
|
|
addToBack( archs );
|
|
|
|
|
|
|
|
fadeIn();
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected void onBackPressed() {
|
2016-02-01 09:10:19 +00:00
|
|
|
ShatteredPixelDungeon.switchNoFade(TitleScene.class);
|
2016-01-31 22:19:19 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|