选择器控件增加保护机制,找不到对应值隐藏自己防止报错
This commit is contained in:
@@ -482,9 +482,11 @@ function selector:reset()
|
|||||||
if L[i]==V then
|
if L[i]==V then
|
||||||
self.select=i
|
self.select=i
|
||||||
self.selText=self.list[i]
|
self.selText=self.list[i]
|
||||||
break
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
self.hide=true
|
||||||
|
LOG.print("Selector "..self.name.." dead, disp= "..tostring(V),"warn")
|
||||||
end
|
end
|
||||||
function selector:isAbove(x,y)
|
function selector:isAbove(x,y)
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user