WoW:API SaveView: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(upgraded deprecated template)
m (Move page script moved page API SaveView to API SaveView without leaving a redirect)
 
(6 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{wowapi}}
{{wowapi}} __NOTOC__
Used to save a camera angle for later retrieval with [[API SetView|SetView]].


Usage (macro):


/script SaveView(%x);
Saves a camera angle for later retrieval with [[API SetView|SetView]].
(Where '%x' is 1, 2, 3, or 4)
SaveView(viewIndex)
 
 
== Arguments ==
:; viewIndex : Number - The index (2-5) to save the camera angle to. (1 is reserved for first person view)
 
== Returns ==
:nil
 
== Notes ==
 
:Saved views are preserved across sessions.
 
== Bugs ==
 
:'''Fixed:''' A bug in 3.0-patches causes SaveView variables not to load first time you load a character after entering the game.
:::Reloading the UI, or reloading the character from character selection screen, will fix this bug. [http://forums.worldofwarcraft.com/thread.html;jsessionid=232FD6BFB263DD032A2A67227000932E.app25_04?topicId=12454545616&sid=1 Source]

Latest revision as of 04:47, 15 August 2023

WoW API < SaveView


Saves a camera angle for later retrieval with SetView.

SaveView(viewIndex)


Arguments[edit]

viewIndex
Number - The index (2-5) to save the camera angle to. (1 is reserved for first person view)

Returns[edit]

nil

Notes[edit]

Saved views are preserved across sessions.

Bugs[edit]

Fixed: A bug in 3.0-patches causes SaveView variables not to load first time you load a character after entering the game.
Reloading the UI, or reloading the character from character selection screen, will fix this bug. Source