Its a Port of AOE2
Code: Select all
   if ( (TownCenter[1].X+TownCent:width() >= cursorX) and (TownCenter[1].X <= cursorX+cursor:width()) ) then 
      if ( (TownCenter[1].Y+TownCent:height() >= cursorY) and (TownCenter[1].Y <= cursorY+cursor:height()) ) then 
	TownCenter[1].Select = 1
      end 
   end