-
Notifications
You must be signed in to change notification settings - Fork 282
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7369878
commit 6750eac
Showing
20 changed files
with
304 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
173 changes: 92 additions & 81 deletions
173
...ImGuiSeStringRenderer/SeStringRenderer.cs → ...ringRenderer/Internal/SeStringRenderer.cs
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...tProcessing/UnicodeEastAsianWidthClass.cs → ...tProcessing/UnicodeEastAsianWidthClass.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...er/TextProcessing/UnicodeEmojiProperty.cs → ...al/TextProcessing/UnicodeEmojiProperty.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../TextProcessing/UnicodeGeneralCategory.cs → .../TextProcessing/UnicodeGeneralCategory.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...r/TextProcessing/UnicodeLineBreakClass.cs → ...l/TextProcessing/UnicodeLineBreakClass.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...erer/TextProcessing/UtfEnumeratorFlags.cs → ...rnal/TextProcessing/UtfEnumeratorFlags.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
54 changes: 54 additions & 0 deletions
54
Dalamud/Interface/ImGuiSeStringRenderer/SeStringRenderStyle.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
using ImGuiNET; | ||
|
||
using Lumina.Text.Payloads; | ||
|
||
namespace Dalamud.Interface.ImGuiSeStringRenderer; | ||
|
||
/// <summary>Render styles for a SeString.</summary> | ||
public record struct SeStringRenderStyle | ||
{ | ||
private uint color; | ||
private uint edgeColor; | ||
private uint shadowColor; | ||
private bool hasValidColorValue; | ||
private bool hasValidEdgeColorValue; | ||
private bool hasValidShadowColorValue; | ||
|
||
/// <summary>Gets or sets a value indicating whether to force the color of the rendered text edge.</summary> | ||
/// <remarks>If not <c>null</c>, then <see cref="MacroCode.EdgeColor"/> and <see cref="MacroCode.EdgeColorType"/> | ||
/// will be ignored.</remarks> | ||
public bool ForceEdgeColor { get; set; } | ||
|
||
/// <summary>Gets or sets a value indicating whether the text is rendered bold.</summary> | ||
public bool Bold { get; set; } | ||
|
||
/// <summary>Gets or sets a value indicating whether the text is rendered italic.</summary> | ||
public bool Italic { get; set; } | ||
|
||
/// <summary>Gets or sets a value indicating whether the text is rendered with edge.</summary> | ||
public bool Edge { get; set; } | ||
|
||
/// <summary>Gets or sets a value indicating whether the text is rendered with shadow.</summary> | ||
public bool Shadow { get; set; } | ||
|
||
/// <summary>Gets or sets the color of the rendered text.</summary> | ||
public uint Color | ||
{ | ||
readonly get => this.hasValidColorValue ? this.color : ImGui.GetColorU32(ImGuiCol.Text); | ||
set => (this.hasValidColorValue, this.color) = (true, value); | ||
} | ||
|
||
/// <summary>Gets or sets the color of the rendered text edge.</summary> | ||
public uint EdgeColor | ||
{ | ||
readonly get => this.hasValidEdgeColorValue ? this.edgeColor : 0xFF000000; | ||
set => (this.hasValidEdgeColorValue, this.edgeColor) = (true, value); | ||
} | ||
|
||
/// <summary>Gets or sets the color of the rendered text shadow.</summary> | ||
public uint ShadowColor | ||
{ | ||
readonly get => this.hasValidShadowColorValue ? this.shadowColor : 0xFF000000; | ||
set => (this.hasValidShadowColorValue, this.shadowColor) = (true, value); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
99 changes: 95 additions & 4 deletions
99
Dalamud/Interface/Internal/Windows/Data/Widgets/SeStringRendererTestWidget.cs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters