This commit is contained in:
Yair Morgenstern 2023-04-17 09:36:45 +03:00
parent 699a6bf12a
commit 844b0a15d1
3 changed files with 16 additions and 8 deletions

View File

@ -1,12 +1,16 @@
## 4.6.3
Hopefully solved RAM-related crashes
Removed more double icons from many places
Aircraft attack/move range colors entire tile
By WhoIsJohannes:
- Show garrison in city screen, so that it's easier to decide whether one should produce a military unit.
- Great people automation
- Order defeated civs after alive civs even if the alive civs score is negative (e.g. for happiness)
- Fix golden age length action text
- Show garrison in city screen
- Great people automation
- Order defeated civs after alive civs even if the alive civs score is negative (e.g. for happiness)
- Fix golden age length action text
Notifications can be "selected" - By SomeTroglodyte

View File

@ -295,8 +295,12 @@ object Fonts {
Gdx.gl.glReadPixels(0, 0, w, h, GL20.GL_RGBA, GL20.GL_UNSIGNED_BYTE, pixmap.pixels)
frameBuffer.end()
spriteBatch.dispose()
frameBuffer.dispose()
// These need to be disposed so they don't clog up the RAM *but not right now*
Gdx.app.postRunnable {
spriteBatch.dispose()
frameBuffer.dispose()
}
// Pixmap is now *upside down* so we need to flip it around the y axis
for (i in 0..w)

View File

@ -123,7 +123,7 @@ class DetailedStatsPopup(
if (onlyWithStat != null && finalStats[onlyWithStat!!] == 0f)
continue
val label = source.toLabel().apply {
val label = source.toLabel(hideIcons = true).apply {
setAlignment(Align.left)
onClick {
sourceHighlighted = if (sourceHighlighted == source) null else source
@ -224,7 +224,7 @@ class DetailedStatsPopup(
continue
}
val label = text.toLabel().apply {
val label = text.toLabel(hideIcons = true).apply {
setAlignment(Align.left)
onClick {
sourceHighlighted = if (sourceHighlighted == text) null else text