本文整理汇总了C#中Server.Network.NetState.LaunchBrowser方法的典型用法代码示例。如果您正苦于以下问题:C# NetState.LaunchBrowser方法的具体用法?C# NetState.LaunchBrowser怎么用?C# NetState.LaunchBrowser使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Server.Network.NetState
的用法示例。
在下文中一共展示了NetState.LaunchBrowser方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnResponse
public override void OnResponse( NetState sender, RelayInfo info )
{
switch ( info.ButtonID )
{
case 1: // RunUO.com
{
sender.LaunchBrowser( "http://www.RunUO.com" );
break;
}
case 2: // List of skills
{
string[] strings = Enum.GetNames( typeof( SkillName ) );
Array.Sort( strings );
StringBuilder sb = new StringBuilder();
if ( strings.Length > 0 )
sb.Append( strings[0] );
for ( int i = 1; i < strings.Length; ++i )
{
string v = strings[i];
if ( (sb.Length + 1 + v.Length) >= 256 )
{
sender.Send( new AsciiMessage( Server.Serial.MinusOne, -1, MessageType.Label, 0x35, 3, "System", sb.ToString() ) );
sb = new StringBuilder();
sb.Append( v );
}
else
{
sb.Append( ' ' );
sb.Append( v );
}
}
if ( sb.Length > 0 )
{
sender.Send( new AsciiMessage( Server.Serial.MinusOne, -1, MessageType.Label, 0x35, 3, "System", sb.ToString() ) );
}
break;
}
case 3: // Command list
{
sender.Mobile.SendAsciiMessage( 0x482, "The command prefix is \"{0}\"", CommandSystem.Prefix );
CommandHandlers.Help_OnCommand( new CommandEventArgs( sender.Mobile, "help", "", new string[0] ) );
break;
}
}
}
示例2: OnResponse
public override void OnResponse(NetState sender, RelayInfo info)
{
Mobile from = sender.Mobile;
switch (info.ButtonID)
{
case (int)Buttons.sewb: // Your Servers Website
{
sender.LaunchBrowser("http://www.uo.com");//.............................Web Address 1
break;
}
case (int)Buttons.cclb:
{
sender.LaunchBrowser("http://www.runuo.com");//.............................Web Address 2
break;
}
case (int)Buttons.spgb:
{
sender.LaunchBrowser("http://uo.stratics.com");////...........................Web Address 3
break;
}
case (int)Buttons.pffb:
{
sender.LaunchBrowser("http://www.uoart.com");//.............................Web Address 4
break;
}
case (int)Buttons.rmcb:
{
sender.LaunchBrowser("http://www.lynn.edu");//.............................Web Address 5
break;
}
case (int)Buttons.canc:
{
m_From.CloseGump(typeof(WebStoneGump));
break;
}
}
}
示例3: OnResponse
public override void OnResponse( NetState sender, RelayInfo info )
{
switch ( info.ButtonID )
{
case 1: // #1 Site's Url
{
sender.LaunchBrowser( "http://www.covchampionofvirtues.com" );
break;
}
case 2: // #2 Site's url
{
sender.LaunchBrowser( "http://www.covchampionofvirtues.com/forum/index.php" );
break;
}
case 3: // #3 Site's url
{
sender.LaunchBrowser("http://covchampionofvirtues.com/vote.htm");//("http://www.xtremetop100.com/in.php?site=1132278090");
break;
}
case 4: // #4 Site's Url
{
sender.LaunchBrowser("http://www.uogateway.com/shard.php?id=44&act=vote");
break;
}
case 5: // #5 Site's url
{
sender.LaunchBrowser("http://www.runuo.com/razor/");
break;
}
case 6: // #6 Site's url
{
sender.LaunchBrowser("http://guildportal.com/Guild.aspx?GuildID=342833&TabID=2870066");//"http://www.uoam.net/"
break;
}
}
}
示例4: OnResponse
public override void OnResponse(NetState sender, RelayInfo info)
{
Mobile m = sender.Mobile;
{
switch (info.ButtonID)
{
case (int)Buttons.WebsiteButton1:
sender.LaunchBrowser("http://in-uo.net/info/2011-11-06-11-05-03/regular--commands");//......Command List Url
break;
case (int)Buttons.WebsiteButton2:
sender.LaunchBrowser("http://in-uo.net/info/server-rules");//......Shard Rules Url
break;
case (int)Buttons.WebsiteButton3:
sender.LaunchBrowser("http://in-uo.net/forums");//......Forum Url
break;
case (int)Buttons.WebsiteButton4:
sender.LaunchBrowser("http://in-uo.net/donate");//......Shard Donation Store Url
break;
case (int)Buttons.WebsiteButton5:
sender.LaunchBrowser("http://in-uo.net/changelogs/2011-07-28-18-05-48");//......Shard Updates Url
break;
case (int)Buttons.WebsiteButton6:
sender.LaunchBrowser("http://in-uo.net/join");//how to patch
break;
}
}
}
示例5: OnResponse
public override void OnResponse( NetState sender, RelayInfo info )
{
switch ( info.ButtonID )
{
case 1: // #1 Site's Url
{
sender.LaunchBrowser( "http://www.defianceuo.com" );
break;
}
case 2: // #2 Site's url
{
sender.LaunchBrowser( "http://www.defianceuo.com/forums" );
break;
}
case 3: // #3 Site's url
{
sender.LaunchBrowser( "http://www.defianceuo.com/donate" );
break;
}
case 4: // #4 Site's Url
{
sender.LaunchBrowser( "http://accounts.defianceuo.com/pwchange.php" );
break;
}
case 5: // #5 Site's url
{
sender.LaunchBrowser( "http://www.defianceuo.com/download.php" );
break;
}
case 6: // #6 Site's url
{
sender.LaunchBrowser("http://uo.stratics.com/");
break;
}
}
}
示例6: OnResponse
public override void OnResponse( NetState sender, RelayInfo info )
{
Mobile from = sender.Mobile;
switch ( info.ButtonID )
{
case 1: // #1 Site's Url
{
from.CloseGump(typeof(WebstoneGump));
from.SendGump( new WebstoneGump() );
from.SendSound (1224);// 1224= click noise
sender.LaunchBrowser( "http://DragonKnights.homeip.net" );
break;
}
case 2: // #2 Site's url
{
from.CloseGump(typeof(WebstoneGump));
from.SendGump( new WebstoneGump() );
from.SendSound (1224);// 1224= click noise
sender.LaunchBrowser( "http://dragonknights.kicks-ass.net/e107_plugins/forum/forum.php" );
break;
}
case 3: // #3 Site's url
{
AuthorStatistics ast = ForumCore.GetAuthorStatistics( from.Serial.Value );
if( ast.Banned )
{
from.SendMessage( "You have been banned from this forum!" );
return;
}
ForumCore.Threads.Sort( new DateSort() );
from.CloseGump( typeof( ForumGump ) );
from.SendSound (1224);// 1224= click noise
from.SendGump( new ForumGump( from, 0 ) );
break;
}
case 4: // #4 Site's Url
{
from.CloseGump(typeof(WebstoneGump));
from.SendGump( new WebstoneGump() );
from.SendSound (1224);// 1224= click noise
sender.LaunchBrowser( "http://uo.stratics.com/" );
break;
}
case 5: // #5 Site's url
{
from.CloseGump(typeof(WebstoneGump));
from.SendGump( new WebstoneGump() );
from.SendSound (1224);// 1224= click noise
sender.LaunchBrowser( "http://dragonknights.kicks-ass.net/download.php?view.3" );
break;
}
case 6: // #6 Site's url
{
from.CloseGump(typeof(WebstoneGump));
from.SendGump( new WebstoneGump() );
from.SendSound (1224);// 1224= click noise
sender.LaunchBrowser( "http://dragonknights.kicks-ass.net/download.php?view.1" );
//sender.LaunchBrowser( "http://aaaservices.homeip.net/TeamSpeak.htm" );
break;
}
case 7: // #7 Site's url
{
from.CloseGump(typeof(WebstoneGump));
from.SendGump( new WebstoneGump() );
from.SendSound (1224);// 1224= click noise
sender.LaunchBrowser( "http://aaaservices.homeip.net/UO/status.html" );
break;
}
case 8: // #8 Site's url
{
from.CloseGump(typeof(WebstoneGump));
from.SendGump( new WebstoneGump() );
from.SendSound (1224);// 1224= click noise
sender.LaunchBrowser( "http://www.xtremetop100.com/in.php?site=1132300022" );
sender.LaunchBrowser( "http://www.gamesites200.com/ultimaonline/in.php?id=1874" );
break;
}
case 9: // #9 Site's url
{
from.CloseGump(typeof(WebstoneGump));
from.SendGump( new WebstoneGump() );
from.SendSound (1224);// 1224= click noise
sender.LaunchBrowser( "http://aaaservices.homeip.net/index.html" );
break;
}
case 0: // Close button
{
from.SendSound (1224);// 1224= click noise
from.CloseGump(typeof(WebstoneGump));
from.SendSound (240);
break;
}
// case 10: // #10 Site's url
//.........这里部分代码省略.........