File tree Expand file tree Collapse file tree 4 files changed +7
-1
lines changed
java/cam72cam/immersiverailroading
resources/assets/immersiverailroading/lang Expand file tree Collapse file tree 4 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ public enum GuiText {
59
59
RADIO_CARD_NOT_LINKED ("item.radio_card.not_linked" ),
60
60
MODELER_TOOLTIP ("stock.modeler" ),
61
61
PACK_TOOLTIP ("stock.pack" ),
62
+ TAG_TOOLTIP ("stock.tag" ),
62
63
TRACK_SWITCHER_TOOLTIP ("item.track_exchanger" ),
63
64
PAINT_BRUSH_MODE_TOOLTIP ("item.paint_brush.mode" ),
64
65
PAINT_BRUSH_DESCRIPTION_TOOLTIP ("item.paint_brush.description" ),
Original file line number Diff line number Diff line change @@ -212,6 +212,7 @@ private static void initModels() throws IOException {
212
212
213
213
Progress .Bar bar = Progress .push ("Loading Models" , definitionIDMap .size ());
214
214
215
+ stockTags = new BiMultiMap <>();
215
216
Map <String , EntityRollingStockDefinition > loaded = getStockLoadingStream (definitionIDMap .entrySet ()).map (tuple -> {
216
217
String defID = tuple .getKey ();
217
218
String defType = tuple .getValue ();
@@ -258,7 +259,6 @@ private static void initModels() throws IOException {
258
259
}).filter (Objects ::nonNull ).collect (Collectors .toMap (Pair ::getKey , Pair ::getValue ));
259
260
260
261
definitions = new LinkedHashMap <>();
261
- stockTags = new BiMultiMap <>();
262
262
definitionIDMap .keySet ().stream ().filter (loaded ::containsKey ).forEach (x -> definitions .put (x , loaded .get (x )));
263
263
264
264
Progress .pop (bar );
Original file line number Diff line number Diff line change @@ -821,6 +821,10 @@ public List<String> getTooltip(Gauge gauge) {
821
821
tips .add (GuiText .WEIGHT_TOOLTIP .toString (this .getWeight (gauge )));
822
822
tips .add (GuiText .MODELER_TOOLTIP .toString (modelerName ));
823
823
tips .add (GuiText .PACK_TOOLTIP .toString (packName ));
824
+ if (!tags .isEmpty ()) {
825
+ String tag = String .join ("," , tags );
826
+ tips .add (GuiText .TAG_TOOLTIP .toString (tag ));
827
+ }
824
828
return tips ;
825
829
}
826
830
Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ gui.immersiverailroading:stock.freight_capacity=Capacity: %s Stacks
127
127
gui.immersiverailroading:stock.weight=Weight: %s Kg
128
128
gui.immersiverailroading:stock.modeler=Modeler: %s
129
129
gui.immersiverailroading:stock.pack=Pack: %s
130
+ gui.immersiverailroading:stock.tag=Tags: %s
130
131
131
132
gui.immersiverailroading:overlay.on=On
132
133
gui.immersiverailroading:overlay.off=Off
You can’t perform that action at this time.
0 commit comments