mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-30 15:30:43 -04:00
Deprecated notification color
This commit is contained in:
parent
e8bbd4bc70
commit
b2691eed70
@ -290,18 +290,6 @@ class GameInfo {
|
||||
|
||||
difficultyObject = ruleSet.difficulties[difficulty]!!
|
||||
|
||||
// We have to remove all deprecated buildings from all cities BEFORE we update a single one, or run setTransients on the civs,
|
||||
// because updating leads to getting the building uniques from the civ info,
|
||||
// which in turn leads to us trying to get info on all the building in all the cities...
|
||||
// which can fail if there's an "unregistered" building anywhere
|
||||
for (civInfo in civilizations) {
|
||||
// As of 3.3.7, Facism -> Fascism
|
||||
if (civInfo.policies.adoptedPolicies.contains("Facism")) {
|
||||
civInfo.policies.adoptedPolicies.remove("Facism")
|
||||
civInfo.policies.adoptedPolicies.add("Fascism")
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
// This doesn't HAVE to go here, but why not.
|
||||
|
@ -27,8 +27,6 @@ open class Notification() {
|
||||
|
||||
var text: String = ""
|
||||
|
||||
@Deprecated("As of 3.13.10 - replaced with icons")
|
||||
var color: Color? = null
|
||||
var icons: ArrayList<String> = ArrayList() // Must be ArrayList and not List so it can be deserialized
|
||||
var action: NotificationAction? = null
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
package com.unciv.ui.worldscreen
|
||||
|
||||
import com.unciv.ui.utils.AutoScrollPane as ScrollPane
|
||||
import com.badlogic.gdx.graphics.Color
|
||||
import com.badlogic.gdx.scenes.scene2d.Actor
|
||||
import com.badlogic.gdx.scenes.scene2d.Touchable
|
||||
@ -10,6 +9,7 @@ import com.unciv.ui.utils.ImageGetter
|
||||
import com.unciv.ui.utils.onClick
|
||||
import com.unciv.ui.utils.toLabel
|
||||
import kotlin.math.min
|
||||
import com.unciv.ui.utils.AutoScrollPane as ScrollPane
|
||||
|
||||
class NotificationsScroll(internal val worldScreen: WorldScreen) : ScrollPane(null) {
|
||||
|
||||
@ -48,8 +48,6 @@ class NotificationsScroll(internal val worldScreen: WorldScreen) : ScrollPane(nu
|
||||
listItem.add(image).size(iconSize).padRight(5f)
|
||||
}
|
||||
}
|
||||
else if(notification.color!=null) listItem.add(ImageGetter.getCircle()
|
||||
.apply { color = notification.color }).size(iconSize).padRight(5f)
|
||||
listItem.background = ImageGetter.getRoundedEdgeTableBackground()
|
||||
listItem.add(label)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user