예제 #1
0
 // Token: 0x06000046 RID: 70 RVA: 0x0000592C File Offset: 0x00003B2C
 public void TextImport()
 {
     DebugTools.Print("Open dialog box: " + PlayerListUI.UppercaseFirst(this.listName) + " Import (DialogBoxImportExport)");
     using (DialogBoxImportExport dialogBoxImportExport = new DialogBoxImportExport())
     {
         dialogBoxImportExport.Text = PlayerListUI.UppercaseFirst(this.listName) + " Import";
         dialogBoxImportExport.ButtonImport.Visible = true;
         dialogBoxImportExport.ButtonCancel.Text    = "Cancel";
         if (this.restricted)
         {
             dialogBoxImportExport.CheckBoxEncryptedText.Enabled = false;
             dialogBoxImportExport.CheckBoxEncryptedText.Checked = true;
         }
         if (dialogBoxImportExport.ShowDialog() == DialogResult.OK)
         {
             if (dialogBoxImportExport.CheckBoxEncryptedText.Checked)
             {
                 dialogBoxImportExport.DecryptTextBox();
             }
             this.TextImport(dialogBoxImportExport.TextBoxImportExport.Lines);
             this.UpdateStatic();
             GameMemory.OptionsUpdate();
         }
     }
 }
예제 #2
0
 // Token: 0x0600004B RID: 75 RVA: 0x00005CF0 File Offset: 0x00003EF0
 public void AddPlayer(ListView.SelectedIndexCollection indices)
 {
     foreach (object obj in indices)
     {
         int num = (int)obj;
         GameData.PlayerOnline playerOnline = GameData.PlayerList[num];
         this.AddPlayer(playerOnline.LocalList[(int)(playerOnline.LocalCount - 1)].Name, playerOnline.SteamId, true);
     }
     this.UpdateStatic();
     GameMemory.OptionsUpdate();
     if (indices.Count > 1)
     {
         MainForm.Message(string.Concat(new object[]
         {
             "Added ",
             indices.Count,
             " players to the ",
             this.listName,
             "."
         }), 50);
         DebugTools.Print(string.Concat(new object[]
         {
             PlayerListUI.UppercaseFirst(this.listName),
             ": Added ",
             indices.Count,
             " players."
         }));
     }
 }
예제 #3
0
 // Token: 0x0600003A RID: 58 RVA: 0x000049B0 File Offset: 0x00002BB0
 public void ChangeLobbyInfo()
 {
     DebugTools.Print("Open dialog box: Overlay lobby info configuration (DialogBoxLobbyInfo)");
     using (DialogBoxColumnAdditional dialogBoxColumnAdditional = new DialogBoxColumnAdditional())
     {
         dialogBoxColumnAdditional.CheckBoxShortLobbyInfoNames.Checked = this.Config.Columns.Additional.LobbyInfo.ShortNames;
         dialogBoxColumnAdditional.CheckBoxId.Checked                  = this.Config.Columns.Additional.LobbyInfo.Basic.Id;
         dialogBoxColumnAdditional.CheckBoxType.Checked                = this.Config.Columns.Additional.LobbyInfo.Basic.Type;
         dialogBoxColumnAdditional.CheckBoxHost.Checked                = this.Config.Columns.Additional.LobbyInfo.Basic.Host;
         dialogBoxColumnAdditional.CheckBoxPlayerCount.Checked         = this.Config.Columns.Additional.LobbyInfo.Basic.PlayerCount;
         dialogBoxColumnAdditional.CheckBoxEvent.Checked               = this.Config.Columns.Additional.LobbyInfo.MatchMode.Event;
         dialogBoxColumnAdditional.CheckBoxTrack.Checked               = this.Config.Columns.Additional.LobbyInfo.MatchMode.Track;
         dialogBoxColumnAdditional.CheckBoxDifficulty.Checked          = this.Config.Columns.Additional.LobbyInfo.MatchMode.Difficulty;
         dialogBoxColumnAdditional.CheckBoxShortPlayerNames.Checked    = this.Config.Columns.Additional.PlayerName.ShortNames;
         dialogBoxColumnAdditional.CheckBoxShortCharacterNames.Checked = this.Config.Columns.Additional.Character.ShortNames;
         if (dialogBoxColumnAdditional.ShowDialog() == DialogResult.OK)
         {
             DebugTools.Print("Option change: Overlay additional column options");
             this.Config.Columns.Additional.LobbyInfo.ShortNames           = dialogBoxColumnAdditional.CheckBoxShortLobbyInfoNames.Checked;
             this.Config.Columns.Additional.LobbyInfo.Basic.Id             = dialogBoxColumnAdditional.CheckBoxId.Checked;
             this.Config.Columns.Additional.LobbyInfo.Basic.Type           = dialogBoxColumnAdditional.CheckBoxType.Checked;
             this.Config.Columns.Additional.LobbyInfo.Basic.Host           = dialogBoxColumnAdditional.CheckBoxHost.Checked;
             this.Config.Columns.Additional.LobbyInfo.Basic.PlayerCount    = dialogBoxColumnAdditional.CheckBoxPlayerCount.Checked;
             this.Config.Columns.Additional.LobbyInfo.MatchMode.Event      = dialogBoxColumnAdditional.CheckBoxEvent.Checked;
             this.Config.Columns.Additional.LobbyInfo.MatchMode.Track      = dialogBoxColumnAdditional.CheckBoxTrack.Checked;
             this.Config.Columns.Additional.LobbyInfo.MatchMode.Difficulty = dialogBoxColumnAdditional.CheckBoxDifficulty.Checked;
             this.Config.Columns.Additional.PlayerName.ShortNames          = dialogBoxColumnAdditional.CheckBoxShortPlayerNames.Checked;
             this.Config.Columns.Additional.Character.ShortNames           = dialogBoxColumnAdditional.CheckBoxShortCharacterNames.Checked;
             GameMemory.OverlayUpdateConfig();
         }
     }
 }
