public PromptGumpStub( Prompt prompt, Mobile to )
			: base( 0, 0 )
		{
			Serial senderSerial = prompt.Sender != null ? prompt.Sender.Serial : to.Serial;

			Serial = senderSerial;

			Intern( "TEXTENTRY" );
			Intern( senderSerial.Value.ToString() );
			Intern( to.Serial.Value.ToString() );
			Intern( prompt.TypeId.ToString() );
			Intern( prompt.MessageCliloc.ToString() ); // TODO: Is there a way to include args here?
			Intern( "1" ); // 0 = Ascii response, 1 = Unicode Response

			AddBackground( 50, 50, 540, 350, 0xA28 );

			AddPage( 0 );

			AddHtmlLocalized( 264, 80, 200, 24, 1062524, false, false );
			AddHtmlLocalized( 120, 108, 420, 48, 1062638, false, false );
			AddBackground( 100, 148, 440, 200, 0xDAC );
			AddTextEntryIntern( 120, 168, 400, 200, 0x0, 44, 0 );
			AddButton( 175, 355, 0x81A, 0x81B, 1, GumpButtonType.Reply, 0 );
			AddButton( 405, 355, 0x819, 0x818, 0, GumpButtonType.Reply, 0 );
		}
Beispiel #2
0
        public UnicodePrompt( Prompt prompt )
            : base(0xC2)
        {
            this.EnsureCapacity( 21 );

            m_Stream.Write( (int) prompt.Serial );
            m_Stream.Write( (int) prompt.Serial );
            m_Stream.Write( (int) 0 );
            m_Stream.Write( (int) 0 );
            m_Stream.Write( (short) 0 );
        }
        public UnicodePrompt(Prompt prompt, Mobile to)
            : base(0xC2)
        {
            this.EnsureCapacity(21);

            Serial senderSerial = prompt.Sender != null ? prompt.Sender.Serial : to.Serial;

            m_Stream.Write((int)senderSerial);
            m_Stream.Write((int)prompt.TypeId); //0x2C
            m_Stream.Write((int)0); // type
            m_Stream.Write((int)0); // language
            m_Stream.Write((short)0); // text
        }