Esempio n. 1
0
public void AddPageButton( int x, int y, int buttonID, string text, ClassicRacePage page, params ClassicRacePage[] subpage ) 
{ 
bool seleccionado = ( m_Page == page ); 

for ( int i = 0; !seleccionado && i < subpage.Length; ++i ) 
seleccionado = ( m_Page == subpage[i] ); 

AddButton( x, y - 1, seleccionado ? 4006 : 4005, 4007, buttonID, GumpButtonType.Reply, 0 ); 
AddHtml( x + 35, y, 200, 20, Color( text, seleccionado ? Azul : Blanco ), false, false ); 
} 
Esempio n. 2
0
        public void AddPageButton(int x, int y, int buttonID, string text, ClassicRacePage page, params ClassicRacePage[] subpage)
        {
            bool seleccionado = (m_Page == page);

            for (int i = 0; !seleccionado && i < subpage.Length; ++i)
            {
                seleccionado = (m_Page == subpage[i]);
            }

            AddButton(x, y - 1, seleccionado ? 4006 : 4005, 4007, buttonID, GumpButtonType.Reply, 0);
            AddHtml(x + 35, y, 200, 20, Color(text, seleccionado ? Azul : Blanco), false, false);
        }
Esempio n. 3
0
public ClassicRaceGump ( Mobile from, ClassicRacePage page) : base ( 40, 45 ) 
{ 
from.CloseGump( typeof( ClassicRaceGump ) ); 

m_From = from; 
m_Page = page; 
Closable = true; 
Dragable = true; 
from.Frozen = false; 

AddPage( 0 ); 
AddBackground( 0, 0, 531, 360, 5054 ); 
AddAlphaRegion( 10, 10, 511, 340 ); 

 
AddImageTiled( 11, 37, 149, 19, 0x52 ); 
AddImageTiled( 11, 37, 148, 18, 0xBBC ); 
AddLabel( 35, 37, 0, "Choose Your title" );  

 
AddImageTiled( 11, 11, 509, 21, 0x52 ); 
AddImageTiled( 11, 11, 507, 19, 0xBBC ); 
AddLabel( 165, 11, 0, "Choose your destiny" );
 
AddImageTiled( 10, 32, 511, 5, 5058 ); 
AddImageTiled( 10, 287, 511, 5, 5058 ); 
AddImageTiled( 160, 37, 5, 250, 5058 ); 

AddPageButton( 40, 75, GetButtonID( 0, 0 ), "Info", ClassicRacePage.Info );  
AddPageButton( 40, 110, GetButtonID( 0, 1 ), "Collector", ClassicRacePage.Collector);  
AddPageButton( 40, 135, GetButtonID( 0, 2 ), "Trainer", ClassicRacePage.Trainer);  
AddPageButton( 40, 160, GetButtonID( 0, 3 ), "Murderer", ClassicRacePage.Murderer);  
AddPageButton( 40, 185, GetButtonID( 0, 4 ), "Orc", ClassicRacePage.Orc);  
AddPageButton( 40, 210, GetButtonID( 0, 5 ), "Deamons", ClassicRacePage.Deamons);  
AddPageButton( 40, 235, GetButtonID( 0, 6 ), "Gargoyles", ClassicRacePage.Gargoyles); 
	AddButton( 490, 11, 0xFB1, 0xFB3, 7, GumpButtonType.Reply, 0 ); 
	AddLabel( 450, 11, 0x34, "Close" ); 


switch ( page ) 
{ 
case ClassicRacePage.Info: 
{ 
AddHtml( 172, 40, 337, 245, String.Format("Perilous"), true, false );  
break; 
} 

case ClassicRacePage.Collector: 
{ 
AddHtml( 172, 40, 337, 245, String.Format("<center>* Collector *</center>\nThe Collectors are out for rares.\n"), true, true );
AddPageButton( 50, 317, GetButtonID( 1, 0 ), "Back To List of titles/Classes", ClassicRacePage.Info); 
AddButtonLabeled( 300, 317, GetButtonID( 1, 1 ), "I want To be an Collector" );  
break; 
} 

case ClassicRacePage.Trainer: 
{ 
AddHtml( 172, 40, 337, 245, String.Format("<center>* Trainer *</center>\nTrainers work hard on skills for them and there pets .\n"), true, true ); 
AddPageButton( 50, 317, GetButtonID( 1, 0 ), "Back To The List of titles/Classes", ClassicRacePage.Info);  
AddButtonLabeled( 300, 317, GetButtonID( 1, 2 ), "I want to be a Trainer." ); 
break; 
} 

case ClassicRacePage.Murderer: 
{ 
AddHtml( 172, 40, 337, 245, String.Format("<center>* Murderer *</center>\nThe Murderers are vial creatures who roam the earth to kill the weak...\n "), true, true );  
AddPageButton( 50, 317, GetButtonID( 1, 0 ), "Back To the List of titles/Classes", ClassicRacePage.Info); 
AddButtonLabeled( 300, 317, GetButtonID( 1, 3 ), "I Want To Be A Murderer." );  
break; 
} 

case ClassicRacePage.Orc: 
{ 
AddHtml( 172, 40, 337, 245, String.Format("<center>* Orc *</center>\nOrcs are a race of there own with there own language, color, and camps...\n "), true, true );  
AddPageButton( 50, 317, GetButtonID( 1, 0 ), "Back To The List of titles/Classes", ClassicRacePage.Info); 
AddButtonLabeled( 300, 317, GetButtonID( 1, 4 ), "I Want To Be A Orc" );  
break; 
} 

case ClassicRacePage.Deamons: 
{ 
AddHtml( 172, 40, 337, 245, String.Format("<center>* Deamons *</center>\nTo be a Deamons is to be at ease with death. Deamons are pure evil all that exist between them and hell is life. With no fear to cross the barrier they are almost defeatless... and very erie, the discoverers of astronomy and the zodiacs... They combine the art of natural force to suck your soul... beware... holy light does sufficient damage.\n"), true, true );  
AddPageButton( 50, 317, GetButtonID( 1, 0 ), "Back To The List of titles/Classes", ClassicRacePage.Info); 
AddButtonLabeled( 300, 317, GetButtonID( 1, 5 ), "I Want To Be A Deamons" );  
break; 
} 

case ClassicRacePage.Gargoyles: 
{ 
AddHtml( 172, 40, 337, 245, String.Format("<center>* Gargoyles *</center>\nGargoyless are the scum of the earth and cares about only themselves hunting humans in all forms ...\n"), true, true ); 
AddPageButton( 50, 317, GetButtonID( 1, 0 ), "Back To The List of titles/Classes", ClassicRacePage.Info);  
AddButtonLabeled( 300, 317, GetButtonID( 1, 6 ), "I Want To Be A Gargoyles" ); 
break; 
} 



} 

} 
Esempio n. 4
0
        public ClassicRaceGump(Mobile from, ClassicRacePage page) : base(40, 45)
        {
            from.CloseGump(typeof(ClassicRaceGump));

            m_From      = from;
            m_Page      = page;
            Closable    = true;
            Dragable    = true;
            from.Frozen = false;

            AddPage(0);
            AddBackground(0, 0, 531, 360, 5054);
            AddAlphaRegion(10, 10, 511, 340);


            AddImageTiled(11, 37, 149, 19, 0x52);
            AddImageTiled(11, 37, 148, 18, 0xBBC);
            AddLabel(35, 37, 0, "Choose Your title");


            AddImageTiled(11, 11, 509, 21, 0x52);
            AddImageTiled(11, 11, 507, 19, 0xBBC);
            AddLabel(165, 11, 0, "Choose your destiny");

            AddImageTiled(10, 32, 511, 5, 5058);
            AddImageTiled(10, 287, 511, 5, 5058);
            AddImageTiled(160, 37, 5, 250, 5058);

            AddPageButton(40, 75, GetButtonID(0, 0), "Info", ClassicRacePage.Info);
            AddPageButton(40, 110, GetButtonID(0, 1), "Collector", ClassicRacePage.Collector);
            AddPageButton(40, 135, GetButtonID(0, 2), "Trainer", ClassicRacePage.Trainer);
            AddPageButton(40, 160, GetButtonID(0, 3), "Murderer", ClassicRacePage.Murderer);
            AddPageButton(40, 185, GetButtonID(0, 4), "Orc", ClassicRacePage.Orc);
            AddPageButton(40, 210, GetButtonID(0, 5), "Deamons", ClassicRacePage.Deamons);
            AddPageButton(40, 235, GetButtonID(0, 6), "Gargoyles", ClassicRacePage.Gargoyles);
            AddButton(490, 11, 0xFB1, 0xFB3, 7, GumpButtonType.Reply, 0);
            AddLabel(450, 11, 0x34, "Close");


            switch (page)
            {
            case ClassicRacePage.Info:
            {
                AddHtml(172, 40, 337, 245, String.Format("Perilous"), true, false);
                break;
            }

            case ClassicRacePage.Collector:
            {
                AddHtml(172, 40, 337, 245, String.Format("<center>* Collector *</center>\nThe Collectors are out for rares.\n"), true, true);
                AddPageButton(50, 317, GetButtonID(1, 0), "Back To List of titles/Classes", ClassicRacePage.Info);
                AddButtonLabeled(300, 317, GetButtonID(1, 1), "I want To be an Collector");
                break;
            }

            case ClassicRacePage.Trainer:
            {
                AddHtml(172, 40, 337, 245, String.Format("<center>* Trainer *</center>\nTrainers work hard on skills for them and there pets .\n"), true, true);
                AddPageButton(50, 317, GetButtonID(1, 0), "Back To The List of titles/Classes", ClassicRacePage.Info);
                AddButtonLabeled(300, 317, GetButtonID(1, 2), "I want to be a Trainer.");
                break;
            }

            case ClassicRacePage.Murderer:
            {
                AddHtml(172, 40, 337, 245, String.Format("<center>* Murderer *</center>\nThe Murderers are vial creatures who roam the earth to kill the weak...\n "), true, true);
                AddPageButton(50, 317, GetButtonID(1, 0), "Back To the List of titles/Classes", ClassicRacePage.Info);
                AddButtonLabeled(300, 317, GetButtonID(1, 3), "I Want To Be A Murderer.");
                break;
            }

            case ClassicRacePage.Orc:
            {
                AddHtml(172, 40, 337, 245, String.Format("<center>* Orc *</center>\nOrcs are a race of there own with there own language, color, and camps...\n "), true, true);
                AddPageButton(50, 317, GetButtonID(1, 0), "Back To The List of titles/Classes", ClassicRacePage.Info);
                AddButtonLabeled(300, 317, GetButtonID(1, 4), "I Want To Be A Orc");
                break;
            }

            case ClassicRacePage.Deamons:
            {
                AddHtml(172, 40, 337, 245, String.Format("<center>* Deamons *</center>\nTo be a Deamons is to be at ease with death. Deamons are pure evil all that exist between them and hell is life. With no fear to cross the barrier they are almost defeatless... and very erie, the discoverers of astronomy and the zodiacs... They combine the art of natural force to suck your soul... beware... holy light does sufficient damage.\n"), true, true);
                AddPageButton(50, 317, GetButtonID(1, 0), "Back To The List of titles/Classes", ClassicRacePage.Info);
                AddButtonLabeled(300, 317, GetButtonID(1, 5), "I Want To Be A Deamons");
                break;
            }

            case ClassicRacePage.Gargoyles:
            {
                AddHtml(172, 40, 337, 245, String.Format("<center>* Gargoyles *</center>\nGargoyless are the scum of the earth and cares about only themselves hunting humans in all forms ...\n"), true, true);
                AddPageButton(50, 317, GetButtonID(1, 0), "Back To The List of titles/Classes", ClassicRacePage.Info);
                AddButtonLabeled(300, 317, GetButtonID(1, 6), "I Want To Be A Gargoyles");
                break;
            }
            }
        }