mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
It caused NPCs to not switch to other weapons when there is not enough ammo to shoot. Moved CheckWeaponAmmoCost code from Inventory.cpp to Combat.cpp. Now the debug editor starts at the center of the screen. Updated the previous fix in NPC combat control mod.
130 lines
6.3 KiB
C#
130 lines
6.3 KiB
C#
namespace FalloutClient {
|
|
partial class EditorWindow {
|
|
/// <summary>
|
|
/// Required designer variable.
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>
|
|
/// Clean up any resources being used.
|
|
/// </summary>
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
protected override void Dispose(bool disposing) {
|
|
if(disposing && (components != null)) {
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Windows Form Designer generated code
|
|
|
|
/// <summary>
|
|
/// Required method for Designer support - do not modify
|
|
/// the contents of this method with the code editor.
|
|
/// </summary>
|
|
private void InitializeComponent() {
|
|
this.bSave = new System.Windows.Forms.Button();
|
|
this.bCancel = new System.Windows.Forms.Button();
|
|
this.dataGridView1 = new System.Windows.Forms.DataGridView();
|
|
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
|
|
this.SuspendLayout();
|
|
//
|
|
// bSave
|
|
//
|
|
this.bSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
|
this.bSave.Location = new System.Drawing.Point(12, 336);
|
|
this.bSave.Name = "bSave";
|
|
this.bSave.Size = new System.Drawing.Size(75, 23);
|
|
this.bSave.TabIndex = 0;
|
|
this.bSave.Text = "Save";
|
|
this.bSave.UseVisualStyleBackColor = true;
|
|
this.bSave.Click += new System.EventHandler(this.bSave_Click);
|
|
//
|
|
// bCancel
|
|
//
|
|
this.bCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
|
this.bCancel.Location = new System.Drawing.Point(371, 336);
|
|
this.bCancel.Name = "bCancel";
|
|
this.bCancel.Size = new System.Drawing.Size(75, 23);
|
|
this.bCancel.TabIndex = 1;
|
|
this.bCancel.Text = "Cancel";
|
|
this.bCancel.UseVisualStyleBackColor = true;
|
|
this.bCancel.Click += new System.EventHandler(this.bCancel_Click);
|
|
//
|
|
// dataGridView1
|
|
//
|
|
this.dataGridView1.AllowUserToAddRows = false;
|
|
this.dataGridView1.AllowUserToDeleteRows = false;
|
|
this.dataGridView1.AllowUserToResizeRows = false;
|
|
this.dataGridView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
|
| System.Windows.Forms.AnchorStyles.Left)
|
|
| System.Windows.Forms.AnchorStyles.Right)));
|
|
this.dataGridView1.ColumnHeadersHeight = 22;
|
|
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
|
this.Column1,
|
|
this.Column2,
|
|
this.Column3});
|
|
this.dataGridView1.Location = new System.Drawing.Point(12, 12);
|
|
this.dataGridView1.MultiSelect = false;
|
|
this.dataGridView1.Name = "dataGridView1";
|
|
this.dataGridView1.RowHeadersVisible = false;
|
|
this.dataGridView1.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
|
|
this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
|
|
this.dataGridView1.Size = new System.Drawing.Size(434, 318);
|
|
this.dataGridView1.TabIndex = 2;
|
|
this.dataGridView1.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellEndEdit);
|
|
//
|
|
// Column1
|
|
//
|
|
this.Column1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
|
|
this.Column1.HeaderText = "Element";
|
|
this.Column1.Name = "Column1";
|
|
this.Column1.ReadOnly = true;
|
|
this.Column1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
|
|
//
|
|
// Column2
|
|
//
|
|
this.Column2.HeaderText = "Type";
|
|
this.Column2.Name = "Column2";
|
|
this.Column2.ReadOnly = true;
|
|
this.Column2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
|
|
this.Column2.Width = 75;
|
|
//
|
|
// Column3
|
|
//
|
|
this.Column3.HeaderText = "Value";
|
|
this.Column3.Name = "Column3";
|
|
this.Column3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
|
|
this.Column3.Width = 150;
|
|
//
|
|
// EditorWindow
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.ClientSize = new System.Drawing.Size(458, 371);
|
|
this.Controls.Add(this.dataGridView1);
|
|
this.Controls.Add(this.bCancel);
|
|
this.Controls.Add(this.bSave);
|
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow;
|
|
this.MinimumSize = new System.Drawing.Size(300, 200);
|
|
this.Name = "EditorWindow";
|
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
|
this.Text = "Edit Values";
|
|
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
|
|
this.ResumeLayout(false);
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
private System.Windows.Forms.Button bSave;
|
|
private System.Windows.Forms.Button bCancel;
|
|
private System.Windows.Forms.DataGridView dataGridView1;
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
|
|
}
|
|
} |