I'm building a light indicator system with four states (All lights off, Red light on, Amber light on, and Green light on). I want to be able to go from one state to the next with just one button press, which rules out having individual on/off switches for each light, and also a rotary switch because going from Green back to Off would require switching on Amber and Red. A momentary push button is the preferred option.
I've been looking at Set/Reset Latches with NAND gates similar to the "Sequential Logic -> Flip-Flips -> SR Flip-Flop" example on http://www.falstad.com/circuit/. This example uses two two-input NAND gates where one input is pulled high and grounded on button press, the other input is tied to the output of the other NAND gate. To get this to work with four states I was thinking about using two 4012 Dual 4-input NAND gate CMOS integrated circuits, but the wiring becomes significantly more complicated compared to using a simple rotary switch.
Is there a simple way to achieve this functionality, with a type of mechanical switch or an integrated circuit that just takes the 4 inputs and has 4 outputs?