1007 {
1009
1010 if (enabled)
1011 {
1012 ImageWidget healthMark;
1013 Class.CastTo(healthMark, widget.FindAnyWidget(healthWidget));
1014
1015 if (health == -1)
1016 {
1017 healthMark.GetParent().Show(false);
1018 widget.Show(enabled);
1019 return;
1020 }
1021
1022 int color = 0x00FFFFFF;
1024 color =
Colors.COLOR_FROZEN;
1025 else
1026 color = ItemManager.GetItemHealthColor(health);
1027
1028 healthMark.SetColor(color);
1029 healthMark.SetAlpha(0.5);
1030 healthMark.GetParent().Show(true);
1031 }
1032
1033 widget.Show(enabled);
1034 }