diff --git a/android/assets/jsons/Translations/Other.json b/android/assets/jsons/Translations/Other.json index f5394656aa..f2148bd11a 100644 --- a/android/assets/jsons/Translations/Other.json +++ b/android/assets/jsons/Translations/Other.json @@ -420,6 +420,8 @@ French:"Construire [improvement]" } + "Start Golden Age":{} + "Yes":{ Italian:"Sì" Russian:"Да" @@ -619,6 +621,8 @@ Japanese:"社会政策" } + "Community":{} + "Close":{ Italian:"Chiudi" diff --git a/android/assets/jsons/Translations/Units,Promotions.json b/android/assets/jsons/Translations/Units,Promotions.json index ccced2d59d..ebed5c969d 100644 --- a/android/assets/jsons/Translations/Units,Promotions.json +++ b/android/assets/jsons/Translations/Units,Promotions.json @@ -422,13 +422,13 @@ "Can construct roads":{ Italian:"Può costruire Strade" - Simplified_Chinese:"可以建造道路" + Simplified_Chinese:"可以建造道路" French:"Peut construire des routes" } "Construct road":{ // for unit action button Italian:"Costruisci Strada" - Simplified_Chinese:"建造道路" + Simplified_Chinese:"建造道路" French:"Construire une route" } diff --git a/android/src/com/unciv/app/AndroidLauncher.java b/android/src/com/unciv/app/AndroidLauncher.java index fc038fceaa..482b14592f 100644 --- a/android/src/com/unciv/app/AndroidLauncher.java +++ b/android/src/com/unciv/app/AndroidLauncher.java @@ -1,17 +1,24 @@ package com.unciv.app; +import android.content.Intent; import android.os.Bundle; import com.badlogic.gdx.backends.android.AndroidApplication; import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration; import com.unciv.UnCivGame; +import static android.content.Intent.ACTION_VIEW; + public class AndroidLauncher extends AndroidApplication { @Override protected void onCreate (Bundle savedInstanceState) { super.onCreate(savedInstanceState); AndroidApplicationConfiguration config = new AndroidApplicationConfiguration(); String version = BuildConfig.VERSION_NAME; + + + Intent openInActionView = new Intent(ACTION_VIEW); + initialize(new UnCivGame(version), config); } } diff --git a/core/src/com/unciv/ui/worldscreen/optionstable/WorldScreenMenuTable.kt b/core/src/com/unciv/ui/worldscreen/optionstable/WorldScreenMenuTable.kt index be8bb83a8d..a6b723b614 100644 --- a/core/src/com/unciv/ui/worldscreen/optionstable/WorldScreenMenuTable.kt +++ b/core/src/com/unciv/ui/worldscreen/optionstable/WorldScreenMenuTable.kt @@ -1,5 +1,6 @@ package com.unciv.ui.worldscreen.optionstable +import com.badlogic.gdx.Gdx import com.unciv.UnCivGame import com.unciv.models.gamebasics.tr import com.unciv.ui.CivilopediaScreen @@ -53,9 +54,31 @@ class WorldScreenMenuTable(val worldScreen: WorldScreen) : PopupTable(worldScree remove() } + addButton("Community"){ + WorldScreenCommunityTable(worldScreen) + remove() + } + addButton("Close".tr()){ remove() } open() } } +class WorldScreenCommunityTable(val worldScreen: WorldScreen) : PopupTable(worldScreen) { + init{ + addButton("Discord"){ + Gdx.net.openURI("https://discord.gg/bjrB4Xw") + remove() + } + + addButton("Github"){ + Gdx.net.openURI("https://github.com/yairm210/UnCiv") + remove() + } + + addButton("Close".tr()){ remove() } + + open() + } +}