if ((this.y<=0) or (this.x<=0)) then
if (((pointerx()<this.x) or (pointerx()>this.x+this.Width - 18))) then
if this.x<=0 then
this.x = -(this.Width - 24)//隐藏
end if
elseif ((pointery()<this.y - 50) or (pointery()>this.y+this.Height - 80) or (pointerx() < this.x) or (pointerx() > this.x+this.Width) ) then
if this.y<=0 then
this.y = -(this.Height - 10) //隐藏
end if
end if
if this.x<=0 then
if ((pointerx()<=this.width) and (pointery()>this.y) and &
(pointery()<this.y + this.Height)) then
this.x = 0;
end if
end if
if this.y<=0 then
if ((pointery()<=this.height) and (pointerx()>this.x) and &
(pointerx()<this.x+this.width)) then
this.y = 0;
end if
end if
end if