Class UIForegroundPayload
An SeString Payload representing a UI foreground color applied to following text payloads.
Assembly: Dalamud.dll
View Source
public class UIForegroundPayload : Payload
Inheritance: System.Object
-> Dalamud.Game.Text.SeStringHandling.Payload
Properties
UIForegroundOff
Gets a payload representing disabling foreground color on following text.
View Source
public static UIForegroundPayload UIForegroundOff { get; }
Type
Gets the type of this payload.
View Source
public override PayloadType Type { get; }
IsEnabled
Gets a value indicating whether or not this payload represents applying a foreground color, or disabling one.
View Source
public bool IsEnabled { get; }
UIColor
Gets a Lumina UIColor object representing this payload. The actual color data is at UIColor.UIForeground.
View Source
[JsonIgnore]
public UIColor UIColor { get; }
ColorKey
Gets or sets the color key used as a lookup in the UIColor table for this foreground color.
View Source
[JsonIgnore]
public ushort ColorKey { get; set; }
RGBA
Gets the Red/Green/Blue/Alpha values for this foreground color, encoded as a typical hex color.
View Source
[JsonIgnore]
public uint RGBA { get; }
ABGR
Gets the ABGR value for this foreground color, as ImGui requires it in PushColor.
View Source
[JsonIgnore]
public uint ABGR { get; }
Methods
ToString()
Returns a string that represents the current object.
View Source
public override string ToString()
Returns
System.String
: A string that represents the current object.### EncodeImpl()
Encodes the internal state of this payload into a byte[] suitable for sending to in-game
handlers such as the chat log.
View Source
protected override byte[] EncodeImpl()
Returns
System.Byte[]
: Encoded binary payload data suitable for use with in-game handlers.### DecodeImpl(BinaryReader, long)
Decodes a byte stream from the game into a payload object.
View Source
protected override void DecodeImpl(BinaryReader reader, long endOfStream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.BinaryReader | reader | A BinaryReader containing at least all the data for this payload. |
System.Int64 | endOfStream | The location holding the end of the data for this payload. |