Tylex contains the opioid analgesic drug codeine, so even without alcohol you shouldn't have driven.
Tylex does not affect the breathalyser so you probably drank more alcohol than regulations approve.
Together, Tylex and alcohol, have a stronger depressive effect on the brain than when used alone.