Exemplo n.º 1
0
        public GenericQuestGump(int textCliloc, GenericQuestGumpButton buttons, GenericQuestGumpResponse onAccepted, GenericQuestGumpResponse onRefused)
            : base(75, 25)
        {
            m_OnAccept = onAccepted;
            m_OnCancel = onRefused;

            Disposable = false;
            Closable   = false;

            AddImageTiled(50, 20, 400, 400, 0x1404);
            AddImageTiled(83, 15, 350, 15, 0x280A);
            AddImageTiled(50, 29, 30, 390, 0x28DC);
            AddImageTiled(34, 140, 17, 279, 0x242F);
            AddImage(48, 135, 0x28AB);
            AddImage(-16, 285, 0x28A2);
            AddImage(0, 10, 0x28B5);
            AddImage(25, 0, 0x28B4);
            AddImageTiled(415, 29, 44, 390, 0xA2D);
            AddImageTiled(415, 29, 30, 390, 0x28DC);
            AddLabel(100, 50, 0x481, "");
            AddImage(370, 50, 0x589);
            AddImage(379, 60, 0x15E8);
            AddImage(425, 0, 0x28C9);
            AddImage(34, 419, 0x2842);
            AddImage(442, 419, 0x2840);
            AddImageTiled(51, 419, 392, 17, 0x2775);
            AddHtmlLocalized(130, 45, 270, 16, 1049010, 0x7FFF, false, false);               // Quest Offer
            AddHtmlLocalized(98, 156, 312, 180, textCliloc, 0x15F90, false, true);
            AddImage(90, 33, 0x232D);
            AddImageTiled(130, 65, 175, 1, 0x238D);

            if ((buttons & GenericQuestGumpButton.Accept) != 0)
            {
                AddButton(95, 395, 0x2EE0, 0x2EE2, 1, GumpButtonType.Reply, 0);
            }

            if ((buttons & GenericQuestGumpButton.Refuse) != 0)
            {
                AddButton(313, 395, 0x2EF2, 0x2EF4, 0, GumpButtonType.Reply, 0);
            }

            if ((buttons & GenericQuestGumpButton.Continue) != 0)
            {
                AddButton(95, 395, 0x2EE9, 0x2EEB, 1, GumpButtonType.Reply, 0);
            }

            if ((buttons & GenericQuestGumpButton.Close) != 0)
            {
                AddButton(95, 395, 0x2EE6, 0x2EE8, 1, GumpButtonType.Reply, 0);
            }
        }
Exemplo n.º 2
0
        public GenericQuestGump( int textCliloc, GenericQuestGumpButton buttons, GenericQuestGumpResponse onAccepted, GenericQuestGumpResponse onRefused )
            : base(75, 25)
        {
            m_OnAccept = onAccepted;
            m_OnCancel = onRefused;

            Disposable = false;
            Closable = false;

            AddImageTiled( 50, 20, 400, 400, 0x1404 );
            AddImageTiled( 83, 15, 350, 15, 0x280A );
            AddImageTiled( 50, 29, 30, 390, 0x28DC );
            AddImageTiled( 34, 140, 17, 279, 0x242F );
            AddImage( 48, 135, 0x28AB );
            AddImage( -16, 285, 0x28A2 );
            AddImage( 0, 10, 0x28B5 );
            AddImage( 25, 0, 0x28B4 );
            AddImageTiled( 415, 29, 44, 390, 0xA2D );
            AddImageTiled( 415, 29, 30, 390, 0x28DC );
            AddLabel( 100, 50, 0x481, "" );
            AddImage( 370, 50, 0x589 );
            AddImage( 379, 60, 0x15E8 );
            AddImage( 425, 0, 0x28C9 );
            AddImage( 34, 419, 0x2842 );
            AddImage( 442, 419, 0x2840 );
            AddImageTiled( 51, 419, 392, 17, 0x2775 );
            AddHtmlLocalized( 130, 45, 270, 16, 1049010, 0x7FFF, false, false ); // Quest Offer
            AddHtmlLocalized( 98, 156, 312, 180, textCliloc, 0x15F90, false, true );
            AddImage( 90, 33, 0x232D );
            AddImageTiled( 130, 65, 175, 1, 0x238D );

            if ( ( buttons & GenericQuestGumpButton.Accept ) != 0 )
                AddButton( 95, 395, 0x2EE0, 0x2EE2, 1, GumpButtonType.Reply, 0 );

            if ( ( buttons & GenericQuestGumpButton.Refuse ) != 0 )
                AddButton( 313, 395, 0x2EF2, 0x2EF4, 0, GumpButtonType.Reply, 0 );

            if ( ( buttons & GenericQuestGumpButton.Continue ) != 0 )
                AddButton( 95, 395, 0x2EE9, 0x2EEB, 1, GumpButtonType.Reply, 0 );

            if ( ( buttons & GenericQuestGumpButton.Close ) != 0 )
                AddButton( 95, 395, 0x2EE6, 0x2EE8, 1, GumpButtonType.Reply, 0 );
        }
Exemplo n.º 3
0
 public GenericQuestGump(int textCliloc, GenericQuestGumpButton buttons, GenericQuestGumpResponse onAccepted)
     : this(textCliloc, buttons, onAccepted, null)
 {
 }
Exemplo n.º 4
0
 public GenericQuestGump( int textCliloc, GenericQuestGumpButton buttons, GenericQuestGumpResponse onAccepted )
     : this(textCliloc, buttons, onAccepted, null)
 {
 }