public PlayerSelectGump(Mobile callingPlayer, IPlayerSelect parentScript, ArrayList onlinePlayers, int requestedPage) : base(gumpOffsetX, gumpOffsetY) { currentPage = requestedPage; m_ParentScript = parentScript; callingPlayer.CloseGump(typeof(PlayerSelectGump)); m_OnlinePlayers = onlinePlayers; BuildCurrentGumpPage( ); }
public static void SelectOnlinePlayer(Mobile callingPlayer, IPlayerSelect parentScript, string searchString) { //Build the list of online players ArrayList onlinePlayers = BuildOnlineList(callingPlayer, searchString); if (onlinePlayers.Count == 0) { callingPlayer.SendMessage("No player online matches your request"); parentScript.OnPlayerSelectCanceled( ); return; } else if (onlinePlayers.Count == 1) { parentScript.OnPlayerSelected((PlayerMobile)onlinePlayers[0]); return; } callingPlayer.SendGump(new PlayerSelectGump(callingPlayer, parentScript, onlinePlayers)); }
public PlayerSelectGump(Mobile callingPlayer, IPlayerSelect parentScript, ArrayList onlinePlayers) : this(callingPlayer, parentScript, onlinePlayers, 0) { }
public static void SelectOnlinePlayer(Mobile callingPlayer, IPlayerSelect parentScript) { PlayerSelect.SelectOnlinePlayer(callingPlayer, parentScript, string.Empty); }