generated from karashiiro/DalamudPluginProjectTemplate
-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
UiActionTooltipHandler.cs
34 lines (28 loc) · 1.28 KB
/
UiActionTooltipHandler.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
// <copyright file="UiTooltipHandlers.cs" company="lokinmodar">
// Copyright (c) lokinmodar. All rights reserved.
// Licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International Public License license.
// </copyright>
namespace Echoglossian
{
public partial class Echoglossian
{
/*private void TooltipsOnActionTooltip(ActionTooltip actionTooltip, HoveredAction action)
{
Dalamud.Game.Text.SeStringHandling.SeString tooltipDescription = actionTooltip[ActionTooltipString.Description];
#if DEBUG
Dalamud.Game.Text.SeStringHandling.Payload[] list = tooltipDescription.Payloads.ToArray();
Dalamud.Game.Text.SeStringHandling.Payload payload = list[0];
System.Collections.Generic.IEnumerable<Dalamud.Game.Text.SeStringHandling.Payload> lines = tooltipDescription.Payloads.Where(p => p != NewLinePayload.Payload);
foreach (Dalamud.Game.Text.SeStringHandling.Payload line in lines)
{
PluginLog.Debug(line.ToString() ?? string.Empty);
}
string payloadText = payload.ToString();
string desc = tooltipDescription.TextValue;
Task<string> status = this.TranslateAsync(desc);
PluginLog.Debug($"Tooltip desc: {desc}");
PluginLog.Debug($"Tooltip trans: {status.Result}");
#endif
}*/
}
}