When you give a unit a build command you list in this command a bunch of buildings that can be built, so when the player clicks the build button a new set of buttons pop up to select what building to produce.
Can the same be done with producing units from buildings using the produce skill rather than the build skill because if there's a limit to how many buttons a unit has I'm going to have to make an extra building because I have a building that will produce around 20 different types of units (some are improved versions of older units so the player isn't spammed with pointless choices).