Skip to content

Commit

Permalink
v2.0.0.5 - Fixed default emitter and hologram color/alpha as 0
Browse files Browse the repository at this point in the history
  • Loading branch information
hamstar0 committed Jun 20, 2020
1 parent 3b85ab1 commit 5c63335
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Emitters/Definitions/EmitterDefinition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ public partial class EmitterDefinition : BaseEmitterDefinition {

public bool IsGoreMode { get; set; }
public int Type { get; set; }
public float Scale { get; set; }
public float Scale { get; set; } = 1f;
public int Delay { get; set; }
public float SpeedX { get; set; }
public float SpeedY { get; set; }
public Color Color { get; set; }
public Color Color { get; set; } = Color.White;
public byte Transparency { get; set; }
public float Scatter { get; set; }
public bool HasGravity { get; set; }
Expand Down
13 changes: 8 additions & 5 deletions Emitters/Definitions/HologramDefinition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ public static int GetFrameCount( HologramMode mode, int type ) {

public int Type { get; set; }

public float Scale { get; set; }
public float Scale { get; set; } = 1f;

public Color Color { get; set; }
public Color Color { get; set; } = Color.White;

public byte Alpha { get; set; }
public byte Alpha { get; set; } = 255;

public int Direction { get; set; }
public int Direction { get; set; } = 1;

public float Rotation { get; set; }

Expand Down Expand Up @@ -126,7 +126,10 @@ public bool CrtEffect {

////////////////

public HologramDefinition() { }
public HologramDefinition() {
this.Color = Color.White;
this.Alpha = 255;
}

public HologramDefinition( HologramDefinition copy ) {
this.Mode = copy.Mode;
Expand Down
2 changes: 1 addition & 1 deletion Emitters/build.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
displayName = Emitters
author = hamstar
version = 2.0.0.4
version = 2.0.0.5
modReferences = [email protected]
buildIgnore = *.csproj, *.user, *.bat, obj\*, bin\*, .vs\*, .git\*
homepage = https://forums.terraria.org/index.php?threads/emitters.87584/

0 comments on commit 5c63335

Please sign in to comment.