Lore archive · Warcraft Wiki, 2023 dump
API GetDefaultScale
Last wiki revision 2022-07-21
Returns the default UI scaling value for the current screen size. scale = GetDefaultScale
- scale: - The default scale for the UI as a floating point value.
The below example creates an unparented frame that will always render at a size of 300x300 pixels. The scale of the frame is managed through the inherited DefaultScaleFrame template, which internally uses this API to apply the correct scale to the frame if the screen size changes.
Source
https://warcraft.wiki.gg/wiki/API_GetDefaultScale · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.