private void RemovePlaceHolders(PRoCon.Controls.ControlsEx.ListViewNF lsvList) { for (int i = 0; i < lsvList.Items.Count; i++) { if (String.Compare(lsvList.Items[i].Name, String.Empty) == 0) { lsvList.Items[i].Remove(); i--; } } this.m_blPlaceHoldersDrawn = false; //this.ArrangePlayers(); }
private void StatsLinkNameUrl_ItemRemoved(int iIndex, PRoCon.Core.Options.StatsLinkNameUrl item) { for (int i = 0; i < this.lsvStatsLinksList.Items.Count; i++) { if (this.lsvStatsLinksList.Items[i].Tag == item) { this.lsvStatsLinksList.Items.RemoveAt(i); i--; } } }
private ListViewItem CreatePlaceHolder(PRoCon.Controls.ControlsEx.ListViewNF lsvList, int iTeamID) { ListViewItem lviPlaceHolder = new ListViewItem("."); lviPlaceHolder.ForeColor = SystemColors.WindowText; lviPlaceHolder.UseItemStyleForSubItems = true; AdditionalPlayerInfo sapiInfo = new AdditionalPlayerInfo(); sapiInfo.m_strResolvedHostName = String.Empty; sapiInfo.m_pbInfo = null; sapiInfo.m_cpiPlayer = new CPlayerInfo("", String.Empty, iTeamID, 0); lviPlaceHolder.Tag = sapiInfo; lviPlaceHolder.Group = lsvList.Groups[iTeamID]; return lviPlaceHolder; }
private void m_praApplication_HttpServerOffline(PRoCon.Core.HttpServer.HttpWebServer sender) { this.pnlHttpServerSettings.Enabled = true; this.pnlHttpServerTester.Visible = false; this.lnkStartStopHttpServer.Text = this.m_praApplication.CurrentLanguage.GetLocalized("frmOptions.lnkStartStopHttpServer.Start"); this.lblHttpServerServerStatus.Text = this.m_praApplication.CurrentLanguage.GetLocalized("frmOptions.lblHttpServerServerStatus.Offline"); this.lblHttpServerServerStatus.ForeColor = Color.Maroon; this.picHttpServerServerStatus.Image = this.m_frmParent.picLayerOffline.Image; }
private void StatsLinkNameUrl_ItemAdded(int iIndex, PRoCon.Core.Options.StatsLinkNameUrl item) { ListViewItem lsiStatsLinksList = new ListViewItem(item.LinkName); lsiStatsLinksList.Tag = item; lsiStatsLinksList.SubItems.Add(new ListViewItem.ListViewSubItem(lsiStatsLinksList, item.LinkUrl)); this.lsvStatsLinksList.Items.Add(lsiStatsLinksList); this.txtStatsLinkName.Clear(); this.txtStatsLinkUrl.Clear(); this.txtStatsLinkName.Focus(); }
private void MapZones_MapZoneAdded(PRoCon.Core.Battlemap.MapZoneDrawing item) { if (this.IsLoggedIn == true && this.m_blEventsEnabled == true && this.Game != null) { List<string> packet = new List<string>() { "procon.battlemap.onZoneCreated", item.UID, item.LevelFileName, item.ZonePolygon.Length.ToString() }; packet.AddRange(Point3D.ToStringList(item.ZonePolygon)); this.Game.SendRequest(packet); //this.send(new Packet(true, false, this.AcquireSequenceNumber, packet)); } }
private void MapZones_MapZoneChanged(PRoCon.Core.Battlemap.MapZoneDrawing item) { if (this.IsLoggedIn == true && this.EventsEnabled == true && this.PacketDispatcher != null) { List<String> packet = new List<String>() { "procon.battlemap.onZoneModified", item.UID, item.Tags.ToString(), item.ZonePolygon.Length.ToString(CultureInfo.InvariantCulture) }; packet.AddRange(Point3D.ToStringList(item.ZonePolygon)); this.PacketDispatcher.SendRequest(packet); //this.send(new Packet(true, false, this.AcquireSequenceNumber, packet)); } }
private void MapGeometry_MapZoneTrespassed(CPlayerInfo cpiSoldier, PRoCon.Core.Battlemap.ZoneAction action, PRoCon.Core.Battlemap.MapZone sender, Point3D pntTresspassLocation, float flTresspassPercentage, object trespassState) { this.InvokeOnAllEnabled("OnZoneTrespass", new object[] { cpiSoldier, action, sender, pntTresspassLocation, flTresspassPercentage, trespassState }); }
void TrustedHostsWebsitesPorts_ItemAdded(int iIndex, PRoCon.Core.Options.TrustedHostWebsitePort item) { ListViewItem lviNewDomainHost = new ListViewItem(item.HostWebsite); lviNewDomainHost.Tag = item; lviNewDomainHost.SubItems.Add(new ListViewItem.ListViewSubItem(lviNewDomainHost, item.Port.ToString())); this.lsvTrustedHostDomainPorts.Items.Add(lviNewDomainHost); this.txtPluginsTrustedHostDomain.Clear(); this.txtPluginsTrustedPort.Clear(); this.txtPluginsTrustedHostDomain.Focus(); }
private void cdfDownloading_DownloadProgressUpdate(PRoCon.Core.CDownloadFile cdfSender) { this.lblDownloadStatus.Text = cdfSender.GetLabelProgress(); }
private void m_prcClient_PlayerLeft(FrostbiteClient sender, string playerName, PRoCon.Core.Players.CPlayerInfo cpiPlayer) { if (cpiPlayer != null) { this.InvokeOnAllEnabled("OnPlayerLeft", cpiPlayer); } // OBSOLETE //this.InvokeOnAllEnabled("OnPlayerLeft", playerName); }
void cdfDownloading_DownloadError(PRoCon.Core.CDownloadFile cdfSender) { this.lblDownloadStatus.Text = "Error dowloading latest version"; }
private void m_updateDownloader_UpdateDownloading(PRoCon.Core.CDownloadFile cdfDownloading) { cdfDownloading.DownloadProgressUpdate += new PRoCon.Core.CDownloadFile.DownloadFileEventDelegate(cdfDownloading_DownloadProgressUpdate); cdfDownloading.DownloadError += new PRoCon.Core.CDownloadFile.DownloadFileEventDelegate(cdfDownloading_DownloadError); }
private void Variables_VariableAdded(PRoCon.Core.Variables.Variable item) { if (this.IsLoggedIn == true && this.EventsEnabled == true && this.PacketDispatcher != null) { this.PacketDispatcher.SendRequest("procon.vars.onAltered", item.Name, item.Value); } }
private void SetPlaceHoldersColours(PRoCon.Controls.ControlsEx.ListViewNF lsvList, ListViewItem lviIgnoreItem, Color clForeColor, Color clBackColor) { for (int i = 0; i < lsvList.Items.Count; i++) { if (String.Compare(lsvList.Items[i].Name, String.Empty) == 0 && lsvList.Items[i] != lviIgnoreItem) { lsvList.Items[i].BackColor = clBackColor; lsvList.Items[i].ForeColor = clForeColor; } } }
void TrustedHostsWebsitesPorts_ItemRemoved(int iIndex, PRoCon.Core.Options.TrustedHostWebsitePort item) { for (int i = 0; i < this.lsvTrustedHostDomainPorts.Items.Count; i++) { if (this.lsvTrustedHostDomainPorts.Items[i].Tag == item) { this.lsvTrustedHostDomainPorts.Items.RemoveAt(i); i--; } } }
private void MapZones_MapZoneRemoved(PRoCon.Core.Battlemap.MapZoneDrawing item) { if (this.IsLoggedIn == true && this.m_blEventsEnabled == true && this.Game != null) { this.Game.SendRequest("procon.battlemap.onZoneRemoved", item.UID); //this.send(new Packet(true, false, this.AcquireSequenceNumber, new List<string>() { "procon.battlemap.onZoneRemoved", item.UID })); } }
private void m_praApplication_HttpServerOnline(PRoCon.Core.HttpServer.HttpWebServer sender) { this.txtHttpServerStartPort.Text = sender.ListeningPort.ToString(); this.txtPluginsTrustedHostDomain.Text = sender.BindingAddress; this.pnlHttpServerSettings.Enabled = false; this.lnkHttpServerForwardedTest.Text = this.m_praApplication.CurrentLanguage.GetLocalized("frmOptions.lnkHttpServerForwardedTest"); this.lblHttpServerForwardedTestStatus.Text = this.m_praApplication.CurrentLanguage.GetLocalized("frmOptions.lblHttpServerForwardedTestStatus.Unknown"); this.picHttpServerForwardedTestStatus.Image = this.m_frmParent.picPortCheckerUnknown.Image; this.lnkHttpServerExampleLink.Visible = false; this.pnlHttpServerTester.Visible = true; this.lnkStartStopHttpServer.Text = this.m_praApplication.CurrentLanguage.GetLocalized("frmOptions.lnkStartStopHttpServer.Stop"); this.lblHttpServerServerStatus.Text = this.m_praApplication.CurrentLanguage.GetLocalized("frmOptions.lblHttpServerServerStatus.Online", sender.ListeningPort.ToString()); this.lblHttpServerServerStatus.ForeColor = Color.ForestGreen; this.picHttpServerServerStatus.Image = this.m_frmParent.picLayerOnline.Image; }
private void Variables_VariableAdded(PRoCon.Core.Variables.Variable item) { if (this.IsLoggedIn == true && this.m_blEventsEnabled == true && this.Game != null) { this.Game.SendRequest("procon.vars.onAltered", item.Name, item.Value); //this.send(new Packet(true, false, this.AcquireSequenceNumber, new List<string>() { "procon.vars.onAltered", item.Name, item.Value })); } }
private void MapZones_MapZoneRemoved(PRoCon.Core.Battlemap.MapZoneDrawing item) { if (this.IsLoggedIn == true && this.EventsEnabled == true && this.PacketDispatcher != null) { this.PacketDispatcher.SendRequest("procon.battlemap.onZoneRemoved", item.UID); } }