Changes

Line 84: Line 84:  
   public HUDMessage(string message, Color color, float timeLeft, bool fadeIn)
 
   public HUDMessage(string message, Color color, float timeLeft, bool fadeIn)
 
</source>
 
</source>
 +
    
So before we go over when you'd use them, I'm going to briefly note how the class HUDMessage uses these. (I encourage people to read the class if they have further questions, but I doubt most of us will need to know more than this)
 
So before we go over when you'd use them, I'm going to briefly note how the class HUDMessage uses these. (I encourage people to read the class if they have further questions, but I doubt most of us will need to know more than this)
 +
    
WhatType:
 
WhatType:
1 - Achievement
+
*1 - Achievement
2 - New Quest
+
*2 - New Quest
3 - Error
+
*3 - Error
4 - Stamina
+
*4 - Stamina
5 - Health
+
*5 - Health
 +
 
    
Color: Fairly obvious. It should be noted that while the first two don't give an option (they default to ''Color:OrangeRed''), the fourth with the param 'leaveMeNull' displays as the same color as the game text.
 
Color: Fairly obvious. It should be noted that while the first two don't give an option (they default to ''Color:OrangeRed''), the fourth with the param 'leaveMeNull' displays as the same color as the game text.
 +
    
For specifics:
 
For specifics:
'' public HUDMessage(string type, int number, bool add, Color color, Item messageSubject = null);'' - This allows for expanded customization of the message. More often used for money.
+
*'' public HUDMessage(string type, int number, bool add, Color color, Item messageSubject = null);'' - This allows for expanded customization of the message. More often used for money.
''  public HUDMessage(string message, string leaveMeNull)'' - Also displays no icon.
+
*''  public HUDMessage(string message, string leaveMeNull)'' - Also displays no icon.
''  public HUDMessage(string message, Color color, float timeLeft, bool fadeIn)'' - Displays a message that fades in for a set amount of time.
+
*''  public HUDMessage(string message, Color color, float timeLeft, bool fadeIn)'' - Displays a message that fades in for a set amount of time.
 +
 
    
Note: For those of you who want a custom HUDMessage:  
 
Note: For those of you who want a custom HUDMessage:  
Line 105: Line 110:       −
For example: add a new HUDMessage to show [insert image] banner.  
+
 
 +
For example: add a new HUDMessage to show [insert image] toaster popup.  
 
<source lang="c#">
 
<source lang="c#">
 
Game1.addHUDMessage(new HUDMessage("MESSAGE", 3));
 
Game1.addHUDMessage(new HUDMessage("MESSAGE", 3));
78

edits