Quantcast
Reset after using FlipCameraYaw() - WoWInterface
Thread Tools Display Modes
05-25-20, 04:13 AM   #1
LudiusMaximus
A Cobalt Mageweaver
 
LudiusMaximus's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 219
Reset after using FlipCameraYaw()

I have used FlipCameraYaw several times (even with arguments having decimal places). Is there any way I can ever get the original centered view back (without reloading the UI!) or do I have to try until I think if feels right...?
__________________
~ Be the change you want to see in the world... of warcraft interface! ~

Last edited by LudiusMaximus : 05-25-20 at 05:29 AM.
  Reply With Quote
05-25-20, 05:29 AM   #2
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,508
Assuming this is in an addon you are writing you might want to look at this which lists other functions .. which may or may not be still usable.

Particularly the ones that allow you to save and set views from stored ones.

I would assume that when the game first loads up that is the default view .. so theoretically if you save that as say view(1) you can then use the other camera tools to change the view and then reset it on command using the set view (1) command.
__________________
  Reply With Quote
05-25-20, 05:32 AM   #3
LudiusMaximus
A Cobalt Mageweaver
 
LudiusMaximus's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 219
Thanks for you reply, but it seems the angle change achieved with FlipCameraYaw() is not affected by SaveView()/SetView().
__________________
~ Be the change you want to see in the world... of warcraft interface! ~
  Reply With Quote
05-25-20, 05:35 AM   #4
LudiusMaximus
A Cobalt Mageweaver
 
LudiusMaximus's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 219
I guess, if I am doing this in my addon, I can keep track of how much I have changed the angle, so I will be able to get it back to 0. Initially I thought the angle is not reset after reloading the UI, but as this is the case, I think it is manageable.
__________________
~ Be the change you want to see in the world... of warcraft interface! ~
  Reply With Quote
05-25-20, 06:21 AM   #5
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,508
Just realised I never linked in the page I had seen the list on ..

So for future reference this is it:
https://www.dual-boxing.com/threads/...nd-the-WoW-API

And for completeness wowpedia's camera function list
https://wow.gamepedia.com/World_of_Warcraft_API#Camera
__________________
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Reset after using FlipCameraYaw()

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off