mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Merge pull request #326 from Dormanil/feat/print-sestring
This commit is contained in:
commit
6006206541
1 changed files with 18 additions and 2 deletions
|
|
@ -303,21 +303,37 @@ namespace Dalamud.Game.Internal.Gui {
|
|||
}
|
||||
|
||||
public void Print(string message) {
|
||||
Log.Verbose("[CHATGUI PRINT]{0}", message);
|
||||
Log.Verbose("[CHATGUI PRINT REGULAR]{0}", message);
|
||||
PrintChat(new XivChatEntry {
|
||||
MessageBytes = Encoding.UTF8.GetBytes(message),
|
||||
Type = this.dalamud.Configuration.GeneralChatType
|
||||
});
|
||||
}
|
||||
|
||||
public void Print(SeString message) {
|
||||
Log.Verbose("[CHATGUI PRINT SESTRING]{0}", message.TextValue);
|
||||
PrintChat(new XivChatEntry {
|
||||
MessageBytes = message.Encode(),
|
||||
Type = this.dalamud.Configuration.GeneralChatType
|
||||
});
|
||||
}
|
||||
|
||||
public void PrintError(string message) {
|
||||
Log.Verbose("[CHATGUI PRINT ERROR]{0}", message);
|
||||
Log.Verbose("[CHATGUI PRINT REGULAR ERROR]{0}", message);
|
||||
PrintChat(new XivChatEntry {
|
||||
MessageBytes = Encoding.UTF8.GetBytes(message),
|
||||
Type = XivChatType.Urgent
|
||||
});
|
||||
}
|
||||
|
||||
public void PrintError(SeString message) {
|
||||
Log.Verbose("[CHATGUI PRINT SESTRING ERROR]{0}", message.TextValue);
|
||||
PrintChat(new XivChatEntry {
|
||||
MessageBytes = message.Encode(),
|
||||
Type = XivChatType.Urgent
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Process a chat queue.
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue