A color select menu?

Hi

I’d like the ability to color my character. As an example, heres a screenshot from homeworld:

12950-colors2.png

How on earth did they make this system work?

I managed to find this texture the model uses ingame, but how does the system know what areas to color and what to ignore?

12951-page0.png

You would have to have seperate materials on the object, each material’s color changeable from the gui menu.