private void connectBtn_Click(object sender = null, EventArgs e = null) { if (this.IsGameActive()) { this.memoryManager = new MemoryManager(this.settings.ProcessName); this.carDataManager = new CarDataManager(this.memoryManager, this.carDataManager); this.gameStatus.Text = "Connected"; this.carLocationUpdateTimer.Enabled = true; this.connectBtn.Visible = false; this.tabControl.Enabled = true; this.CopyBtn.Enabled = true; if (this.carDataManager.CanPaste) { this.PasteBtn.Enabled = true; } this.FindCarPointer(); this.UpdateForm(); } else { this.Disconnect(); } }
public PartCustomizationForm(string partName, CarDataManager carDataManager) { InitializeComponent(); this.carDataManager = carDataManager; this.partName = partName; var bytes = this.carDataManager.GetAutosculptData(partName); this.zone1.Value = bytes[0]; this.zone2.Value = bytes[1]; this.zone3.Value = bytes[2]; this.zone4.Value = bytes[3]; this.zone5.Value = bytes[4]; this.zone6.Value = bytes[5]; this.zone7.Value = bytes[6]; this.zone8.Value = bytes[7]; this.zone9.Value = bytes[8]; this.zone10.Value = bytes[9]; if (Constants.Carbon.ContainsKey(partName)) { this.carbon.Checked = this.carDataManager.GetCarbonData(partName); } else { this.carbon.Visible = false; } }
public VinylEditorForm(CarDataManager carDataManager, bool isDecal, int vinylNum) { InitializeComponent(); this.carDataManager = carDataManager; this.vinylNum = vinylNum; this.isDecal = isDecal; this.controls = new List <NumericUpDown>(); this.InitControl(this.OffsetX); this.InitControl(this.OffsetY); this.InitControl(this.ScaleX); this.InitControl(this.ScaleY); this.InitControl(this.Skew); this.InitControl(this.Rotation); this.mirrored.Checked = this.carDataManager.GetMirrored(this.vinylNum, isDecal); this.code = (byte)this.carDataManager.GetVinylData(this.vinylNum, isDecal, "Code"); this.page = (byte)this.carDataManager.GetVinylData(this.vinylNum, isDecal, "Page"); this.SetVinylImage(); this.SetColor(this.colorBtn1, 1); if (isDecal) { this.colorBtn2.Visible = false; this.colorBtn3.Visible = false; this.colorBtn4.Visible = false; this.colorLabel2.Visible = false; this.colorLabel3.Visible = false; this.colorLabel4.Visible = false; } else { this.SetColor(this.colorBtn2, 2); this.SetColor(this.colorBtn3, 3); this.SetColor(this.colorBtn4, 4); } }
// Use this for initialization void Start() { m_pInstance = this; //carDataParse = GetComponent<CarDataParse>(); }
public LockUnlockCarForm(CarDataManager carDataManager) { InitializeComponent(); this.carDataManager = carDataManager; }