-
Notifications
You must be signed in to change notification settings - Fork 0
/
TradeChat.cs
50 lines (39 loc) · 1.05 KB
/
TradeChat.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
public static class TradeChat
{
private static Color ORANGE = new Color(213, 168, 154);
private static Color GREEN = new Color(111, 206, 101);
public static void Chat(string message)
{
UIGameChat.AddCurrent(message, GREEN);
Log(message);
}
public static void Bad(string message)
{
UIGameChat.AddCurrent(message, ORANGE);
Log(message);
}
public static void Warn(string message)
{
UIGameChat.AddCurrent(message, Color.red);
Log(message);
}
public static void DebugQuest(string message)
{
UIGameChat.AddCurrent(message, Color.red);
Log(message);
}
public static void DebugTradeShip(string message)
{
UIGameChat.AddCurrent(message, Color.cyan);
Log(message);
}
public static void Log(string message)
{
UnityEngine.Debug.Log(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + ": " + message);
}
}