16
16
import net .modfest .scatteredshards .api .ShardLibrary ;
17
17
import net .modfest .scatteredshards .api .shard .Shard ;
18
18
import net .modfest .scatteredshards .api .shard .ShardType ;
19
- import net .modfest .scatteredshards .client .ScatteredShardsClient ;
20
19
import net .modfest .scatteredshards .client .screen .widget .WLeftRightPanel ;
21
20
import net .modfest .scatteredshards .client .screen .widget .WShardPanel ;
22
21
import net .modfest .scatteredshards .client .screen .widget .WShardSetPanel ;
@@ -58,7 +57,6 @@ public ShardTabletGuiDescription(ShardCollection collection, ShardLibrary librar
58
57
int panelHeight = selectorPanel .getHeight ();
59
58
60
59
WScaledLabel progressVisited = new WScaledLabel (() -> {
61
- if (!ScatteredShardsClient .hasShiftDown ()) return Text .empty ();
62
60
int visitedSets = 0 ;
63
61
for (Collection <Identifier > set : library .shardSets ().asMap ().values ()) {
64
62
for (Identifier identifier : set ) {
@@ -74,10 +72,7 @@ public ShardTabletGuiDescription(ShardCollection collection, ShardLibrary librar
74
72
progressVisited .setSize (80 , 10 );
75
73
progressVisited .setLocation (13 , panelHeight - 20 );
76
74
77
- WScaledLabel progressTotal = new WScaledLabel (() -> {
78
- if (!ScatteredShardsClient .hasShiftDown ()) return Text .empty ();
79
- return Text .translatable ("gui.scattered_shards.tablet.label.progress.total" , "%.0f%%" .formatted (100 * collection .size () / (float ) library .shards ().size ()));
80
- }, 1.0f ).setColor (Colors .LIGHT_GRAY );
75
+ WScaledLabel progressTotal = new WScaledLabel (() -> Text .translatable ("gui.scattered_shards.tablet.label.progress.total" , "%.0f%%" .formatted (100 * collection .size () / (float ) library .shards ().size ())), 1.0f ).setColor (Colors .LIGHT_GRAY );
81
76
selectorPanel .add (progressTotal , 0 , 0 );
82
77
progressTotal .setSize (80 , 10 );
83
78
progressTotal .setLocation (selectorPanel .getWidth () - 72 , panelHeight - 20 );
@@ -123,7 +118,7 @@ public void addPainters() {
123
118
124
119
public static class Screen extends CottonClientScreen {
125
120
public Screen (ShardCollection collection , ShardLibrary library ) {
126
- super (new ShardTabletGuiDescription (collection , library ));
121
+ super (Text . translatable ( "menu.scattered_shards.collection" ), new ShardTabletGuiDescription (collection , library ));
127
122
}
128
123
129
124
@ Override
0 commit comments