选择器控件增加保护机制,找不到对应值隐藏自己防止报错

This commit is contained in:
MrZ626
2020-11-04 00:39:29 +08:00
parent a485a71dfc
commit 3c7177c2fb

View File

@@ -482,9 +482,11 @@ function selector:reset()
if L[i]==V then
self.select=i
self.selText=self.list[i]
break
return
end
end
self.hide=true
LOG.print("Selector "..self.name.." dead, disp= "..tostring(V),"warn")
end
function selector:isAbove(x,y)
return