搜索
查看: 88|回复: 0

[求助] 大佬们,Lua UI获取对象为空

[复制链接]
发表于 2024-9-25 09:41:41 | 显示全部楼层 |阅读模式
  1. --鼠标移入事件
  2. function Usr_Test_OnMouseEnter(sender)
  3.   local test = c.ui.getCtrl("DWBottom@Usr_Test")
  4.   if (test == nil) then
  5.     c.share.addChat("jjjj",1,2)
  6.   end
  7.   if (test ~= nil) then
  8.     test:setVisible(true)
  9.   end
  10.   -- return true --返回true代表执行内部事件
  11. end
复制代码
鼠标移入事件能捕获,但是获取按钮对象就是空的,试了很多方法,没有找到

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|HGEM2论坛

GMT+8, 2024-10-23 17:27 , Processed in 0.513522 second(s), 14 queries .

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表