예제 #4
0
 // Token: 0x060000C3 RID: 195 RVA: 0x000154D8 File Offset: 0x000136D8
 public static void OverlayLoad()
 {
     GameMemory.PackageOverlayConfig(Program.Config.Overlay);
     DebugTools.Write("Game Memory: Injecting overlay... ");
     GameMemory._OverlayProcess = new OverlayProcess(GameMemory.processId, GameMemory._OverlayConfigPackage, new DebugMessageEvent(GameMemory.OverlayDebugMessage));
     DebugTools.Print("done.");
 }
예제 #5
0
 // Token: 0x060000C1 RID: 193 RVA: 0x000153A0 File Offset: 0x000135A0
 public static void SLTCheckerLoad()
 {
     DebugTools.Write("Game Memory: Initialising the SLT protection checker... ");
     GameMemory.SetBytes(4688654, GameMemory.bytesSLTChecker1);
     GameMemory.SetBytes(10202730, GameMemory.bytesSLTChecker2);
     Debug.Print("done. ");
 }
예제 #6
0
 // Token: 0x06000034 RID: 52 RVA: 0x000044F0 File Offset: 0x000026F0
 public void EditColumn()
 {
     foreach (object obj in this.ListView.SelectedIndices)
     {
         int           index         = (int)obj;
         ColumnElement columnElement = this.Config.Columns.ColumnList[index];
         DebugTools.Print("Open dialog box: Edit overlay column (DialogBoxOverlayColumn)");
         using (DialogBoxOverlayColumn dialogBoxOverlayColumn = new DialogBoxOverlayColumn())
         {
             dialogBoxOverlayColumn.Text = "Edit Column";
             dialogBoxOverlayColumn.CheckboxColumnEnabled.Checked      = columnElement.Enabled;
             dialogBoxOverlayColumn.NumericUpDownColumnWidth.Value     = columnElement.Width;
             dialogBoxOverlayColumn.ComboBoxColumnData.SelectedIndex   = (int)columnElement.Data;
             dialogBoxOverlayColumn.CheckBoxShowHeader.Checked         = columnElement.ShowHeader;
             dialogBoxOverlayColumn.LabelHeaderColourPreview.BackColor = columnElement.HeaderColour;
             dialogBoxOverlayColumn.LabelDataColourPreview.BackColor   = columnElement.DataColour;
             dialogBoxOverlayColumn.ButtonColumnConfirm.Text           = "Confirm";
             if (dialogBoxOverlayColumn.ShowDialog() == DialogResult.OK)
             {
                 DebugTools.Print("Option change: Edit overlay column");
                 columnElement.Enabled      = dialogBoxOverlayColumn.CheckboxColumnEnabled.Checked;
                 columnElement.Width        = (int)dialogBoxOverlayColumn.NumericUpDownColumnWidth.Value;
                 columnElement.Data         = (DataSourceEnum)dialogBoxOverlayColumn.ComboBoxColumnData.SelectedIndex;
                 columnElement.ShowHeader   = dialogBoxOverlayColumn.CheckBoxShowHeader.Checked;
                 columnElement.HeaderColour = dialogBoxOverlayColumn.LabelHeaderColourPreview.BackColor;
                 columnElement.DataColour   = dialogBoxOverlayColumn.LabelDataColourPreview.BackColor;
                 GameMemory.OverlayUpdateConfig();
                 this.UpdateStatic();
             }
         }
     }
 }
