public StatDyeTubGump( StatDyeTub tub ) : base( 50,50 ) { m_Tub = tub; HueList[] checkLists; checkLists = HueList.HueLists; m_Lists = new HueList[checkLists.Length]; for ( int i = 0; i < m_Lists.Length; ++i ) m_Lists[i] = checkLists[i]; AddPage( 0 ); AddBackground( 0, 0, 450, 450, 5054 ); // Outer gump border AddBackground( 10, 10, 430, 430, 3000 ); // Gump background AddButton( 20, 400, 0xFA5, 0xFA7, 1, GumpButtonType.Reply, 0 ); AddLabel( 55, 400, 0x00, "OKAY" ); AddButton( 200, 400, 0xFA5, 0xFA7, 2, GumpButtonType.Reply, 0 ); AddLabel( 235, 400, 0x00, "DEFAULT" ); for ( int i = 0; i < checkLists.Length; ++i ) { AddButton( 30, 85 + (i * 25), 0x1468, 0x1468, 0, GumpButtonType.Page, Array.IndexOf( m_Lists, checkLists[i] ) + 1 ); AddLabel( 55, 85 + (i * 25), 0, checkLists[i].HueGroup ); } for ( int i = 0; i < m_Lists.Length; ++i ) RenderPage( i, Array.IndexOf( checkLists, m_Lists[i] ) ); }
public InternalTarget( StatDyeTub tub ) : base( 1, false, TargetFlags.None ) { m_STub = tub; }