企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
>[danger]Frame具有ScriptObject的处理程序,以及以下内容 [OnAttributeChanged](https://wow.gamepedia.com/index.php?title=UIHANDLER_OnAttributeChanged&action=edit&redlink=1 "UIHANDLER OnAttributeChanged (page does not exist)")(self, key, value) - 在更改框架属性时运行 [OnChar](https://wow.gamepedia.com/UIHANDLER_OnChar "UIHANDLER OnChar")(self, text) - 为框架中键入的每个文本字符运行 [OnDisable](https://wow.gamepedia.com/index.php?title=UIHANDLER_OnDisable&action=edit&redlink=1 "UIHANDLER OnDisable (page does not exist)")(self) - 在禁用框架时运行 [OnDragStart](https://wow.gamepedia.com/UIHANDLER_OnDragStart "UIHANDLER OnDragStart")(self, button) -从鼠标开始拖动框架时运行 [OnDragStop](https://wow.gamepedia.com/index.php?title=UIHANDLER_OnDragStop&action=edit&redlink=1 "UIHANDLER OnDragStop (page does not exist)")(self) -在框架中开始拖动后释放鼠标按钮时运行 [OnEnable](https://wow.gamepedia.com/index.php?title=UIHANDLER_OnEnable&action=edit&redlink=1 "UIHANDLER OnEnable (page does not exist)")(self) - 在启用框架时运行。 [OnEnter](https://wow.gamepedia.com/UIHANDLER_OnEnter "UIHANDLER OnEnter")(self, motion) - 当鼠标光标进入框架的交互式区域时运行. [OnEvent](https://wow.gamepedia.com/index.php?title=UIHANDLER_OnEvent&action=edit&redlink=1 "UIHANDLER OnEvent (page does not exist)")(self, event, ...) - 每当触发事件[event](https://wow.gamepedia.com/Events "Events")并为其注册框架时运行 [OnHide](https://wow.gamepedia.com/UIHANDLER_OnHide "UIHANDLER OnHide")(self) - 当框架的可见性更改为隐藏时运行. [OnHyperlinkClick](https://wow.gamepedia.com/index.php?title=UIHANDLER_OnHyperlinkClick&action=edit&redlink=1 "UIHANDLER OnHyperlinkClick (page does not exist)")(self, link, text, button) -当鼠标单击FontInstance对象上的超链接时运行。 [OnHyperlinkEnter](https://wow.gamepedia.com/index.php?title=UIHANDLER_OnHyperlinkEnter&action=edit&redlink=1 "UIHANDLER OnHyperlinkEnter (page does not exist)")(self, link, text) - 当鼠标移到FontInstance对象上的超链接上时运行。 [OnHyperlinkLeave](https://wow.gamepedia.com/index.php?title=UIHANDLER_OnHyperlinkLeave&action=edit&redlink=1 "UIHANDLER OnHyperlinkLeave (page does not exist)")(self, link, text) - 当鼠标从FontInstance对象上的超链接移开时运行。 [OnKeyDown](https://wow.gamepedia.com/UIHANDLER_OnKeyDown "UIHANDLER OnKeyDown")(self, key) - 如果框架启用了键盘,则在按下键盘键时运行。 [OnKeyUp](https://wow.gamepedia.com/UIHANDLER_OnKeyUp "UIHANDLER OnKeyUp")(self, key) - 如果框架启用了键盘,则在释放键盘键时运行。 [OnLeave](https://wow.gamepedia.com/UIHANDLER_OnLeave "UIHANDLER OnLeave")(self, motion) - Run when the mouse cursor leaves the frame's interactive area. [OnMouseDown](https://wow.gamepedia.com/UIHANDLER_OnMouseDown "UIHANDLER OnMouseDown")(self, button) - 当鼠标光标离开框架的交互式区域时运行 [OnMouseUp](https://wow.gamepedia.com/index.php?title=UIHANDLER_OnMouseUp&action=edit&redlink=1 "UIHANDLER OnMouseUp (page does not exist)")(self, button) -在框架中按下鼠标后释放鼠标按钮时运行 [OnMouseWheel](https://wow.gamepedia.com/UIHANDLER_OnMouseWheel "UIHANDLER OnMouseWheel")(self, delta) - 当框架收到鼠标滚轮滚动动作时运行 [OnReceiveDrag](https://wow.gamepedia.com/UIHANDLER_OnReceiveDrag "UIHANDLER OnReceiveDrag")(self) - 拖动到框架中后释放鼠标按钮时运行 [OnShow](https://wow.gamepedia.com/UIHANDLER_OnShow "UIHANDLER OnShow")(self) - 当框架可见时运行。 [OnSizeChanged](https://wow.gamepedia.com/index.php?title=UIHANDLER_OnSizeChanged&action=edit&redlink=1 "UIHANDLER OnSizeChanged (page does not exist)")(self, width, height) - 当框架的大小更改时运行