public void solve() { difficulty -= 5; if (difficulty < 0) { Factions[suspect].Upset(15f); Factions[victim].Upset(-15f); GameLog.Add(new Notification("Sprawa rozwiązana, ale frakcja " + Factions[suspect].name + " nie jest z tego zadowolona.")); //CrimeScene.Remove(this); isactive = false; } else { GameLog.Add(new Notification("Sprawa wymaga dalszej analizy. Frakcja " + Factions[suspect].name + " krzywo patrzy na twoje zaangażowanie.")); } CityUpdate(1); Mechanics.RefreshNotifications(); }
private void Form1_Load(object sender, EventArgs e) { Mechanics.Initialize(this); Mechanics.notificationPanel = new Panel(); Mechanics.notificationPanel.AutoScroll = true; Mechanics.notificationPanel.Location = new System.Drawing.Point(220, 30); Mechanics.notificationPanel.Name = "notificationPanel"; Mechanics.notificationPanel.Size = new System.Drawing.Size(860, 600); Mechanics.notificationPanel.TabIndex = 5; Mechanics.notificationPanel.BackColor = Color.FromName("ActiveCaption"); this.Controls.Add(Mechanics.notificationPanel); /* Mechanics.notificationPanel.AutoScroll = true; * Mechanics.notificationPanel.Location = new Point(220, 30); * Mechanics.notificationPanel.Size = new Size(600, 500);*/ Mechanics.CrimePanel = new Panel(); Mechanics.CrimePanel.AutoScroll = true; Mechanics.CrimePanel.Location = new System.Drawing.Point(1095, 32); Mechanics.CrimePanel.Name = "crimePanel"; Mechanics.CrimePanel.Size = new System.Drawing.Size(252, 317);//1347 // Mechanics.CrimePanel.TabIndex = 5; Mechanics.CrimePanel.BackColor = Color.FromName("ActiveCaption"); this.Controls.Add(Mechanics.CrimePanel); Mechanics.notificationPanel.Visible = true; // Mechanics.notificationPanel.AutoScroll = true; Mechanics.RefreshNotifications(); Mechanics.RefreshCrimes(); }
public void Rebelion(Mechanics.Faction guilty) { Mechanics.notificationPanel.Controls.Clear(); //activeFaction = guilty; Lost popup = new Lost(guilty.name); DialogResult dialogresult = popup.ShowDialog(); if (dialogresult == DialogResult.OK) { // Console.WriteLine("You clicked OK"); } else if (dialogresult == DialogResult.Cancel) { // Console.WriteLine("You clicked either Cancel or X button in the top right corner"); } popup.Dispose(); guilty.Tame(400f); Mechanics.mayor(); Mechanics.RefreshNotifications(); }