m
→Files within an addon
(Odd Scrolling box around example made it hard to read.) |
|||
| Line 30: | Line 30: | ||
<Ui> | <Ui> | ||
<Frame name="TemplateFrame" virtual="true"> | <Frame name="TemplateFrame" virtual="true"> | ||
<Frames> | |||
<Frame> | |||
<Scripts> | |||
<OnLoad> | |||
print("Inherited elements of the frame are processed first."); | |||
</OnLoad> | |||
</Scripts> | |||
</Frame> | |||
</Frames> | |||
</Frame> | </Frame> | ||
<Frame inherits="TemplateFrame"> | <Frame inherits="TemplateFrame"> | ||
<Frames> | <Frames> | ||
<Frame> | <Frame> | ||
<Scripts><OnLoad>print("First child frame's OnLoad fires first")</OnLoad></Scripts> | <Scripts> | ||
<OnLoad> | |||
print("First child frame's OnLoad fires first") | |||
</OnLoad> | |||
</Scripts> | |||
</Frame> | </Frame> | ||
<Frame> | <Frame> | ||
<Scripts><OnLoad>print("Second child frame's OnLoad fires second")</OnLoad></Scripts> | <Scripts> | ||
<OnLoad> | |||
print("Second child frame's OnLoad fires second") | |||
</OnLoad> | |||
</Scripts> | |||
</Frame> | </Frame> | ||
<Scripts> | |||
<OnLoad> | |||
print("Parent frame's OnLoad fires after its children's.") | |||
</OnLoad> | |||
</Scripts> | |||
</Frames> | </Frames> | ||
</Frame> | </Frame> | ||