예제 #7
0
        // Token: 0x06000041 RID: 65 RVA: 0x000052AC File Offset: 0x000034AC
        public void RemovePlayer()
        {
            int count = this.ListView.SelectedIndices.Count;

            for (int i = this.ListView.SelectedItems.Count - 1; i >= 0; i--)
            {
                int index = this.ListView.SelectedIndices[i];
                DebugTools.Print("Option change: Remove " + PlayerListUI.UppercaseFirst(this.listName) + " entry.");
                this.Config.Players.RemoveAt(index);
                MainForm.Message(this.ListView.Items[index].SubItems[0].Text + " was removed from the " + this.listName, 50);
            }
            this.UpdateStatic();
            GameMemory.OptionsUpdate();
            if (count > 1)
            {
                MainForm.Message(string.Concat(new object[]
                {
                    "Removed ",
                    count,
                    " players from the ",
                    this.listName,
                    "."
                }), 50);
            }
        }
예제 #8
0
 // Token: 0x06000042 RID: 66 RVA: 0x000053B0 File Offset: 0x000035B0
 public void AddPlayer()
 {
     DebugTools.Print("Open dialog box: Add " + this.listName + " entry (DialogBoxPlayer)");
     using (DialogBoxPlayer dialogBoxPlayer = new DialogBoxPlayer())
     {
         dialogBoxPlayer.Text               = "Add Player";
         dialogBoxPlayer.LabelTitle.Text    = "Add this player to the " + this.listName + ":";
         dialogBoxPlayer.ButtonConfirm.Text = "Add";
         dialogBoxPlayer.TextBoxPlayerName.Select();
         bool flag = false;
         while (!flag)
         {
             try
             {
                 if (dialogBoxPlayer.ShowDialog() == DialogResult.OK)
                 {
                     this.AddPlayer(dialogBoxPlayer.TextBoxPlayerName.Text, Convert.ToUInt64(dialogBoxPlayer.TextBoxPlayerSteamID.Text), dialogBoxPlayer.CheckBoxPlayerEnabled.Checked);
                     this.UpdateStatic();
                     GameMemory.OptionsUpdate();
                 }
                 flag = true;
             }
             catch
             {
                 DebugTools.Print("Error: Failed to add player to the " + this.listName + ", invalid Steam ID.");
                 MessageBox.Show("The Steam ID is invalid.", "Could not add player.", MessageBoxButtons.OK, MessageBoxIcon.Hand);
             }
         }
     }
 }
예제 #9
0
 // Token: 0x060000C5 RID: 197 RVA: 0x0001555A File Offset: 0x0001375A
 public static void OverlayUpdateConfig()
 {
     if (GameMemory._OverlayProcess != null)
     {
         GameMemory.PackageOverlayConfig(Program.Config.Overlay);
         GameMemory._OverlayProcess.OverlayInterface.UpdateOverlayConfig(GameMemory._OverlayConfigPackage);
     }
 }
예제 #10
0
 // Token: 0x06000030 RID: 48 RVA: 0x00004366 File Offset: 0x00002566
 public void ChangeBackgroundOpacity()
 {
     if (!this.settingValues)
     {
         DebugTools.Print("Option change: Overlay background opacity");
         this.Config.Background.Opacity = Convert.ToInt32(this.TrackBarBackgroundOpacity.Value);
         GameMemory.OverlayUpdateConfig();
     }
 }
