Skip to content

Commit

Permalink
Fixed database dialog fade
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuken committed Sep 20, 2024
1 parent 0c540f9 commit f00b799
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/assets/bundles/bundle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
7 changes: 6 additions & 1 deletion core/src/mindustry/ui/dialogs/ContentInfoDialog.java
Original file line number Diff line number Diff line change
@@ -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.*;
Expand Down Expand Up @@ -98,7 +99,11 @@ public void show(UnlockableContent content){
ScrollPane pane = new ScrollPane(table);
cont.add(pane);

show();
if(isShown()){
show(scene, Actions.fadeIn(0f));
}else{
show();
}
}

}

0 comments on commit f00b799

Please sign in to comment.