Originally Posted by Fizzlemizz
You said moving the camera so this might give you something to start/work with (requires mouseleft to be held down to move the camera):
Lua Code:
local f = CreateFrame("Button", "SomeOnEnterFrame", WorldFrame) f:SetSize(200, 200) f:SetPoint("TOPLEFT") f.t = f:CreateTexture() f.t:SetAllPoints() f.t:SetTexture("abc") f:RegisterForClicks("LeftButtonDown", "LeftButtonUp") f:SetScript("OnEnter", function(self) print("Entered") self:SetSize(400, 400) end) f:SetScript("OnLeave", function(self) print("Left") if self.MouseLooking or MouseIsOver(self) then return end self:SetSize(200, 200) end) f:SetScript("OnClick", function(self, button, down) if down then if not self.MouseLooking then self.MouseLooking = true MouselookStart() else self.MouseLooking = nil MouselookStop() end end end) WorldFrame:HookScript("OnMouseUp", function(self, button) if SomeOnEnterFrame.MouseLooking then SomeOnEnterFrame:Click(button, true) end end)
... or not.
If MouseLook gets "stuck on" while figuring out all the ins and outs you might need to address, clicking both buttons should unlock it.
|
Thanks a lot, i was very close to it but never heared about WorldFrame. Do you think it is possible to use rightclick to do that and leftclick with the same behaviour as WorldFrame does? clicking object, targeting units etc.. ? To be a complete transparent frame.