| 2705 | } |
| 2706 | |
| 2707 | void GuiController::DrawCurrentObjectList(ItemInfo* item, RingTypes ringType) |
| 2708 | { |
| 2709 | const auto& player = GetLaraInfo(*item); |
| 2710 | auto& ring = Rings[(int)ringType]; |
| 2711 | |
| 2712 | if (ring.CurrentObjectList <= 0) |
| 2713 | return; |
| 2714 | |
| 2715 | if (ringType == RingTypes::Ammo) |
| 2716 | { |
| 2717 | AmmoSelectorFadeVal = 0; |
| 2718 | AmmoSelectorFadeDir = 0; |
| 2719 | |
| 2720 | if (CombineRingFadeDir == 1) |
| 2721 | { |
| 2722 | if (CombineRingFadeVal < 128) |
| 2723 | CombineRingFadeVal += 32 / g_Renderer.GetFramerateMultiplier(); |
| 2724 | |
| 2725 | if (CombineRingFadeVal > 128) |
| 2726 | { |
| 2727 | CombineRingFadeVal = 128; |
| 2728 | CombineRingFadeDir = 0; |
| 2729 | } |
| 2730 | } |
| 2731 | else if (CombineRingFadeDir == 2) |
| 2732 | { |
| 2733 | CombineRingFadeVal -= 32 / g_Renderer.GetFramerateMultiplier(); |
| 2734 | |
| 2735 | if (CombineRingFadeVal <= 0) |
| 2736 | { |
| 2737 | CombineRingFadeVal = 0; |
| 2738 | CombineRingFadeDir = 0; |
| 2739 | |
| 2740 | if (CombineTypeFlag) |
| 2741 | { |
| 2742 | NormalRingFadeDir = 2; |
| 2743 | } |
| 2744 | else |
| 2745 | { |
| 2746 | Rings[(int)RingTypes::Inventory].RingActive = true; |
| 2747 | MenuActive = true; |
| 2748 | Rings[(int)RingTypes::Ammo].RingActive = false; |
| 2749 | HandleObjectChangeover((int)RingTypes::Inventory); |
| 2750 | } |
| 2751 | |
| 2752 | Rings[(int)RingTypes::Ammo].RingActive = false; |
| 2753 | } |
| 2754 | } |
| 2755 | } |
| 2756 | else if (NormalRingFadeDir == 1) |
| 2757 | { |
| 2758 | if (NormalRingFadeVal < 128) |
| 2759 | NormalRingFadeVal += 32 / g_Renderer.GetFramerateMultiplier(); |
| 2760 | |
| 2761 | if (NormalRingFadeVal > 128) |
| 2762 | { |
| 2763 | NormalRingFadeVal = 128; |
| 2764 | NormalRingFadeDir = 0; |
no test coverage detected