mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-13 19:37:44 +01:00
Implement DrawListTextureWrap (#2036)
* Implement DrawListTextureWrap * Fix unloading * minor fixes * Add CreateFromClipboardAsync --------- Co-authored-by: goat <16760685+goaaats@users.noreply.github.com>
This commit is contained in:
parent
a12c63d6a2
commit
4dce0c00e8
25 changed files with 2821 additions and 35 deletions
|
|
@ -182,6 +182,15 @@ internal class TexWidget : IDataWindowWidget
|
|||
|
||||
ImGui.Dummy(new(ImGui.GetTextLineHeightWithSpacing()));
|
||||
|
||||
if (!this.textureManager.HasClipboardImage())
|
||||
{
|
||||
ImGuiComponents.DisabledButton("Paste from Clipboard");
|
||||
}
|
||||
else if (ImGui.Button("Paste from Clipboard"))
|
||||
{
|
||||
this.addedTextures.Add(new(Api10: this.textureManager.CreateFromClipboardAsync()));
|
||||
}
|
||||
|
||||
if (ImGui.CollapsingHeader(nameof(ITextureProvider.GetFromGameIcon)))
|
||||
{
|
||||
ImGui.PushID(nameof(this.DrawGetFromGameIcon));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue