mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-24 03:53:12 -04:00
make some values private
This commit is contained in:
parent
65716d6db9
commit
63755fd8db
@ -20,16 +20,16 @@ private val smallButtonStyle = SmallButtonStyle()
|
|||||||
class ChatButton(val worldScreen: WorldScreen) : IconTextButton(
|
class ChatButton(val worldScreen: WorldScreen) : IconTextButton(
|
||||||
"Chat", ImageGetter.getImage("OtherIcons/Chat"), 23
|
"Chat", ImageGetter.getImage("OtherIcons/Chat"), 23
|
||||||
) {
|
) {
|
||||||
val chat = ChatStore.getChatByGameId(worldScreen.gameInfo.gameId)
|
private val chat = ChatStore.getChatByGameId(worldScreen.gameInfo.gameId)
|
||||||
|
|
||||||
val badge = "".toTextButton(smallButtonStyle).apply {
|
private val badge = "".toTextButton(smallButtonStyle).apply {
|
||||||
disable()
|
disable()
|
||||||
label.setColor(Color.WHITE)
|
label.setColor(Color.WHITE)
|
||||||
label.setAlignment(Align.center)
|
label.setAlignment(Align.center)
|
||||||
label.setFontScale(0.2f)
|
label.setFontScale(0.2f)
|
||||||
}
|
}
|
||||||
|
|
||||||
val flash = AlternatingStateManager(
|
private val flash = AlternatingStateManager(
|
||||||
name = "ChatButton color flash",
|
name = "ChatButton color flash",
|
||||||
originalState = {
|
originalState = {
|
||||||
icon?.color = fontColor
|
icon?.color = fontColor
|
||||||
|
Loading…
x
Reference in New Issue
Block a user