mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-18 22:07:44 +01:00
fix: Lumina updates
This commit is contained in:
parent
12ce09870f
commit
67561af32f
10 changed files with 30 additions and 30 deletions
|
|
@ -193,7 +193,7 @@ internal class SheetRedirectResolver : IServiceType
|
|||
colIndex = 43;
|
||||
|
||||
if (this.dataManager.GetExcelSheet<LSheets.InstanceContent>().TryGetRow(rowId, out var row))
|
||||
rowId = row.Order;
|
||||
rowId = row.SortKey;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1595,7 +1595,7 @@ internal class SeStringEvaluator : IServiceType, ISeStringEvaluator
|
|||
if (eColorTypeVal == 0)
|
||||
context.Builder.PopColor();
|
||||
else if (this.dataManager.GetExcelSheet<UIColor>().TryGetRow(eColorTypeVal, out var row))
|
||||
context.Builder.PushColorBgra((row.UIForeground >> 8) | (row.UIForeground << 24));
|
||||
context.Builder.PushColorBgra((row.Light >> 8) | (row.Light << 24));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
@ -1609,7 +1609,7 @@ internal class SeStringEvaluator : IServiceType, ISeStringEvaluator
|
|||
if (eColorTypeVal == 0)
|
||||
context.Builder.PopEdgeColor();
|
||||
else if (this.dataManager.GetExcelSheet<UIColor>().TryGetRow(eColorTypeVal, out var row))
|
||||
context.Builder.PushEdgeColorBgra((row.UIForeground >> 8) | (row.UIForeground << 24));
|
||||
context.Builder.PushEdgeColorBgra((row.Light >> 8) | (row.Light << 24));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -201,7 +201,7 @@ public abstract partial class Payload
|
|||
case SeStringChunkType.Icon:
|
||||
payload = new IconPayload();
|
||||
break;
|
||||
|
||||
|
||||
default:
|
||||
// Log.Verbose("Unhandled SeStringChunkType: {0}", chunkType);
|
||||
break;
|
||||
|
|
@ -306,7 +306,7 @@ public abstract partial class Payload
|
|||
/// See the <see cref="NewLinePayload"/>.
|
||||
/// </summary>
|
||||
NewLine = 0x10,
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// See the <see cref="IconPayload"/> class.
|
||||
/// </summary>
|
||||
|
|
|
|||
|
|
@ -74,13 +74,13 @@ public class UIForegroundPayload : Payload
|
|||
/// Gets the Red/Green/Blue/Alpha values for this foreground color, encoded as a typical hex color.
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
public uint RGBA => this.UIColor.Value.UIForeground;
|
||||
public uint RGBA => this.UIColor.Value.Dark;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the ABGR value for this foreground color, as ImGui requires it in PushColor.
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
public uint ABGR => Interface.ColorHelpers.SwapEndianness(this.UIColor.Value.UIForeground);
|
||||
public uint ABGR => Interface.ColorHelpers.SwapEndianness(this.UIColor.Value.Dark);
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override string ToString()
|
||||
|
|
|
|||
|
|
@ -71,13 +71,13 @@ public class UIGlowPayload : Payload
|
|||
/// Gets the Red/Green/Blue/Alpha values for this glow color, encoded as a typical hex color.
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
public uint RGBA => this.UIColor.Value.UIGlow;
|
||||
public uint RGBA => this.UIColor.Value.Light;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the ABGR value for this glow color, as ImGui requires it in PushColor.
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
public uint ABGR => Interface.ColorHelpers.SwapEndianness(this.UIColor.Value.UIGlow);
|
||||
public uint ABGR => Interface.ColorHelpers.SwapEndianness(this.UIColor.Value.Light);
|
||||
|
||||
/// <summary>
|
||||
/// Gets a Lumina UIColor object representing this payload. The actual color data is at UIColor.UIGlow.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue