12.07.2015 Views

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 27 ■ API <strong>Reference</strong> 879Mac OS X onlyReturns:ratio—Ratio <strong>of</strong> the game display’s width to its height (number)MovieRecording_GetMovieFullPathReturns a path to the movie currently being recorded or compressed.path = MovieRecording_GetMovieFullPath()If no movie is being recorded or compressed, returns either the empty string(““) or the path <strong>of</strong> the last movie recorded/compressed.Returns:path—Path to the movie currently being recorded or compressed,relative to the folder containing the <strong>World</strong> <strong>of</strong> <strong>Warcraft</strong> app (string)Example:MovieRecording_GetMovieFullPath()-- returns (e.g.) “Movies/Thunder_Bluff_060409_193403.mov“Mac OS X onlyMac OS X onlyMac OS X onlyMovieRecording_GetProgressReturns in<strong>for</strong>mation about movie compression progress.recovering, progress = MovieRecording_GetProgress()Returns:recovering—True if a previous compression was interrupted (e.g.due to <strong>WoW</strong> being crashing or being <strong>for</strong>ced to quit), indicating thatrecovery is being attempted on the file; otherwise false (boolean)progress—Progress <strong>of</strong> the movie compression process (0 = just started, 1 = finished)(number)MovieRecording_GetTimeReturns the amount <strong>of</strong> time since video recording was last started.time = MovieRecording_GetTime()Used in the default UI to show the length <strong>of</strong> the recording in progress whenmousing over the recording indicator on the minimap.May return a nonsensical value if no video has been recorded since logging in.Returns:time—Amount <strong>of</strong> time since video recording was last started (HH:MM:SS)(string)MovieRecording_GetViewportWidthReturns the current width <strong>of</strong> the game display.width = MovieRecording_GetViewportWidth()Used in the default UI to allow the current screen resolution (or an integralfactor there<strong>of</strong>) to be selected as the video recording resolution.Returns:width—Width <strong>of</strong> the game display (number)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!