feat: use error toast for error
This commit is contained in:
parent
fda184cf7b
commit
20cc798f84
|
@ -545,14 +545,11 @@ namespace PeepingTom {
|
||||||
if (actor != null) {
|
if (actor != null) {
|
||||||
this.Plugin.GameFunctions.OpenExamineWindow(actor);
|
this.Plugin.GameFunctions.OpenExamineWindow(actor);
|
||||||
} else {
|
} else {
|
||||||
Payload[] payloads = {
|
var error = new SeString(new Payload[] {
|
||||||
new TextPayload($"[{this.Plugin.Name}] "),
|
|
||||||
new PlayerPayload(this.Plugin.Interface.Data, targeter.Name, targeter.HomeWorld.Id),
|
new PlayerPayload(this.Plugin.Interface.Data, targeter.Name, targeter.HomeWorld.Id),
|
||||||
new TextPayload(" is not close enough to examine."),
|
new TextPayload(" is not close enough to examine."),
|
||||||
};
|
|
||||||
this.Plugin.Interface.Framework.Gui.Chat.PrintChat(new XivChatEntry {
|
|
||||||
MessageBytes = new SeString(payloads).Encode(),
|
|
||||||
});
|
});
|
||||||
|
this.Plugin.Interface.Framework.Gui.Toast.ShowError(error);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
var payload = new PlayerPayload(this.Plugin.Interface.Data, targeter.Name, targeter.HomeWorld.Id);
|
var payload = new PlayerPayload(this.Plugin.Interface.Data, targeter.Name, targeter.HomeWorld.Id);
|
||||||
|
|
Loading…
Reference in New Issue