예제 #11
0
 // Token: 0x0600002D RID: 45 RVA: 0x000042A0 File Offset: 0x000024A0
 public void ToggleColumn(ItemCheckedEventArgs e)
 {
     if (!this.settingValues)
     {
         DebugTools.Print("Option change: Toggle overlay column");
         this.Config.Columns.ColumnList[e.Item.Index].Enabled = e.Item.Checked;
         GameMemory.OverlayUpdateConfig();
     }
 }
예제 #12
0
 // Token: 0x060000C0 RID: 192 RVA: 0x00015376 File Offset: 0x00013576
 public static void HostMigrationFixLoad()
 {
     DebugTools.Write("Game Memory: Applying host migration fix... ");
     GameMemory.SetBytes(4688306, new byte[]
     {
         3
     });
     Debug.Print("done.");
 }
예제 #13
0
 // Token: 0x0600002F RID: 47 RVA: 0x0000432D File Offset: 0x0000252D
 public void ChangePositionY()
 {
     if (!this.settingValues)
     {
         DebugTools.Print("Option change: Overlay Y position");
         this.Config.Position.Y = Convert.ToInt32(this.NumericUpDownY.Value);
         GameMemory.OverlayUpdateConfig();
     }
 }
예제 #14
0
 // Token: 0x06000040 RID: 64 RVA: 0x00005234 File Offset: 0x00003434
 public void TogglePlayer(ItemCheckedEventArgs e)
 {
     if (!this.settingValues)
     {
         DebugTools.Print("Option change: Toggle " + this.listName + " entry");
         this.Config.Players[e.Item.Index].Enabled = !this.Config.Players[e.Item.Index].Enabled;
         GameMemory.OptionsUpdate();
     }
 }
예제 #15
0
 // Token: 0x060000BE RID: 190 RVA: 0x000152D4 File Offset: 0x000134D4
 public static void ListCheckerLoad()
 {
     DebugTools.Write("Game Memory: Initialising banlist/whitelist system... ");
     GameMemory.SetBytes(4699264, GameMemory.bytesDetour1);
     GameMemory.SetBytes(4699250, GameMemory.bytesDetour2);
     GameMemory.SetBytes(10192986, GameMemory.bytesListChecker);
     GameMemory.SetBytes(10192993, BitConverter.GetBytes(GameData.GetLobbyTypeAddress()));
     Debug.Print("done.");
 }
예제 #16
0
 // Token: 0x06000035 RID: 53 RVA: 0x000046BC File Offset: 0x000028BC
 public void RemoveColumn()
 {
     for (int i = this.ListView.SelectedIndices.Count - 1; i >= 0; i--)
     {
         int index = this.ListView.SelectedIndices[i];
         DebugTools.Print("Option change: Remove overlay column (" + this.ListView.Items[index].SubItems[0].Text + ")");
         this.Config.Columns.ColumnList.RemoveAt(index);
     }
     GameMemory.OverlayUpdateConfig();
     this.UpdateStatic();
 }
예제 #17
0
 // Token: 0x060000BC RID: 188 RVA: 0x000150B0 File Offset: 0x000132B0
 public static void UpdateHandle()
 {
     Process[] processesByName = Process.GetProcessesByName("ASN_App_PcDx9_Final");
     if (processesByName.Length != 0)
     {
         if (GameMemory.gameHandle == 0)
         {
             DebugTools.Print("Update handle: Found new game handle.");
             GameMemory.processId  = processesByName[0].Id;
             GameMemory.gameHandle = GameMemory.OpenProcess(56, 0, GameMemory.processId);
             DebugTools.Print("Update handle: Will wait " + GameMemory.newHandleTime * 100 + "ms before loading game config.");
         }
     }
     else
     {
         GameMemory.gameHandle = 0;
         GameMemory.processId  = 0;
         if (GameMemory._OverlayProcess != null)
         {
             DebugTools.Print("Update handle: Lost game handle.");
             GameMemory.OverlayUnload();
         }
     }
     if (GameMemory.gameHandle > 0)
     {
         GameData.Update();
         if (GameMemory.newHandleTime > 0)
         {
             GameMemory.newHandleTime--;
             if (GameMemory.newHandleTime == 0)
             {
                 MainForm.AllLobbiesUI.RefreshList();
                 GameData.Update();
                 if (SteamData.errorCode == 0 && GameData.youAreHost)
                 {
                     SteamData.SetPlayerLimit(20);
                 }
                 GameMemory.ListCheckerLoad();
                 GameMemory.FullLobbyFixLoad();
                 GameMemory.HostMigrationFixLoad();
                 GameMemory.SLTCheckerLoad();
                 GameMemory.OptionsUpdate();
                 GameMemory.OverlayLoad();
                 return;
             }
         }
     }
     else
     {
         GameMemory.newHandleTime = 50;
     }
 }
