mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-25 22:21:49 +01:00
- Switch ImRaii to new ref struct syntax
- Implement Disposable objects from ImSharp
This commit is contained in:
parent
5da79a7dba
commit
f593433fcb
38 changed files with 2113 additions and 501 deletions
|
|
@ -893,8 +893,8 @@ internal class SeStringCreatorWidget : IDataWindowWidget
|
|||
return;
|
||||
}
|
||||
|
||||
using var node = asTreeNode ? this.SeStringTreeNode(id, rosss) : null;
|
||||
if (asTreeNode && !node!) return;
|
||||
using var node = asTreeNode ? this.SeStringTreeNode(id, rosss) : default;
|
||||
if (asTreeNode && !node) return;
|
||||
|
||||
if (!asTreeNode && renderSeString)
|
||||
{
|
||||
|
|
@ -1237,7 +1237,7 @@ internal class SeStringCreatorWidget : IDataWindowWidget
|
|||
return parameters.OrderBy(x => x.Key).Select(x => x.Value).ToArray();
|
||||
}
|
||||
|
||||
private ImRaii.IEndObject SeStringTreeNode(string id, ReadOnlySeStringSpan previewText, uint color = 0xFF00FFFF, ImGuiTreeNodeFlags flags = ImGuiTreeNodeFlags.None)
|
||||
private ImRaii.TreeNodeDisposable SeStringTreeNode(string id, ReadOnlySeStringSpan previewText, uint color = 0xFF00FFFF, ImGuiTreeNodeFlags flags = ImGuiTreeNodeFlags.None)
|
||||
{
|
||||
using var titleColor = ImRaii.PushColor(ImGuiCol.Text, color);
|
||||
var node = ImRaii.TreeNode("##" + id, flags);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue