Пример #1
0
            public ToggleActivationGump(CrystalBallOfKnowledge ball)
                : base(150, 200)
            {
                m_Ball = ball;

                AddPage(0);

                AddBackground(0, 0, 300, 150, 0xA28);

                if (m_Ball.Active)
                {
                    AddHtmlLocalized(45, 20, 300, 35, 1011035, false, false); // Deactivate this item
                }
                else
                {
                    AddHtmlLocalized(45, 20, 300, 35, 1011034, false, false); // Activate this item
                }
                AddButton(40, 53, 0xFA5, 0xFA7, 2, GumpButtonType.Reply, 0);
                AddHtmlLocalized(80, 55, 65, 35, 1011036, false, false); // OKAY

                AddButton(150, 53, 0xFA5, 0xFA7, 1, GumpButtonType.Reply, 0);
                AddHtmlLocalized(190, 55, 100, 35, 1011012, false, false); // CANCEL
            }
Пример #2
0
            public ToggleActivationGump( CrystalBallOfKnowledge ball )
                : base(150, 200)
            {
                m_Ball = ball;

                AddPage( 0 );

                AddBackground( 0, 0, 300, 150, 0xA28 );

                if ( m_Ball.Active )
                    AddHtmlLocalized( 45, 20, 300, 35, 1011035, false, false ); // Deactivate this item
                else
                    AddHtmlLocalized( 45, 20, 300, 35, 1011034, false, false ); // Activate this item

                AddButton( 40, 53, 0xFA5, 0xFA7, 2, GumpButtonType.Reply, 0 );
                AddHtmlLocalized( 80, 55, 65, 35, 1011036, false, false ); // OKAY

                AddButton( 150, 53, 0xFA5, 0xFA7, 1, GumpButtonType.Reply, 0 );
                AddHtmlLocalized( 190, 55, 100, 35, 1011012, false, false ); // CANCEL
            }