diff --git a/docs/Developers/Building-Locally.md b/docs/Developers/Building-Locally.md index f709e019d0..4b56d282fe 100644 --- a/docs/Developers/Building-Locally.md +++ b/docs/Developers/Building-Locally.md @@ -18,6 +18,7 @@ By the end of this guide, you will have Unciv running locally from code, so you - Click "SDK Platforms" - Click "Android 13 (Tiramisu)" ![image](/Unciv/assets/Android_SDK_Platforms.png) + (Optionally, you can save some space by selecting 'Show Package Details' and choosing the Platform SDK only, without Sources or system Images) - Click "SDK Tools" - Select "Show Package Details" in the bottom right - Choose version 33.0.2 under "Android SDK Build-Tools" @@ -28,7 +29,7 @@ By the end of this guide, you will have Unciv running locally from code, so you - Click "+" to add a new configuration - Choose "Application" - Give the configuration a name, we recommend "Desktop" - - Set the module classpath (the box to the right of the Java selection) to `Unciv.desktop.main` (`Unciv.desktop` for Bumblebee or below), main class to `com.unciv.app.desktop.DesktopLauncher` and `\android\assets\` as the Working directory, OK to close the window + - Set the module classpath (the box to the right of the Java selection) to `Unciv.desktop.main` (`Unciv.desktop` for Bumblebee or below), main class to `com.unciv.app.desktop.DesktopLauncher` and `$ProjectFileDir$/android/assets` as the Working directory, OK to close the window - It _may_ be useful to set some VM options - activate the field in the run config editor with Alt-V or via the Modify Options menu, then add `-Xmx4096m -Xms256m -XX:MaxMetaspaceSize=256m` to allow a debugged game a little more memory. Or, use the `-DnoLog=` or `-DonlyLog=` options to control console logging. See the [Log.kt](https://github.com/yairm210/Unciv/blob/master/core/src/com/unciv/utils/Log.kt) comments for details. - If you get a `../../docs/uniques.md (No such file or directory)` error that means you forgot to set the working directory! ![image](/Unciv/assets/Desktop_Build.png) diff --git a/docs/Developers/UI-development.md b/docs/Developers/UI-development.md index c96f66c0fc..967914e9ff 100644 --- a/docs/Developers/UI-development.md +++ b/docs/Developers/UI-development.md @@ -28,6 +28,10 @@ class DevElement( You can then simply run the `main` method of `FasterUIDevelopment` to show your UI element. +There's two ways to do so: +* Open this file in Android Studio under project:docs/Developers. That line above has a little green arrow in the left gutter that can be clicked. +* Create a Run Configuration similar to [the desktop one described here](./Building-Locally.md#with-android-studio), but with classpath `Unciv.tests.test` and main class `com.unciv.dev.FasterUIDevelopment`. + ![image](/Unciv/assets/FasterUIDevelopment.png) ## The 'Gdx Scene2D debug' option diff --git a/docs/assets/Desktop_Build.png b/docs/assets/Desktop_Build.png index af0dd74ac5..26500e7c8f 100644 Binary files a/docs/assets/Desktop_Build.png and b/docs/assets/Desktop_Build.png differ diff --git a/docs/assets/FasterUIDevelopment.png b/docs/assets/FasterUIDevelopment.png new file mode 100644 index 0000000000..68f00d1d86 Binary files /dev/null and b/docs/assets/FasterUIDevelopment.png differ