View Single Post
10-20-13, 11:25 AM   #7
bsmorgan
A Cobalt Mageweaver
AddOn Author - Click to view addons
Join Date: Mar 2005
Posts: 219
Originally Posted by Dridzt View Post
You can try positioning the camera as you want it then do
SaveView(5)
and SetView(5)
If the macro works to lock the camera you could make a small addon for it.
I tried "/run SaveView(5)" and "/run SetView(5)" but that didn't "lock" the camera

I guess I need an addon... Looks like I want to do a SetView(5) after every left-click on the entire world frame (if that's the right terminology). Is that an OnClick handler for the frame? Something like:

Code:
local f = CreateFrame("Frame")
f:SetScript("OnClick", function(self,button,down)
	SetView(5)
end)
f:RegisterForClicks("LeftButtonDown") -- or "LeftButtonUp"
Obviously, I need some conditions to turn this on and off. I'm in a vehicle and on a specific quest (or any quest of the "bombing run" type). I'm pretty sure I need more than just CreateFrame("Frame") but I'm not sure what.

Additional hints or pointers to addons that I might "borrow from" would be appreciated.

Last edited by bsmorgan : 10-20-13 at 11:28 AM.
  Reply With Quote