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