CreateControl
ESO Lua API function — used by 105 of the 3,030 addons we indexed (combined 38,671,102 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
CreateControl(string name, object parent, [ControlType|#ControlType] type)Returns: object control
Real usage — from HarvestMap
self.distanceScale = 1
self.measurementControl = CreateControl("NodeDetectionMeasurementControl", GuiRoot, CT_CONTROL)
self.measurementControl:Create3DRenderSpace()Short excerpt from the shipping addon HarvestMap — its ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.
Most-downloaded addons using it
| Addon | Total downloads |
|---|---|
| HarvestMap | 9,454,533 |
| AwesomeGuildStore | 4,722,462 |
| Votan's Minimap | 4,211,718 |
| Master Merchant 3.0 | 3,883,523 |
| LibMainMenu-2.0 | 2,455,168 |
| LibFilters-3.0 | 2,063,617 |