MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / DrawCurrentObjectList

Method DrawCurrentObjectList

TombEngine/Game/gui.cpp:2707–3159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers 1

RenderNewInventoryMethod · 0.80

Calls 12

sprintfFunction · 0.85
ANGLEFunction · 0.85
IsHeldFunction · 0.85
SoundEffectFunction · 0.85
GetStringMethod · 0.80
AddStringMethod · 0.80
GetSettingsMethod · 0.80
DrawObjectIn2DSpaceMethod · 0.80
Vector2Function · 0.50
GetCountMethod · 0.45

Tested by

no test coverage detected