예제 #18
0
 // Token: 0x060000BF RID: 191 RVA: 0x00015336 File Offset: 0x00013536
 public static void FullLobbyFixLoad()
 {
     DebugTools.Write("Game Memory: Applying full lobby fix... ");
     GameMemory.SetBytes(4652369, new byte[]
     {
         20
     });
     GameMemory.SetBytes(4688226, new byte[]
     {
         20
     });
     Debug.Print("done.");
 }
예제 #19
0
 // Token: 0x06000085 RID: 133 RVA: 0x0000D560 File Offset: 0x0000B760
 private void UpdateActive(object Object, EventArgs myEventArgs)
 {
     GameMemory.UpdateHandle();
     this.UpdateMessage();
     SoundEffects.UpdateSounds();
     if (MainForm.connectionBlockTimeout > 0)
     {
         MainForm.connectionBlockTimeout--;
     }
     MainForm.CurrentLobbyUI.UpdateActive();
     this.BanlistUpdateActive();
     this.WhitelistUpdateActive();
     EventListeners.Listen();
 }
예제 #20
0
 // Token: 0x06000039 RID: 57 RVA: 0x0000492C File Offset: 0x00002B2C
 public void ChangeHeaderFont()
 {
     DebugTools.Print("Open dialog box: Overlay header font (FontDialog)");
     using (FontDialog fontDialog = new FontDialog())
     {
         fontDialog.Font = this.Config.Fonts.Header;
         if (fontDialog.ShowDialog() == DialogResult.OK)
         {
             DebugTools.Print("Option change: Overlay header font");
             this.Config.Fonts.Header = fontDialog.Font;
             this.UpdateStatic();
             GameMemory.OverlayUpdateConfig();
         }
     }
 }
예제 #21
0
 // Token: 0x0600003B RID: 59 RVA: 0x00004D3C File Offset: 0x00002F3C
 public void ChangeBackgroundColour()
 {
     DebugTools.Print("Open dialog box: Overlay background colour (ColourDialog)");
     using (ColorDialog colorDialog = new ColorDialog())
     {
         colorDialog.Color = this.Config.Background.Colour;
         if (colorDialog.ShowDialog() == DialogResult.OK)
         {
             DebugTools.Print("Option change: Overlay background colour (ColourDialog)");
             this.Config.Background.Colour = colorDialog.Color;
             this.UpdateStatic();
             GameMemory.OverlayUpdateConfig();
         }
     }
 }
예제 #22
0
 // Token: 0x060000BD RID: 189 RVA: 0x000151B4 File Offset: 0x000133B4
 public static void OptionsUpdate()
 {
     if (GameMemory.gameHandle > 0)
     {
         DebugTools.Print("Game Memory: Begin configuration update.");
         if (Program.Config.HostOptions.SkipLobbySearch)
         {
             GameMemory.SetBytes(4759930, GameMemory.bytesSkipSearchEnable);
         }
         else
         {
             GameMemory.SetBytes(4759930, GameMemory.bytesSkipSearchDisable);
         }
         if (Program.Config.HostOptions.DisableMirrorTracks)
         {
             GameMemory.SetBytes(8661919, GameMemory.bytesMirrorDisable);
         }
         else
         {
             GameMemory.SetBytes(8661919, GameMemory.bytesMirrorEnable);
         }
         GameMemory.totalPlayerCount = 0;
         if (Program.Config.Banlist.Enabled)
         {
             GameMemory.ListLoad(Program.Config.Banlist, "banlist", true, 103, 17, 22);
         }
         else
         {
             GameMemory.SetBytes(10193008, new byte[1]);
         }
         if (Program.Config.Whitelist.Enabled)
         {
             GameMemory.SetBytes(10192999, new byte[]
             {
                 3
             });
             GameMemory.ListLoad(Program.Config.Whitelist, "whitelist", false, 103, 29, 34);
             return;
         }
         GameMemory.SetBytes(10192999, new byte[]
         {
             4
         });
     }
 }
