public HairDyeGump(HairDye dye) : base(50, 50) { m_HairDye = dye; AddPage(0); AddBackground(100, 10, 350, 355, 2600); AddBackground(120, 54, 110, 270, 5100); AddHtmlLocalized(70, 25, 400, 35, 1011013, false, false); // <center>Hair Color Selection Menu</center> AddButton(149, 328, 4005, 4007, 1, GumpButtonType.Reply, 0); AddHtmlLocalized(185, 329, 250, 35, 1011014, false, false); // Dye my hair this color! for (int i = 0; i < m_Entries.Length; ++i) { AddLabel(130, 59 + (i * 22), m_Entries[i].HueStart - 1, m_Entries[i].Name); AddButton(207, 60 + (i * 22), 5224, 5224, 0, GumpButtonType.Page, i + 1); } for (int i = 0; i < m_Entries.Length; ++i) { HairDyeEntry e = m_Entries[i]; AddPage(i + 1); for (int j = 0; j < e.HueCount; ++j) { AddLabel(278 + ((j / 16) * 80), 52 + ((j % 16) * 17), e.HueStart + j - 1, "*****"); AddRadio(260 + ((j / 16) * 80), 52 + ((j % 16) * 17), 210, 211, false, (i * 100) + j); } } }
public HairDyeGump( HairDye dye ) : base(50, 50) { m_HairDye = dye; AddPage( 0 ); AddBackground( 100, 10, 350, 355, 2600 ); AddBackground( 120, 54, 110, 270, 5100 ); AddHtmlLocalized( 70, 25, 400, 35, 1011013, false, false ); // <center>Hair Color Selection Menu</center> AddButton( 149, 328, 4005, 4007, 1, GumpButtonType.Reply, 0 ); AddHtmlLocalized( 185, 329, 250, 35, 1011014, false, false ); // Dye my hair this color! for ( int i = 0; i < m_Entries.Length; ++i ) { AddLabel( 130, 59 + ( i * 22 ), m_Entries[i].HueStart - 1, m_Entries[i].Name ); AddButton( 207, 60 + ( i * 22 ), 5224, 5224, 0, GumpButtonType.Page, i + 1 ); } for ( int i = 0; i < m_Entries.Length; ++i ) { HairDyeEntry e = m_Entries[i]; AddPage( i + 1 ); for ( int j = 0; j < e.HueCount; ++j ) { AddLabel( 278 + ( ( j / 16 ) * 80 ), 52 + ( ( j % 16 ) * 17 ), e.HueStart + j - 1, "*****" ); AddRadio( 260 + ( ( j / 16 ) * 80 ), 52 + ( ( j % 16 ) * 17 ), 210, 211, false, ( i * 100 ) + j ); } } }
public EchantillonGump(Mobile m, int hue, HairDye Dye) : base(50, 50) { m_HairDye = Dye; Hue = hue; AddBackground(0, 0, 300, 380, 5054); //AddItem(20, 300, target.ItemID, hue); AddBackground(20, 20, 250, 250, 0xa3c); AddLabel(95, 305, 0, "Utiliser cette couleur"); AddButton(235, 304, 4005, 4007, 1, GumpButtonType.Reply, 0); if (m.Female) { AddImage(30, 30, 0xD); if (m.HairItemID > 0) { AddImage(30, 30, TileData.ItemTable[m.HairItemID].Animation + 60000, hue); } if (m.FacialHairItemID > 0) { AddImage(30, 30, TileData.ItemTable[m.FacialHairItemID].Animation + 60000, hue); } } else { AddImage(30, 30, 0xC); if (m.HairItemID > 0) { AddImage(30, 30, TileData.ItemTable[m.HairItemID].Animation + 50000, hue); } if (m.FacialHairItemID > 0) { AddImage(30, 30, TileData.ItemTable[m.FacialHairItemID].Animation + 50000, hue); } } }
public HairDyeGump(HairDye dye) : base(50, 50) { m_HairDye = dye; AddPage(0); AddBackground(100, 10, 350, 355, 2600); AddBackground(120, 54, 110, 270, 5100); AddHtml(70, 25, 400, 35, "<center>Menu de la sélection de la couleur des cheveux</center>", false, false); // <center>Hair Color Selection Menu</center> AddButton(119, 328, 4005, 4007, 2, GumpButtonType.Reply, 0); AddHtml(155, 329, 250, 35, "Tester", false, false); AddButton(219, 328, 4005, 4007, 1, GumpButtonType.Reply, 0); AddHtml(255, 329, 250, 35, "Teindre mes cheveux !", false, false); for (int i = 0; i < m_Entries.Length; ++i) { AddLabel(130, 59 + (i * 22), m_Entries[i].HueStart - 1, m_Entries[i].Name); AddButton(207, 60 + (i * 22), 5224, 5224, 0, GumpButtonType.Page, i + 1); } for (int i = 0; i < m_Entries.Length; ++i) { HairDyeEntry e = m_Entries[i]; AddPage(i + 1); for (int j = 0; j < e.HueCount; ++j) { AddLabel(278 + ((j / 16) * 80), 52 + ((j % 16) * 17), e.HueStart + j - 1, "*****"); AddRadio(260 + ((j / 16) * 80), 52 + ((j % 16) * 17), 210, 211, false, (i * 100) + j); } } }