Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
UIParticleLayer.cs
Go to the documentation of this file.
4using Terraria.UI;
5
7
9{
11
13
15
17 {
20 base.OnUpdate += ParticleSystemUpdate;
21 }
22
23 private void ParticleSystemUpdate(UIElement affectedElement)
24 {
26 }
27
28 public override void Recalculate()
29 {
30 base.Recalculate();
32 ParticleSystem.Settings.AnchorPosition = r.TopLeft() + AnchorPositionOffsetByPercents * r.Size() + AnchorPositionOffsetByPixels;
33 }
34
35 protected override void DrawSelf(SpriteBatch spriteBatch)
36 {
37 ParticleSystem.Draw(spriteBatch);
38 }
39
40 public void AddParticle(IParticle particle)
41 {
42 ParticleSystem.Add(particle);
43 }
44
45 public void ClearParticles()
46 {
48 }
49}
override void DrawSelf(SpriteBatch spriteBatch)
void ParticleSystemUpdate(UIElement affectedElement)
CalculatedStyle GetDimensions()
Definition UIElement.cs:382