Exemplo n.º 1
0
        public epitaphgump(Mobile owner, GraveMarker marker, int index) : base(25, 25)
        {
            owner.CloseGump(typeof(epitaphgump));

            //bool initialState = false;
            string text;

            m_Owner  = owner;
            m_Marker = marker;
            m_index  = index;

            Closable   = true;
            Disposable = true;
            Dragable   = true;
            Resizable  = false;

            AddPage(0);

            AddImage(0, 0, 0x66);

            if (index > -1)
            {
                text = epitaphs[index];
            }
            else
            {
                text = marker.Epitaph;
            }

            text = "<center>" + text + "</center>";
            AddHtml(49, 63, 135, 107, text, false, false);

            if (owner.AccessLevel > AccessLevel.Player)
            {
                AddButton(87, 175, 0x995, 0x996, 1, GumpButtonType.Reply, 0);                   // Cancel
                AddButton(92, 200, 0x992, 0x993, 2, GumpButtonType.Reply, 0);                   // Okay
                AddButton(135, 247, 0x9CD, 0x9CD, 3, GumpButtonType.Reply, 0);                  // Next
                AddButton(60, 247, 0x9CC, 0x9CC, 4, GumpButtonType.Reply, 0);                   // Previous
            }
        }
Exemplo n.º 2
0
		public epitaphgump( Mobile owner, GraveMarker marker, int index ) : base( 25, 25 )
		{
			owner.CloseGump( typeof( epitaphgump ) );

			//bool initialState = false;
			string text;

			m_Owner = owner;
			m_Marker = marker;
			m_index = index;

			Closable = true;
			Disposable = true;
			Dragable = true;
			Resizable = false;

			AddPage( 0 );

			AddImage( 0, 0, 0x66 );

			if( index > -1 ) 
				text = epitaphs[index];
			else 
				text = marker.Epitaph;

			text = "<center>" + text + "</center>";
			AddHtml( 49, 63, 135, 107, text, false, false );
			
			if( owner.AccessLevel > AccessLevel.Player )
			{
				AddButton( 87, 175, 0x995, 0x996, 1, GumpButtonType.Reply, 0 ); // Cancel
				AddButton( 92, 200, 0x992, 0x993, 2, GumpButtonType.Reply, 0 ); // Okay
				AddButton( 135, 247, 0x9CD, 0x9CD, 3, GumpButtonType.Reply, 0 ); // Next
				AddButton( 60, 247, 0x9CC, 0x9CC, 4, GumpButtonType.Reply, 0 ); // Previous
			}
		}
Exemplo n.º 3
0
		public epitaphgump( Mobile owner, GraveMarker marker ) : this( owner, marker, -1 )
		{
		}
Exemplo n.º 4
0
 public EpitaphGump(Mobile owner, GraveMarker marker) : this(owner, marker, marker.EpitaphIndex)
 {
 }
Exemplo n.º 5
0
		public EpitaphGump( Mobile owner, GraveMarker marker ) : this( owner, marker, marker.EpitaphIndex )
		{
		}
Exemplo n.º 6
0
 public epitaphgump(Mobile owner, GraveMarker marker) : this(owner, marker, -1)
 {
 }