public ForeverHairDyeGump(ForeverHairDye dye) : base(0, 0) { m_ForeverHairDye = dye; AddPage(0); AddBackground(150, 60, 350, 358, 2600); AddBackground(170, 104, 110, 270, 5100); AddHtmlLocalized(230, 75, 200, 20, 1011013, false, false); // Hair Color Selection Menu AddHtmlLocalized(235, 380, 300, 20, 1011014, false, false); // Dye my hair this color! AddButton(200, 380, 0xFA5, 0xFA7, 1, GumpButtonType.Reply, 0); // DYE HAIR for (int i = 0; i < m_Entries.Length; ++i) { AddLabel(180, 109 + (i * 22), m_Entries[i].HueStart - 1, m_Entries[i].Name); AddButton(257, 110 + (i * 22), 5224, 5224, 0, GumpButtonType.Page, i + 1); } for (int i = 0; i < m_Entries.Length; ++i) { ForeverHairDyeEntry e = m_Entries[i]; AddPage(i + 1); for (int j = 0; j < e.HueCount; ++j) { AddLabel(328 + ((j / 16) * 80), 102 + ((j % 16) * 17), e.HueStart + j - 1, "*****"); AddRadio(310 + ((j / 16) * 80), 102 + ((j % 16) * 17), 210, 211, false, (i * 100) + j); } } }