Esempio n. 1
0
        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();
        }
Esempio n. 2
0
        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--;
                }
            }
        }
Esempio n. 3
0
        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;
        }
Esempio n. 4
0
        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;
        }
Esempio n. 5
0
        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();
        }
Esempio n. 6
0
        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));
            }
        }
Esempio n. 7
0
        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));
            }
        }
Esempio n. 8
0
 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 });
 }
Esempio n. 9
0
        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();
        }
Esempio n. 10
0
 private void cdfDownloading_DownloadProgressUpdate(PRoCon.Core.CDownloadFile cdfSender) {
     this.lblDownloadStatus.Text = cdfSender.GetLabelProgress();
 }
Esempio n. 11
0
        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);
        }
Esempio n. 12
0
 void cdfDownloading_DownloadError(PRoCon.Core.CDownloadFile cdfSender) {
     this.lblDownloadStatus.Text = "Error dowloading latest version";
 }
Esempio n. 13
0
 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);
 }
Esempio n. 14
0
 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);
     }
 }
Esempio n. 15
0
 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;
         }
     }
 }
Esempio n. 16
0
 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--;
         }
     }
 }
Esempio n. 17
0
 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 }));
     }
 }
Esempio n. 18
0
        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;
        }
Esempio n. 19
0
 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 }));
     }
 }
Esempio n. 20
0
 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);
     }
 }