예제 #23
0
 // Token: 0x06000044 RID: 68 RVA: 0x00005688 File Offset: 0x00003888
 public void EditPlayer()
 {
     foreach (object obj in this.ListView.SelectedIndices)
     {
         int index = (int)obj;
         DebugTools.Print("Open dialog box: Edit " + this.listName + " entry (DialogBoxPlayer)");
         using (DialogBoxPlayer dialogBoxPlayer = new DialogBoxPlayer())
         {
             dialogBoxPlayer.Text            = "Edit Player";
             dialogBoxPlayer.LabelTitle.Text = string.Concat(new string[]
             {
                 "Edit ",
                 this.Config.Players[index].Name,
                 "'s ",
                 this.listName,
                 " entry:"
             });
             dialogBoxPlayer.ButtonConfirm.Text = "Confirm";
             dialogBoxPlayer.TextBoxPlayerName.Select();
             dialogBoxPlayer.TextBoxPlayerName.Text        = this.Config.Players[index].Name;
             dialogBoxPlayer.TextBoxPlayerSteamID.Text     = this.Config.Players[index].SteamId.ToString();
             dialogBoxPlayer.CheckBoxPlayerEnabled.Checked = this.Config.Players[index].Enabled;
             dialogBoxPlayer.TextBoxPlayerSteamID.Enabled  = !this.restricted;
             for (;;)
             {
                 try
                 {
                     if (dialogBoxPlayer.ShowDialog() == DialogResult.OK)
                     {
                         this.EditPlayer(dialogBoxPlayer.TextBoxPlayerName.Text, Convert.ToUInt64(dialogBoxPlayer.TextBoxPlayerSteamID.Text), dialogBoxPlayer.CheckBoxPlayerEnabled.Checked, index);
                         this.UpdateStatic();
                         GameMemory.OptionsUpdate();
                     }
                     break;
                 }
                 catch
                 {
                     DebugTools.Print("Error: Failed to edit " + this.listName + " entry, invalid Steam ID.");
                     MessageBox.Show("The Steam ID is invalid.", "Could not edit player.", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                 }
             }
         }
     }
 }
예제 #24
0
 // Token: 0x06000037 RID: 55 RVA: 0x000047FC File Offset: 0x000029FC
 public void MoveColumnDown()
 {
     if (this.ListView.SelectedIndices.Count == 1)
     {
         DebugTools.Print("Option change: Move overlay column down");
         if (this.ColumnSwap(this.ListView.FocusedItem.Index, this.ListView.FocusedItem.Index + 1))
         {
             int num = this.ListView.SelectedIndices[0];
             MainForm.ListViewFocus(this.ListView.Items, num, false);
             MainForm.ListViewFocus(this.ListView.Items, num + 1, true);
             this.UpdateStatic();
             GameMemory.OverlayUpdateConfig();
             return;
         }
     }
     else
     {
         MessageBox.Show("Please select a single column.", "Multiple Selections", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
     }
 }
예제 #25
0
 // Token: 0x06000043 RID: 67 RVA: 0x000054C8 File Offset: 0x000036C8
 public void AddFriends()
 {
     DebugTools.Print("Open dialog box: Add friends (DialogBoxAddFriends)");
     using (DialogBoxAddFriends dialogBoxAddFriends = new DialogBoxAddFriends())
     {
         foreach (SteamData.Player player in SteamData.FriendList)
         {
             dialogBoxAddFriends.ListView.Items.Add(new ListViewItem(player.name));
         }
         if (dialogBoxAddFriends.ShowDialog() == DialogResult.OK)
         {
             foreach (object obj in dialogBoxAddFriends.ListView.SelectedIndices)
             {
                 int num = (int)obj;
                 this.AddPlayer(SteamData.FriendList[num].name, SteamData.FriendList[num].steamId, true);
             }
             this.UpdateStatic();
             GameMemory.OptionsUpdate();
             if (dialogBoxAddFriends.ListView.SelectedIndices.Count > 1)
             {
                 MainForm.Message(string.Concat(new object[]
                 {
                     "Added ",
                     dialogBoxAddFriends.ListView.SelectedIndices.Count,
                     " friends to the ",
                     this.listName,
                     "."
                 }), 50);
                 DebugTools.Print(string.Concat(new object[]
                 {
                     PlayerListUI.UppercaseFirst(this.listName),
                     ": Added ",
                     dialogBoxAddFriends.ListView.SelectedIndices.Count,
                     " friends."
                 }));
             }
         }
     }
 }
예제 #26
0
 // Token: 0x06000033 RID: 51 RVA: 0x00004400 File Offset: 0x00002600
 public void AddColumn()
 {
     using (DialogBoxOverlayColumn dialogBoxOverlayColumn = new DialogBoxOverlayColumn())
     {
         DebugTools.Print("Open dialog box: Add overlay column (DialogBoxOverlayColumn)");
         dialogBoxOverlayColumn.Text = "Add Column";
         dialogBoxOverlayColumn.ButtonColumnConfirm.Text = "Add";
         if (dialogBoxOverlayColumn.ShowDialog() == DialogResult.OK)
         {
             DebugTools.Print("Option change: Add overlay column");
             this.Config.Columns.ColumnList.Add(new ColumnElement
             {
                 Enabled      = true,
                 Data         = (DataSourceEnum)dialogBoxOverlayColumn.ComboBoxColumnData.SelectedIndex,
                 Width        = Convert.ToInt32(dialogBoxOverlayColumn.NumericUpDownColumnWidth.Value),
                 ShowHeader   = dialogBoxOverlayColumn.CheckBoxShowHeader.Checked,
                 HeaderColour = dialogBoxOverlayColumn.LabelHeaderColourPreview.BackColor,
                 DataColour   = dialogBoxOverlayColumn.LabelDataColourPreview.BackColor
             });
             GameMemory.OverlayUpdateConfig();
             this.UpdateStatic();
         }
     }
 }
예제 #27
0
        // Token: 0x060000C2 RID: 194 RVA: 0x000153D4 File Offset: 0x000135D4
        public static void ListLoad(PlayerListElement PlayerList, string listName, bool validation, int listOffset, int listPointerOffset, int countOffset)
        {
            DebugTools.Write("Game Memory: Loading " + listName + " players ... ");
            int num  = 10192986 + listOffset + GameMemory.totalPlayerCount * 8;
            int num2 = num;
            int num3 = GameMemory.totalPlayerCount;

            foreach (object obj in PlayerList.Players)
            {
                PlayerElement playerElement = (PlayerElement)obj;
                if ((!validation || Array.IndexOf <ulong>(InternalConfig.GoldList, playerElement.SteamId) == -1) && playerElement.Enabled)
                {
                    GameMemory.SetBytes(num2, BitConverter.GetBytes(playerElement.SteamId));
                    num2 += 8;
                    GameMemory.totalPlayerCount++;
                }
            }
            GameMemory.SetBytes(10192986 + listPointerOffset, BitConverter.GetBytes(num));
            GameMemory.SetBytes(10192986 + countOffset, new byte[]
            {
                Convert.ToByte(GameMemory.totalPlayerCount - num3)
            });
            Debug.Print("done.");
        }
예제 #28
0
 // Token: 0x06000011 RID: 17 RVA: 0x00002CB7 File Offset: 0x00000EB7
 public void ToggleMirrorTracks()
 {
     DebugTools.Print("Option change: Toggle mirror tracks");
     this.Config.DisableMirrorTracks = !this.Config.DisableMirrorTracks;
     GameMemory.OptionsUpdate();
 }
예제 #29
0
 // Token: 0x060000C8 RID: 200 RVA: 0x00015A28 File Offset: 0x00013C28
 public static void SetBytes(int Address, byte[] Bytes)
 {
     GameMemory.WriteProcessMemory(GameMemory.gameHandle, Address, Bytes, Bytes.Length, 0);
 }
예제 #30
0
 // Token: 0x0600003F RID: 63 RVA: 0x000051FC File Offset: 0x000033FC
 public void ToggleList()
 {
     DebugTools.Print("Option change: Toggle " + this.listName);
     this.Config.Enabled = !this.Config.Enabled;
     GameMemory.OptionsUpdate();
 }