# File lib/rubygame/hotspot.rb, line 172 def hotspot(label,x=0,y=0) a = @hotspots[label] if a[2].nil? # has no parent [x+a[0],y+a[1]] else # has a parent hotspot(a[2],x+a[0],y+a[1]) end rescue NoMethodError => e if not(defined? @hotspots) return nil elsif a.nil? smartspot(label,x,y) else raise e end end