Exemplo n.º 1
0
        public DisguiseGump(Mobile from, DisguiseKit kit, bool startAtHair, bool used) : base(50, 50)
        {
            m_From = from;
            m_Kit  = kit;
            m_Used = used;

            from.CloseGump(typeof(DisguiseGump));

            AddPage(0);

            AddBackground(100, 10, 400, 385, 2600);

            // <center>THIEF DISGUISE KIT</center>
            AddHtmlLocalized(100, 25, 400, 35, 1011045, false, false);

            AddLabel(120, 290, 0, "Name:");
            AddBackground(155, 290, 150, 20, 0x2486);
            AddTextEntry(160, 290, 140, 20, 0, 0, "");


            AddButton(140, 353, 4005, 4007, 0, GumpButtonType.Reply, 0);
            AddHtmlLocalized(172, 355, 90, 35, 1011036, false, false);               // OKAY

            AddButton(257, 353, 4005, 4007, 1, GumpButtonType.Reply, 0);
            AddHtmlLocalized(289, 355, 90, 35, 1011046, false, false);               // APPLY

/* DYE button
 *                      AddButton( 367, 353, 4005, 4007, 2, GumpButtonType.Reply, 0 );
 *                      AddLabel( 400, 353, 0, "DYE" );
 */


            if (from.Female || from.Body.IsFemale)
            {
                DrawEntries(0, 1, -1, m_HairEntries, -1);
            }
            else if (startAtHair)
            {
                DrawEntries(0, 1, 2, m_HairEntries, 1011056);
                DrawEntries(1, 2, 1, m_BeardEntries, 1011059);
            }
            else
            {
                DrawEntries(1, 1, 2, m_BeardEntries, 1011059);
                DrawEntries(0, 2, 1, m_HairEntries, 1011056);
            }
        }
Exemplo n.º 2
0
        public DisguiseGump( Mobile from, DisguiseKit kit, bool startAtHair, bool used )
            : base(50, 50)
        {
            m_From = from;
            m_Kit = kit;
            m_Used = used;

            from.CloseGump( typeof( DisguiseGump ) );

            AddPage( 0 );

            AddBackground( 100, 10, 400, 420, 2600 );

            // <center>THIEF DISGUISE KIT</center>
            AddHtml( 100, 25, 400, 35, "<center>Disguise Kit</center>", false, false );

            AddHtml( 145, 355, 50, 35, "Alias:", false, false ); // OKAY
            AddTextField( 195, 353, 200, 20, 0 );

            AddButton( 140, 380, 4005, 4007, 0, GumpButtonType.Reply, 0 );
            AddHtmlLocalized( 172, 382, 90, 35, 1011036, false, false ); // OKAY

            AddButton( 257, 380, 4005, 4007, 1, GumpButtonType.Reply, 0 );
            AddHtmlLocalized( 289, 382, 90, 35, 1011046, false, false ); // APPLY

            if ( from.Female || from.Body.IsFemale )
            {
                DrawEntries( 0, 1, -1, m_HairEntries, -1 );
            }
            else if ( startAtHair )
            {
                DrawEntries( 0, 1, 2, m_HairEntries, 1011056 );
                DrawEntries( 1, 2, 1, m_BeardEntries, 1011059 );
            }
            else
            {
                DrawEntries( 1, 1, 2, m_BeardEntries, 1011059 );
                DrawEntries( 0, 2, 1, m_HairEntries, 1011056 );
            }
        }
        public DisguiseGump(Mobile from, DisguiseKit kit, bool startAtHair, bool used) : base(50, 50)
        {
            m_From = from;
            m_Kit  = kit;
            m_Used = used;

            from.CloseGump(typeof(DisguiseGump));

            AddPage(0);

            AddBackground(100, 10, 400, 420, 2600);

            // <center>THIEF DISGUISE KIT</center>
            AddHtml(100, 25, 400, 35, "<center>Disguise Kit</center>", false, false);

            AddHtml(145, 355, 50, 35, "Alias:", false, false);               // OKAY
            AddTextField(195, 353, 200, 20, 0);

            AddButton(140, 380, 4005, 4007, 0, GumpButtonType.Reply, 0);
            AddHtmlLocalized(172, 382, 90, 35, 1011036, false, false);               // OKAY

            AddButton(257, 380, 4005, 4007, 1, GumpButtonType.Reply, 0);
            AddHtmlLocalized(289, 382, 90, 35, 1011046, false, false);               // APPLY

            if (from.Female || from.Body.IsFemale)
            {
                DrawEntries(0, 1, -1, m_HairEntries, -1);
            }
            else if (startAtHair)
            {
                DrawEntries(0, 1, 2, m_HairEntries, 1011056);
                DrawEntries(1, 2, 1, m_BeardEntries, 1011059);
            }
            else
            {
                DrawEntries(1, 1, 2, m_BeardEntries, 1011059);
                DrawEntries(0, 2, 1, m_HairEntries, 1011056);
            }
        }