WoW:API SetupFullscreenScale: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(→‎Notes: SetupFullscreenScale replaced SetupWorldMapScale in 1.12.)
m (Move page script moved page API SetupFullscreenScale to API SetupFullscreenScale without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{wowapi}}
{{wowapi}}


  SetupFullscreenScale();
  SetupFullscreenScale(frame);


The purpose of this function isn't exactly clear, but from the way it's used it would appear to be a function that appropriately scales the full-screen views, such as the world map frame, to fit on the screen maximally depending on the aspect ratio. Why this wasn't implemented in lua isn't entirely clear, though it may require information about the screen geometry which isn't exposed through the standard UI.
The purpose of this function isn't exactly clear, but from the way it's used it would appear to be a function that appropriately scales a frame for full-screen views, such as the world map frame, to fit on the screen maximally depending on the aspect ratio. Why this wasn't implemented in lua isn't entirely clear, though it may require information about the screen geometry which isn't exposed through the standard UI.


== Parameters ==
== Parameters ==
=== Arguments ===
=== Arguments ===
:<i>none</i>
:;frame : The frame to manipulate.


== Notes ==
== Notes ==
* SetupFullscreenScale replaced [[API SetupWorldMapScale|SetupWorldMapScale]] in 1.12.
* SetupFullscreenScale replaced [[API SetupWorldMapScale|SetupWorldMapScale]] in 1.12.

Latest revision as of 04:47, 15 August 2023

WoW API < SetupFullscreenScale

SetupFullscreenScale(frame);

The purpose of this function isn't exactly clear, but from the way it's used it would appear to be a function that appropriately scales a frame for full-screen views, such as the world map frame, to fit on the screen maximally depending on the aspect ratio. Why this wasn't implemented in lua isn't entirely clear, though it may require information about the screen geometry which isn't exposed through the standard UI.

Parameters[edit]

Arguments[edit]

frame
The frame to manipulate.

Notes[edit]