Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API Region SetScale

Last wiki revision 2023-08-14

Sets the size scaling of the region. scale = Region:GetScale

  • scale: - The scale of the region. Must be greater than 0.

and its child regions will become scaled to 120%.

Since the API presentation is scaled, each object has its own internal notion of size, which is only relative to the actual size it appears on-screen. will have a reasonable scaling factor selected by the game engine, from which all of the child UI elements are then derived. This function can be used to selectively change the scale of a component relative to its parent such that it appears to become bigger or smaller. UI elements with appropriately specified anchor points and sizes should scale quite cleanly.

Also see LibWindow-1.1's approach to saving positions of "window"-style frames:

Source

https://warcraft.wiki.gg/wiki/API_Region_SetScale · 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.