1043 {
1045
1046 if (enabled)
1047 {
1048 ImageWidget healthMark;
1049 Class.CastTo(healthMark, widget.FindAnyWidget(healthWidget));
1050
1051 if (health == -1)
1052 {
1053 healthMark.GetParent().Show(false);
1054 widget.Show(enabled);
1055 return;
1056 }
1057
1058 int color = 0x00FFFFFF;
1060 color =
Colors.COLOR_FROZEN;
1061 else
1062 color = ItemManager.GetItemHealthColor(health);
1063
1064 healthMark.SetColor(color);
1065 healthMark.SetAlpha(0.5);
1066 healthMark.GetParent().Show(true);
1067 }
1068
1069 widget.Show(enabled);