|
@@ -1,4 +1,5 @@
|
|
|
-using System.Collections;
|
|
|
+using System;
|
|
|
+using System.Collections;
|
|
|
using System.Collections.Generic;
|
|
|
using UnityEngine;
|
|
|
|
|
@@ -39,13 +40,26 @@ namespace KairoEngine.Core
|
|
|
}
|
|
|
#endregion
|
|
|
|
|
|
+ #region FullMessage
|
|
|
+ public static event System.Action<string, string, string, string, Sprite, float, bool, bool, Action, string, string, string> OnFullMessage;
|
|
|
+ public static void Send(string text, string id, string group, string prefab, Sprite icon, float time, bool sticky, bool hideOnClick,
|
|
|
+ Action action, string tooltipHeader = "", string tooltipBody = "", string tooltipType = "")
|
|
|
+ {
|
|
|
+ if(OnFullMessage != null)
|
|
|
+ {
|
|
|
+ OnFullMessage(text, id, group, prefab, icon, time, sticky, hideOnClick, action, tooltipHeader, tooltipBody, tooltipType);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ #endregion
|
|
|
+
|
|
|
#region UpdateMessage
|
|
|
- public static event System.Action<string, string, float, bool> OnUpdateActivityMessage;
|
|
|
- public static void Update(string oldText, string newText, float time, bool sticky)
|
|
|
+ public static event System.Action<string, string, Sprite, float, bool, bool, Action, string, string, string> OnUpdateActivityMessage;
|
|
|
+ public static void Update(string id, string newText, Sprite newIcon, float newTime, bool sticky, bool hideOnClick,
|
|
|
+ Action newAction, string tooltipHeader = "", string tooltipBody = "", string tooltipType = "")
|
|
|
{
|
|
|
if(OnUpdateActivityMessage != null)
|
|
|
{
|
|
|
- OnUpdateActivityMessage(oldText, newText, time, sticky);
|
|
|
+ OnUpdateActivityMessage(id, newText, newIcon, newTime, sticky, hideOnClick, newAction, tooltipHeader, tooltipBody, tooltipType);
|
|
|
}
|
|
|
}
|
|
|
#endregion
|