488 {
489 if (!item.CanDisplayWeight())
490 {
492 return;
493 }
494
496 if( item_IB )
497 {
498 int weight = item_IB.GetWeightEx();
499
500 if (root_widget.GetName() != "BackPanelWidget")
501 {
502 weight = item_IB.GetSingleInventoryItemWeightEx();
503 }
504
505 if (weight >= 1000)
506 {
507 int kilos = Math.Round(weight / 1000.0);
508 WidgetTrySetText(root_widget,
"ItemWeightWidget",
"#inv_inspect_about" +
" " + kilos.ToString() +
" " +
"#inv_inspect_kg",
Colors.COLOR_DEFAULT);
509 }
510 else if (weight >= 500)
511 {
513 }
514 else if (weight >= 250)
515 {
517 }
518 else
519 {
521 }
522 }
523 }
class GP5GasMask extends MaskBase ItemBase