Lock/Unlock Camera View
I'm not sure why but after upgrading to Windows 8.1 I'm having a terrible time with the camera position changing when I click on things in the environment.
This is especially bad when doing the "Water, Water Everywhere" daily quest from Farmer Fung. I set the camera to a directly overhead view, turn off the UI (Alt-Z), and then use the "1" key to get a target reticule and left-click to drop the bucket. The camera used to stay where I put it but now, it will change the view (drastically) on some of my clicks. Would it be possible to create an addon that locked and unlocked the camera? If so, any hints as to what I'd need to do? |
Don't know what's causing this, but maybe you could try those: http://wowprogramming.com/docs/api_categories#camera You could just try in a macro to see whether they solve your issues.
|
I've looked at the camera API functions but I think the problem is that left-click and right-click can both modify the camera position and I don't know how to stop that. None of the camera API functions seems to be appropriate.
|
Double-check your Camera settings in the game's Interface Options window. If you reinstalled WoW, you were given the game's current default settings -- even if you were using the default settings before, the default settings may have been changed since then. Try turning off the follow terrain, adjust while moving, and similar options and see if that helps.
|
Quote:
I moved to a different system with Windows 7 (64-bit) with exactly the same addons and it doesn't happen. BTW, this system is on a KVM with the 8.1 system so the exact same mouse and keyboard were used. On the Windows 8.1 system, I turned on the Framestack and see nothing out of the ordinary when the camera is mysteriously moved. I disabled all addons and the mysterious camera movement still occurs. All of this leads me to believe its a Windows 8.1 related problem but until either Blizzard and/or Microsoft make a change, I'm stuck with it. This system is a substantial upgrade from my previous system and for my day job I need to stay with 8.1. This brings me back to my original question, can I program around the problem with an addon? |
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. Could even go as far as making the SetView() auto-repeat while the interface is hidden or put a toggle to turn 'camera lock' mode on/off. |
Quote:
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") Additional hints or pointers to addons that I might "borrow from" would be appreciated. |
hook TurnOrActionStop and CameraOrSelectOrMoveStop
|
Quote:
I'll have to see how it goes with Water, Water Everywhere but I'm getting close. Thanks everyone :D If anyone else has the problem under Windows 8.1, let me know and I'll make the code available. |
you can use hooksecurefunc() to avoid tainting the functions
|
Quote:
|
Looks like I'm not the only one with this problem! It appears to be happening only on Windows 8.1.
http://us.battle.net/wow/en/forum/topic/10102720358 http://us.battle.net/wow/en/forum/topic/9499810106 I have uploaded my addon to WoWInterface. Camera is its name and it is pending approval. |
All times are GMT -6. The time now is 06:39 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI