From f00b79906b2aade57c13ba9e570fc977be1c889d Mon Sep 17 00:00:00 2001 From: Anuken Date: Fri, 20 Sep 2024 14:09:39 -0400 Subject: [PATCH] Fixed database dialog fade --- core/assets/bundles/bundle.properties | 2 +- core/src/mindustry/ui/dialogs/ContentInfoDialog.java | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/core/assets/bundles/bundle.properties b/core/assets/bundles/bundle.properties index 0f88f8d18d..89eef6fee8 100644 --- a/core/assets/bundles/bundle.properties +++ b/core/assets/bundles/bundle.properties @@ -2022,7 +2022,7 @@ split.container = Similar to the container, units can also be transported using item.copper.description = Used in all types of construction and ammunition. item.copper.details = Copper. Abnormally abundant metal on Serpulo. Structurally weak unless reinforced. item.lead.description = Used in liquid transportation and electrical structures. -item.lead.details = Dense. Inert. Extensively used in batteries.\nNote: Likely toxic to biological life forms. Not that there are many left here. +item.lead.details = Dense. Inert. Extensively used in batteries.\nNote: Likely toxic to biological life forms; not that there are many left here. item.metaglass.description = Used in liquid distribution/storage structures. item.graphite.description = Used in electrical components and turret ammunition. item.sand.description = Used for production of other refined materials. diff --git a/core/src/mindustry/ui/dialogs/ContentInfoDialog.java b/core/src/mindustry/ui/dialogs/ContentInfoDialog.java index 8defe26a24..701ea7a21c 100644 --- a/core/src/mindustry/ui/dialogs/ContentInfoDialog.java +++ b/core/src/mindustry/ui/dialogs/ContentInfoDialog.java @@ -1,6 +1,7 @@ package mindustry.ui.dialogs; import arc.*; +import arc.scene.actions.*; import arc.scene.ui.*; import arc.scene.ui.layout.*; import arc.struct.*; @@ -98,7 +99,11 @@ public class ContentInfoDialog extends BaseDialog{ ScrollPane pane = new ScrollPane(table); cont.add(pane); - show(); + if(isShown()){ + show(scene, Actions.fadeIn(0f)); + }else{ + show(); + } } }