控件模块不再依赖TABLE扩展模块

This commit is contained in:
MrZ626
2021-10-20 16:18:04 +08:00
parent 10ed702c2e
commit 76bfaa870e

View File

@@ -656,15 +656,16 @@ local selector={
function selector:reset()
self.ATV=0
local V,L=self.disp(),self.list
local i=TABLE.find(L,V)
if i then
self.select=i
self.selText=self.list[i]
else
self.select=0
self.selText=""
MES.new('error',"Selector "..self.name.." dead, disp= "..tostring(V))
for i=1,#L do
if L[i]==V then
self.select=i
self.selText=self.list[i]
return
end
end
self.select=0
self.selText=""
MES.new('error',"Selector "..self.name.." dead, disp= "..tostring(V))
end
function selector:isAbove(x,y)
return