mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2026-02-22 23:47:45 +01:00
Remove stupid oversight dalamud bindings.
This commit is contained in:
parent
604c14b3ad
commit
ea573ccb6b
2 changed files with 4 additions and 6 deletions
|
|
@ -1,5 +1,4 @@
|
||||||
using Dalamud.Bindings.ImGui;
|
using Dalamud.Interface.ImGuiNotification;
|
||||||
using Dalamud.Interface.ImGuiNotification;
|
|
||||||
using Glamourer.Designs;
|
using Glamourer.Designs;
|
||||||
using ImSharp;
|
using ImSharp;
|
||||||
using Luna;
|
using Luna;
|
||||||
|
|
@ -30,7 +29,7 @@ public sealed class ExportToClipboardButton(ActorSelection selection, DesignConv
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var text = converter.ShareBase64(selection.State!, ApplicationRules.FromModifiers(selection.State!));
|
var text = converter.ShareBase64(selection.State!, ApplicationRules.FromModifiers(selection.State!));
|
||||||
ImGui.SetClipboardText(text);
|
Im.Clipboard.Set(text);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
using Dalamud.Bindings.ImGui;
|
using Dalamud.Interface.ImGuiNotification;
|
||||||
using Dalamud.Interface.ImGuiNotification;
|
|
||||||
using Glamourer.Designs;
|
using Glamourer.Designs;
|
||||||
using Glamourer.State;
|
using Glamourer.State;
|
||||||
using ImSharp;
|
using ImSharp;
|
||||||
|
|
@ -30,7 +29,7 @@ public sealed class SetFromClipboardButton(ActorSelection selection, DesignConve
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var (applyGear, applyCustomize) = UiHelpers.ConvertKeysToBool();
|
var (applyGear, applyCustomize) = UiHelpers.ConvertKeysToBool();
|
||||||
var text = ImGui.GetClipboardText();
|
var text = Im.Clipboard.GetUtf16();
|
||||||
var design = converter.FromBase64(text, applyCustomize, applyGear, out _)
|
var design = converter.FromBase64(text, applyCustomize, applyGear, out _)
|
||||||
?? throw new Exception("The clipboard did not contain valid data.");
|
?? throw new Exception("The clipboard did not contain valid data.");
|
||||||
stateManager.ApplyDesign(selection.State!, design, ApplySettings.ManualWithLinks with { IsFinal = true });
|
stateManager.ApplyDesign(selection.State!, design, ApplySettings.ManualWithLinks with { IsFinal = true });
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue