v0.8.2: improved new supporter scene
This commit is contained in:
parent
4950e49a9a
commit
42a51304a9
|
@ -65,8 +65,8 @@ scenes.startscene.title=Games in Progress
|
||||||
scenes.startscene.new=New Game
|
scenes.startscene.new=New Game
|
||||||
|
|
||||||
scenes.supporterscene.title=Support the Game
|
scenes.supporterscene.title=Support the Game
|
||||||
scenes.supporterscene.supporter_link=Go to Patreon
|
scenes.supporterscene.supporter_link=Go to Patreon Page
|
||||||
scenes.supporterscene$supportermessage.patreon=Shattered Pixel Dungeon is a completely free game, which means that I depend on support from generous players in order to keep making it.\n\nIf you're interested in supporting me, the best way to do so is through Patreon. Patreon gives me a consistent income source, and allows me to give something back to those who support me!\n\nPatrons get exclusive blog posts every week which let them know about what I'm working on before anyone else!\n\nYou can take a look at my Patreon page for the most up to date information about benefits, Thank you for your consideration!
|
scenes.supporterscene$supportermessage.patreon=I want Shattered Pixel Dungeon to be free of ads and invasive microtransations, which ruin the experience of so many mobile games. Instead, I think it's best to just ask players for their support!\n\nIf you enjoy my game and want to help me keep making it, please consider supporting me through _Patreon!_ Patreon gives me a consistent income source, and lets me reward supporters with exclusive benefits!:\n_- Weekly mini-blogs_, with info about what I'm working on.\n_- Content Polls_, which directly affect content I'm developing.\n_- A Community Discord_, with a dev log and chat channels.\n_- More benefits to come_, as the Patreon community grows.\n\nYou can visit the Patreon page for more specific info. Thank you for your consideration!
|
||||||
scenes.supporterscene$supportermessage.patreon_english=Note that Patreon rewards are only available in English.
|
scenes.supporterscene$supportermessage.patreon_english=Note that Patreon rewards are only available in English.
|
||||||
|
|
||||||
scenes.surfacescene.exit=Game Over
|
scenes.surfacescene.exit=Game Over
|
||||||
|
|
|
@ -33,6 +33,7 @@ import com.shatteredpixel.shatteredpixeldungeon.ui.Window;
|
||||||
import com.watabou.noosa.Camera;
|
import com.watabou.noosa.Camera;
|
||||||
import com.watabou.noosa.NinePatch;
|
import com.watabou.noosa.NinePatch;
|
||||||
import com.watabou.noosa.ui.Component;
|
import com.watabou.noosa.ui.Component;
|
||||||
|
import com.watabou.utils.DeviceCompat;
|
||||||
|
|
||||||
public class SupporterScene extends PixelScene {
|
public class SupporterScene extends PixelScene {
|
||||||
|
|
||||||
|
@ -68,7 +69,18 @@ public class SupporterScene extends PixelScene {
|
||||||
msg.setSize(elementWidth, 0);
|
msg.setSize(elementWidth, 0);
|
||||||
add(msg);
|
add(msg);
|
||||||
|
|
||||||
StyledButton link = new StyledButton(Chrome.Type.GREY_BUTTON_TR, Messages.get(this, "supporter_link"));
|
StyledButton link = new StyledButton(Chrome.Type.GREY_BUTTON_TR, Messages.get(this, "supporter_link")){
|
||||||
|
@Override
|
||||||
|
protected void onClick() {
|
||||||
|
super.onClick();
|
||||||
|
String link = "https://www.patreon.com/ShatteredPixel";
|
||||||
|
//tracking codes, so that the website knows where this pageview came from
|
||||||
|
link += "/?utm_source=shatteredpd";
|
||||||
|
link += "&utm_medium=android";
|
||||||
|
link += "&utm_campaign=supporter_page";
|
||||||
|
DeviceCompat.openURI(link);
|
||||||
|
}
|
||||||
|
};
|
||||||
link.icon(Icons.get(Icons.GOLD));
|
link.icon(Icons.get(Icons.GOLD));
|
||||||
link.textColor(Window.TITLE_COLOR);
|
link.textColor(Window.TITLE_COLOR);
|
||||||
link.setSize(elementWidth, 20);
|
link.setSize(elementWidth, 20);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user