Removed donations library and Android support libraries
This commit is contained in:
@@ -36,6 +36,8 @@ public class Vars{
|
||||
public static final Charset charset = Charset.forName("UTF-8");
|
||||
/**main application name, capitalized*/
|
||||
public static final String appName = "Mindustry";
|
||||
/**URL for itch.io donations.*/
|
||||
public static final String donationURL = "https://anuke.itch.io/mindustry/purchase";
|
||||
/**URL for discord invite.*/
|
||||
public static final String discordURL = "https://discord.gg/mindustry";
|
||||
/**URL for Github API for releases*/
|
||||
|
||||
@@ -38,7 +38,9 @@ public abstract class Platform {
|
||||
/**Update discord RPC.*/
|
||||
public void updateRPC(){}
|
||||
/**Open donation dialog. Currently android only.*/
|
||||
public void openDonations(){}
|
||||
public void openDonations(){
|
||||
|
||||
}
|
||||
/**Whether donating is supported.*/
|
||||
public boolean canDonate(){
|
||||
return false;
|
||||
|
||||
@@ -63,7 +63,7 @@ public class MenuFragment extends Fragment{
|
||||
join = new MobileButton("icon-add", isize, "$joingame", ui.join::show),
|
||||
editor = new MobileButton("icon-editor", isize, "$editor", () -> ui.loadAnd(ui.editor::show)),
|
||||
tools = new MobileButton("icon-tools", isize, "$settings", ui.settings::show),
|
||||
donate = new MobileButton("icon-donate", isize, "$donate", Platform.instance::openDonations);
|
||||
donate = new MobileButton("icon-donate", isize, "$donate", () -> Core.net.openURI(donationURL));
|
||||
|
||||
if(Core.graphics.getWidth() > Core.graphics.getHeight()){
|
||||
container.add(play);
|
||||
|
||||
Reference in New Issue
Block a user