RSS

Среда, 30.11.2022, 03:27
Главная » WoW API » Событий API Виджетов »

OnLoad

[ править ]
Run when the frame is created.
[клоны]
Run when the frame is created. In practice, this handler is only applicable when defined in XML (either for frames created in XML or for XML templates inherited by dynamically created frames). A frame created via CreateFrame() will have already run its (non-existent) OnLoad script by the time that function returns, leaving no opportunity to run an OnLoad handler set later.


Signature:
Code
OnLoad(self)

Arguments:
  • self - Reference to the widget for which the script was run (frame)

Доступна для: Animation, AnimationGroup, Alpha, Path, Rotation, Scale, Translation, Frame, ArchaeologyDigSiteFrame, Button, ColorSelect, Cooldown, EditBox, GameTooltip, MessageFrame, Minimap, Model, MovieFrame, QuestPOIFrame, ScrollFrame, ScrollingMessageFrame, SimpleHTML, Slider, StatusBar, CheckButton, PlayerModel, DressUpModel, TabardModel

Также смотрите: Событий API Виджетов
Ссылки: http://wowprogramming.com/docs/scripts/OnLoad