View Single Post
11-23-14, 12:44 PM   #7
Clamsoda
A Frostmaul Preserver
Join Date: Nov 2011
Posts: 269
You're going to have a very hard time finding help with XML. Relying heavily on XML is discouraged for various reasons, and there is only one thing XML can do that pure LUA cannot: creating secure templates.

You could give your frame an OnClick script, that checks for the button, and toggle frame locking that way.


Lua Code:
  1. local frame = CreateFrame("Button", MyReallyNeatFrameName, UIParent)
  2.  
  3. frame:RegisterForClicks("AnyUp")
  4. frame:SetScript("OnClick", function(self, button, ...)
  5.     if (button == "RightButton" or "MiddleButton") then
  6.         -- Execute whatever method you'd choose for locking your frame.
  7.     end
  8. end)

Last edited by Clamsoda : 11-23-14 at 11:22 PM.
  Reply With Quote