Skip to content

Commit

Permalink
Non-continuous rendering isn't quite ready yet
Browse files Browse the repository at this point in the history
  • Loading branch information
yairm210 committed Jan 6, 2020
1 parent 3851440 commit 365dced
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ android {
applicationId "com.unciv.app"
minSdkVersion 14
targetSdkVersion 29
versionCode 358
versionName "3.4.8"
versionCode 359
versionName "3.4.8-patch1"

archivesBaseName = "Unciv"
}
Expand Down
2 changes: 0 additions & 2 deletions core/src/com/unciv/UncivGame.kt
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ class UncivGame(
val translations = Translations()

override fun create() {
// This is for battery saving, we don't have any animation which means we don't need to update the screen every ms
Gdx.graphics.setContinuousRendering(false)
Gdx.input.setCatchKey(Input.Keys.BACK, true)
if (Gdx.app.type != Application.ApplicationType.Desktop) {
viewEntireMapForDebug = false
Expand Down
4 changes: 2 additions & 2 deletions core/src/com/unciv/ui/utils/UnitGroup.kt
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ class UnitGroup(val unit: MapUnit, val size: Float): Group() {
spinningCircle.center(this)
spinningCircle.x += whiteHaloSize / 2 // to edge of white halo
spinningCircle.setOrigin(spinningCircle.width / 2 - whiteHaloSize / 2, spinningCircle.height / 2)
//addActor(spinningCircle)
//spinningCircle.addAction(Actions.repeat(RepeatAction.FOREVER, Actions.rotateBy(90f, 1f)))
addActor(spinningCircle)
spinningCircle.addAction(Actions.repeat(RepeatAction.FOREVER, Actions.rotateBy(90f, 1f)))
blackSpinningCircle = spinningCircle
}
}

0 comments on commit 365dced

Please sign in to comment.