Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Advertisement

Invoked when the object is created.

(self)

Arguments[]

self
ScriptObject - The new widget.

Details[]

  • Requires definition in XML to be useful; i.e. before the widget is constructed.

Example[]

In XML:

<Frame name="MyFrameTemplate" virtual="true">
	<Scripts>
		<OnLoad>
			print("HelloWorld!")
		</Onload>
	</Scripts>
</Frame>

In Lua:

CreateFrame("Frame", nil, nil, "MyFrameTemplate")  -- HelloWorld!
Advertisement