Skip to content

Commit

Permalink
/upm and /profiles open the options UI in a standalone panel, allowin…
Browse files Browse the repository at this point in the history
…g you to resize and move it
  • Loading branch information
Numynum committed Jun 12, 2024
1 parent fdb507c commit 7fbf3cc
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion UnifiedProfileManager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,21 @@ function ns:Init()
_G.SLASH_UNIFIED_PROFILE_MANAGER1 = '/upm';
_G.SLASH_UNIFIED_PROFILE_MANAGER2 = '/profiles';
SlashCmdList['UNIFIED_PROFILE_MANAGER'] = function()
Settings.OpenToCategory(category);
AceConfig:RegisterOptionsTable(name, ns:GetOptionsTable());
AceConfigDialog:Open(name);
local container = AceConfigDialog.OpenFrames[name];
if not container or not container.frame then return; end
container:SetTitle('Unified Profile Manager');
local frame = container.frame;
frame:SetMovable(true);
frame:SetScript('OnMouseDown', function(self)
self:StartMoving();
end);
frame:SetScript('OnMouseUp', function(self)
self:StopMovingOrSizing();
end);
frame.ClearAllPoints = nop;
frame.SetPoint = nop;
end;
end

Expand Down

0 comments on commit 7fbf3cc

Please sign in to comment.