Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ OnActivate() [1/2]

override void Terraria.Graphics.Effects.OverlayManager.OnActivate ( Overlay overlay,
Vector2 position )
inline

Definition at line 24 of file OverlayManager.cs.

25 {
27 if (overlay.Mode == OverlayMode.FadeIn || overlay.Mode == OverlayMode.Active)
28 {
29 return;
30 }
31 if (overlay.Mode == OverlayMode.FadeOut)
32 {
35 }
36 else
37 {
38 overlay.Opacity = 0f;
39 }
40 if (linkedList.Count != 0)
41 {
42 foreach (Overlay item in linkedList)
43 {
44 item.Mode = OverlayMode.FadeOut;
45 }
46 }
47 linkedList.AddLast(overlay);
49 }
bool ICollection< KeyValuePair< TKey, TValue > >. Remove(KeyValuePair< TKey, TValue > keyValuePair)

References Terraria.Graphics.Effects.OverlayManager._activeOverlays, Terraria.Graphics.Effects.OverlayManager._overlayCount, System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.item, and System.Collections.Generic.Dictionary< TKey, TValue >.Remove().