选择器控件增加保护机制,找不到对应值隐藏自己防止报错
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user