update stufff begin teams work
This commit is contained in:
parent
1d318307d4
commit
38aa92cea2
|
@ -0,0 +1,18 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LibW4M.Data.Teams
|
||||
{
|
||||
public enum SkillLevel : int
|
||||
{
|
||||
PlayerControled = 0,
|
||||
CpuLevel1 = 1,
|
||||
CpuLevel2 = 2,
|
||||
CpuLevel3 = 3,
|
||||
CpuLevel4 = 4,
|
||||
CpuLevel5 = 5,
|
||||
}
|
||||
}
|
|
@ -25,7 +25,7 @@ namespace LibW4M.Data.Teams
|
|||
public XomString[] Worms;
|
||||
public int TutorialsDone;
|
||||
public int NewTeam;
|
||||
public int Skill;
|
||||
public SkillLevel Skill;
|
||||
public int Grave;
|
||||
public int SWeapon;
|
||||
public XomString Flag;
|
||||
|
@ -57,7 +57,7 @@ namespace LibW4M.Data.Teams
|
|||
this.Worms = fileBelongs.IntArrayToXomStringArray(reader.ReadCompressedIntArray());
|
||||
this.TutorialsDone = reader.ReadInt32();
|
||||
this.NewTeam = reader.ReadInt32();
|
||||
this.Skill = reader.ReadInt32();
|
||||
this.Skill = (SkillLevel)reader.ReadInt32();
|
||||
this.Grave = reader.ReadInt32();
|
||||
this.SWeapon = reader.ReadInt32();
|
||||
this.Flag = fileBelongs.LookupStringFromId(reader.ReadCompressedInt());
|
||||
|
@ -95,7 +95,7 @@ namespace LibW4M.Data.Teams
|
|||
writer.WriteCompressedIntArray(this.fileBelongs.XomStringArrayToIntArray(this.Worms));
|
||||
writer.WriteInt32(this.TutorialsDone);
|
||||
writer.WriteInt32(this.NewTeam);
|
||||
writer.WriteInt32(this.Skill);
|
||||
writer.WriteInt32((int)this.Skill);
|
||||
writer.WriteInt32(this.Grave);
|
||||
writer.WriteInt32(this.SWeapon);
|
||||
writer.WriteCompressedInt(this.Flag.Id);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
namespace W4Gui.Components
|
||||
{
|
||||
partial class CollectiveList
|
||||
partial class CollectiveListAddDelete
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
|
@ -29,10 +29,10 @@
|
|||
private void InitializeComponent()
|
||||
{
|
||||
this.tblCollective = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.lstCollective = new System.Windows.Forms.ListBox();
|
||||
this.tblButton = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.btnAdd = new System.Windows.Forms.Button();
|
||||
this.btnDel = new System.Windows.Forms.Button();
|
||||
this.List = new W4Gui.Components.CollectiveListBox();
|
||||
this.tblCollective.SuspendLayout();
|
||||
this.tblButton.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
|
@ -41,8 +41,8 @@
|
|||
//
|
||||
this.tblCollective.ColumnCount = 1;
|
||||
this.tblCollective.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
||||
this.tblCollective.Controls.Add(this.lstCollective, 0, 0);
|
||||
this.tblCollective.Controls.Add(this.tblButton, 0, 1);
|
||||
this.tblCollective.Controls.Add(this.List, 0, 0);
|
||||
this.tblCollective.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tblCollective.Location = new System.Drawing.Point(0, 0);
|
||||
this.tblCollective.Name = "tblCollective";
|
||||
|
@ -52,17 +52,6 @@
|
|||
this.tblCollective.Size = new System.Drawing.Size(251, 381);
|
||||
this.tblCollective.TabIndex = 0;
|
||||
//
|
||||
// lstCollective
|
||||
//
|
||||
this.lstCollective.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.lstCollective.FormattingEnabled = true;
|
||||
this.lstCollective.ItemHeight = 15;
|
||||
this.lstCollective.Location = new System.Drawing.Point(3, 3);
|
||||
this.lstCollective.Name = "lstCollective";
|
||||
this.lstCollective.Size = new System.Drawing.Size(245, 337);
|
||||
this.lstCollective.TabIndex = 0;
|
||||
this.lstCollective.SelectedIndexChanged += new System.EventHandler(this.lstCollective_SelectedIndexChanged);
|
||||
//
|
||||
// tblButton
|
||||
//
|
||||
this.tblButton.AutoSize = true;
|
||||
|
@ -102,12 +91,22 @@
|
|||
this.btnDel.UseVisualStyleBackColor = true;
|
||||
this.btnDel.Click += new System.EventHandler(this.btnDel_Click);
|
||||
//
|
||||
// CollectiveList
|
||||
// List
|
||||
//
|
||||
this.List.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.List.FormattingEnabled = true;
|
||||
this.List.ItemHeight = 15;
|
||||
this.List.Location = new System.Drawing.Point(3, 3);
|
||||
this.List.Name = "List";
|
||||
this.List.Size = new System.Drawing.Size(245, 337);
|
||||
this.List.TabIndex = 2;
|
||||
//
|
||||
// CollectiveListAddDelete
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.Controls.Add(this.tblCollective);
|
||||
this.Name = "CollectiveList";
|
||||
this.Name = "CollectiveListAddDelete";
|
||||
this.Size = new System.Drawing.Size(251, 381);
|
||||
this.tblCollective.ResumeLayout(false);
|
||||
this.tblCollective.PerformLayout();
|
||||
|
@ -119,9 +118,9 @@
|
|||
#endregion
|
||||
|
||||
private TableLayoutPanel tblCollective;
|
||||
private ListBox lstCollective;
|
||||
private TableLayoutPanel tblButton;
|
||||
private Button btnAdd;
|
||||
private Button btnDel;
|
||||
public CollectiveListBox List;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,51 @@
|
|||
using LibW4M.Data;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace W4Gui.Components
|
||||
{
|
||||
public partial class CollectiveListAddDelete : UserControl
|
||||
{
|
||||
public event EventHandler<EventArgs> NewButton;
|
||||
public event EventHandler<EventArgs> DeleteButton;
|
||||
public CollectiveListAddDelete()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
protected virtual void OnNewButton(EventArgs e)
|
||||
{
|
||||
EventHandler<EventArgs> handler = NewButton;
|
||||
if (handler != null)
|
||||
{
|
||||
handler(this, e);
|
||||
}
|
||||
}
|
||||
protected virtual void OnDeleteButton(EventArgs e)
|
||||
{
|
||||
EventHandler<EventArgs> handler = DeleteButton;
|
||||
if (handler != null)
|
||||
{
|
||||
handler(this, e);
|
||||
}
|
||||
}
|
||||
|
||||
private void btnAdd_Click(object sender, EventArgs e)
|
||||
{
|
||||
OnNewButton(e);
|
||||
}
|
||||
|
||||
private void btnDel_Click(object sender, EventArgs e)
|
||||
{
|
||||
// if (lstCollective.SelectedIndex >= 0)
|
||||
OnDeleteButton(e);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -2,17 +2,19 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace W4Gui.Components
|
||||
{
|
||||
public partial class CollectiveList : UserControl
|
||||
public partial class CollectiveListBox : ListBox
|
||||
{
|
||||
public CollectiveListBox()
|
||||
{
|
||||
this.SelectedIndexChanged += selectedIndexChanged;
|
||||
}
|
||||
private int lastSelected = -1;
|
||||
public int LastSelected
|
||||
{
|
||||
|
@ -25,7 +27,7 @@ namespace W4Gui.Components
|
|||
{
|
||||
get
|
||||
{
|
||||
return lstCollective.SelectedIndex;
|
||||
return this.SelectedIndex;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -37,35 +39,17 @@ namespace W4Gui.Components
|
|||
}
|
||||
}
|
||||
|
||||
public event EventHandler<EventArgs> Unselected;
|
||||
public event EventHandler<EventArgs> Selected;
|
||||
public event EventHandler<EventArgs> NewButton;
|
||||
public event EventHandler<EventArgs> DeleteButton;
|
||||
public CollectiveList()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
private void unselectWithoutSaveTrigger()
|
||||
{
|
||||
this.lastSelected = -1;
|
||||
lstCollective.SelectedIndex = -1;
|
||||
}
|
||||
protected virtual void OnNewButton(EventArgs e)
|
||||
{
|
||||
EventHandler<EventArgs> handler = NewButton;
|
||||
if (handler != null)
|
||||
{
|
||||
handler(this, e);
|
||||
}
|
||||
}
|
||||
protected virtual void OnDeleteButton(EventArgs e)
|
||||
{
|
||||
EventHandler<EventArgs> handler = DeleteButton;
|
||||
if (handler != null)
|
||||
{
|
||||
handler(this, e);
|
||||
}
|
||||
this.SelectedIndex = -1;
|
||||
}
|
||||
|
||||
|
||||
public event EventHandler<EventArgs> Unselected;
|
||||
public event EventHandler<EventArgs> Selected;
|
||||
|
||||
|
||||
protected virtual void OnUnselected(EventArgs e)
|
||||
{
|
||||
EventHandler<EventArgs> handler = Unselected;
|
||||
|
@ -74,10 +58,6 @@ namespace W4Gui.Components
|
|||
handler(this, e);
|
||||
}
|
||||
}
|
||||
private string formatName(string name)
|
||||
{
|
||||
return (name);
|
||||
}
|
||||
protected virtual void OnSelected(EventArgs e)
|
||||
{
|
||||
EventHandler<EventArgs> handler = Selected;
|
||||
|
@ -87,7 +67,7 @@ namespace W4Gui.Components
|
|||
}
|
||||
}
|
||||
|
||||
private void lstCollective_SelectedIndexChanged(object sender, EventArgs e)
|
||||
private void selectedIndexChanged(object? sender, EventArgs e)
|
||||
{
|
||||
if (LastSelected >= 0 && LastSelected != CurrentlySelected)
|
||||
OnUnselected(e);
|
||||
|
@ -98,41 +78,31 @@ namespace W4Gui.Components
|
|||
lastSelected = CurrentlySelected;
|
||||
}
|
||||
|
||||
private void btnAdd_Click(object sender, EventArgs e)
|
||||
{
|
||||
OnNewButton(e);
|
||||
}
|
||||
|
||||
private void btnDel_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (lstCollective.SelectedIndex >= 0)
|
||||
OnDeleteButton(e);
|
||||
}
|
||||
|
||||
public void Add(string name)
|
||||
{
|
||||
lstCollective.Items.Add(formatName(name));
|
||||
this.Items.Add(name);
|
||||
}
|
||||
|
||||
public void Delete(int idx)
|
||||
{
|
||||
unselectWithoutSaveTrigger();
|
||||
lstCollective.Items.RemoveAt(idx);
|
||||
this.Items.RemoveAt(idx);
|
||||
}
|
||||
|
||||
public void UpdateName(int idx, string name)
|
||||
{
|
||||
lstCollective.Items[idx] = formatName(name);
|
||||
this.Items[idx] = name;
|
||||
}
|
||||
public void LoadCollective(SaveDataCollective collective)
|
||||
{
|
||||
unselectWithoutSaveTrigger();
|
||||
lstCollective.Items.Clear();
|
||||
this.Items.Clear();
|
||||
for (int i = 0; i < collective.Length; i++)
|
||||
{
|
||||
string name = collective[i].FriendlyName;
|
||||
lstCollective.Items.Add(formatName(name));
|
||||
this.Items.Add(name);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,159 @@
|
|||
namespace W4Gui.Components
|
||||
{
|
||||
partial class IntList
|
||||
{
|
||||
/// <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 Component 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.tblSelectorUpDwnSep = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.numberList = new System.Windows.Forms.ComboBox();
|
||||
this.valueBox = new W4Gui.Components.IntUpDown();
|
||||
this.tblIntLstButtonsSep = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.tblButtonSep = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.btnAddNumber = new System.Windows.Forms.Button();
|
||||
this.btnDelNumber = new System.Windows.Forms.Button();
|
||||
this.tblSelectorUpDwnSep.SuspendLayout();
|
||||
this.tblIntLstButtonsSep.SuspendLayout();
|
||||
this.tblButtonSep.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// tblSelectorUpDwnSep
|
||||
//
|
||||
this.tblSelectorUpDwnSep.AutoSize = true;
|
||||
this.tblSelectorUpDwnSep.ColumnCount = 2;
|
||||
this.tblSelectorUpDwnSep.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
|
||||
this.tblSelectorUpDwnSep.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
|
||||
this.tblSelectorUpDwnSep.Controls.Add(this.numberList, 0, 0);
|
||||
this.tblSelectorUpDwnSep.Controls.Add(this.valueBox, 1, 0);
|
||||
this.tblSelectorUpDwnSep.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.tblSelectorUpDwnSep.Location = new System.Drawing.Point(3, 3);
|
||||
this.tblSelectorUpDwnSep.Name = "tblSelectorUpDwnSep";
|
||||
this.tblSelectorUpDwnSep.RowCount = 1;
|
||||
this.tblSelectorUpDwnSep.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
this.tblSelectorUpDwnSep.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
|
||||
this.tblSelectorUpDwnSep.Size = new System.Drawing.Size(496, 29);
|
||||
this.tblSelectorUpDwnSep.TabIndex = 0;
|
||||
//
|
||||
// numberList
|
||||
//
|
||||
this.numberList.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.numberList.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.numberList.FormattingEnabled = true;
|
||||
this.numberList.Location = new System.Drawing.Point(3, 3);
|
||||
this.numberList.Name = "numberList";
|
||||
this.numberList.Size = new System.Drawing.Size(159, 23);
|
||||
this.numberList.TabIndex = 0;
|
||||
this.numberList.SelectedIndexChanged += new System.EventHandler(this.numberList_SelectedIndexChanged);
|
||||
//
|
||||
// valueBox
|
||||
//
|
||||
this.valueBox.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.valueBox.Location = new System.Drawing.Point(168, 3);
|
||||
this.valueBox.Name = "valueBox";
|
||||
this.valueBox.Size = new System.Drawing.Size(325, 23);
|
||||
this.valueBox.TabIndex = 1;
|
||||
this.valueBox.Text = "0";
|
||||
this.valueBox.Value = 0;
|
||||
//
|
||||
// tblIntLstButtonsSep
|
||||
//
|
||||
this.tblIntLstButtonsSep.ColumnCount = 1;
|
||||
this.tblIntLstButtonsSep.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
||||
this.tblIntLstButtonsSep.Controls.Add(this.tblSelectorUpDwnSep, 0, 0);
|
||||
this.tblIntLstButtonsSep.Controls.Add(this.tblButtonSep, 0, 1);
|
||||
this.tblIntLstButtonsSep.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.tblIntLstButtonsSep.Location = new System.Drawing.Point(0, 0);
|
||||
this.tblIntLstButtonsSep.Name = "tblIntLstButtonsSep";
|
||||
this.tblIntLstButtonsSep.RowCount = 2;
|
||||
this.tblIntLstButtonsSep.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
this.tblIntLstButtonsSep.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
||||
this.tblIntLstButtonsSep.Size = new System.Drawing.Size(502, 89);
|
||||
this.tblIntLstButtonsSep.TabIndex = 1;
|
||||
//
|
||||
// tblButtonSep
|
||||
//
|
||||
this.tblButtonSep.ColumnCount = 2;
|
||||
this.tblButtonSep.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
|
||||
this.tblButtonSep.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
|
||||
this.tblButtonSep.Controls.Add(this.btnAddNumber, 0, 0);
|
||||
this.tblButtonSep.Controls.Add(this.btnDelNumber, 1, 0);
|
||||
this.tblButtonSep.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tblButtonSep.Location = new System.Drawing.Point(3, 38);
|
||||
this.tblButtonSep.Name = "tblButtonSep";
|
||||
this.tblButtonSep.RowCount = 1;
|
||||
this.tblButtonSep.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
||||
this.tblButtonSep.Size = new System.Drawing.Size(496, 48);
|
||||
this.tblButtonSep.TabIndex = 1;
|
||||
//
|
||||
// btnAddNumber
|
||||
//
|
||||
this.btnAddNumber.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.btnAddNumber.Location = new System.Drawing.Point(3, 3);
|
||||
this.btnAddNumber.Name = "btnAddNumber";
|
||||
this.btnAddNumber.Size = new System.Drawing.Size(242, 42);
|
||||
this.btnAddNumber.TabIndex = 0;
|
||||
this.btnAddNumber.Text = "Add New Number";
|
||||
this.btnAddNumber.UseVisualStyleBackColor = true;
|
||||
this.btnAddNumber.Click += new System.EventHandler(this.btnAddNumber_Click);
|
||||
//
|
||||
// btnDelNumber
|
||||
//
|
||||
this.btnDelNumber.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.btnDelNumber.Location = new System.Drawing.Point(251, 3);
|
||||
this.btnDelNumber.Name = "btnDelNumber";
|
||||
this.btnDelNumber.Size = new System.Drawing.Size(242, 42);
|
||||
this.btnDelNumber.TabIndex = 1;
|
||||
this.btnDelNumber.Text = "Delete Current Number";
|
||||
this.btnDelNumber.UseVisualStyleBackColor = true;
|
||||
this.btnDelNumber.Click += new System.EventHandler(this.btnDelNumber_Click);
|
||||
//
|
||||
// IntList
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.AutoSize = true;
|
||||
this.Controls.Add(this.tblIntLstButtonsSep);
|
||||
this.Name = "IntList";
|
||||
this.Size = new System.Drawing.Size(502, 89);
|
||||
this.tblSelectorUpDwnSep.ResumeLayout(false);
|
||||
this.tblIntLstButtonsSep.ResumeLayout(false);
|
||||
this.tblIntLstButtonsSep.PerformLayout();
|
||||
this.tblButtonSep.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private TableLayoutPanel tblSelectorUpDwnSep;
|
||||
private ComboBox numberList;
|
||||
private IntUpDown valueBox;
|
||||
private TableLayoutPanel tblIntLstButtonsSep;
|
||||
private TableLayoutPanel tblButtonSep;
|
||||
private Button btnAddNumber;
|
||||
private Button btnDelNumber;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,102 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace W4Gui.Components
|
||||
{
|
||||
public partial class IntList : UserControl
|
||||
{
|
||||
private int lastIndex = -1;
|
||||
private string label = "%n";
|
||||
private List<int> valuesList = new List<int>();
|
||||
public string Label
|
||||
{
|
||||
get
|
||||
{
|
||||
return label;
|
||||
}
|
||||
set
|
||||
{
|
||||
label = value;
|
||||
createNumbersList();
|
||||
}
|
||||
}
|
||||
|
||||
public int[] Values
|
||||
{
|
||||
get
|
||||
{
|
||||
this.save();
|
||||
return this.valuesList.ToArray();
|
||||
}
|
||||
}
|
||||
private string formatStr(int idx)
|
||||
{
|
||||
return label.Replace("%n", (idx + 1).ToString());
|
||||
}
|
||||
public void DelInt(int idx)
|
||||
{
|
||||
this.valuesList.RemoveAt(idx);
|
||||
this.numberList.Items.RemoveAt(idx);
|
||||
createNumbersList();
|
||||
}
|
||||
|
||||
public void AddInt(int value)
|
||||
{
|
||||
int idx = this.valuesList.Count;
|
||||
this.valuesList.Add(value);
|
||||
this.numberList.Items.Add(formatStr(idx));
|
||||
}
|
||||
private void createNumbersList()
|
||||
{
|
||||
this.save();
|
||||
this.numberList.Items.Clear();
|
||||
for (int i = 0; i < valuesList.Count; i++)
|
||||
this.numberList.Items.Add(formatStr(i));
|
||||
|
||||
lastIndex = -1;
|
||||
|
||||
}
|
||||
|
||||
public IntList()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
private void save()
|
||||
{
|
||||
if (lastIndex >= 0)
|
||||
valuesList[lastIndex] = valueBox.Value;
|
||||
}
|
||||
|
||||
private void load()
|
||||
{
|
||||
if (numberList.SelectedIndex >= 0)
|
||||
valueBox.Value = valuesList[numberList.SelectedIndex];
|
||||
}
|
||||
|
||||
private void numberList_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.save();
|
||||
this.load();
|
||||
|
||||
lastIndex = numberList.SelectedIndex;
|
||||
}
|
||||
|
||||
private void btnAddNumber_Click(object sender, EventArgs e)
|
||||
{
|
||||
AddInt(0);
|
||||
numberList.SelectedIndex = valuesList.Count - 1;
|
||||
}
|
||||
|
||||
private void btnDelNumber_Click(object sender, EventArgs e)
|
||||
{
|
||||
DelInt(numberList.SelectedIndex);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,60 @@
|
|||
<root>
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
|
@ -129,12 +129,12 @@
|
|||
this.newEntry.TabIndex = 4;
|
||||
this.newEntry.KeyDown += new System.Windows.Forms.KeyEventHandler(this.newEntry_KeyDown);
|
||||
//
|
||||
// ListWithAddAndDel
|
||||
// ListAddUpdateDel
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.Controls.Add(this.tableWListAndButtons);
|
||||
this.Name = "ListWithAddAndDel";
|
||||
this.Name = "ListAddUpdateDel";
|
||||
this.Size = new System.Drawing.Size(517, 301);
|
||||
this.tableWListAndButtons.ResumeLayout(false);
|
||||
this.tableWListAndButtons.PerformLayout();
|
||||
|
|
|
@ -0,0 +1,884 @@
|
|||
namespace W4Gui.Components
|
||||
{
|
||||
partial class TeamsPanel
|
||||
{
|
||||
/// <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 Component 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.teamTabControl = new System.Windows.Forms.TabControl();
|
||||
this.generalTab = new System.Windows.Forms.TabPage();
|
||||
this.tblGeneral = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.lblWormName = new System.Windows.Forms.Label();
|
||||
this.lblSkillLevel = new System.Windows.Forms.Label();
|
||||
this.lblTeamName = new System.Windows.Forms.Label();
|
||||
this.selName = new System.Windows.Forms.TextBox();
|
||||
this.selSkill = new System.Windows.Forms.ComboBox();
|
||||
this.selWorms = new W4Gui.Components.ListAddUpdateDel();
|
||||
this.apperanceTab = new System.Windows.Forms.TabPage();
|
||||
this.tblApperance = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.selPlayer = new System.Windows.Forms.TextBox();
|
||||
this.lblPlayer = new System.Windows.Forms.Label();
|
||||
this.lblGlasses = new System.Windows.Forms.Label();
|
||||
this.lblFace = new System.Windows.Forms.Label();
|
||||
this.lblGloves = new System.Windows.Forms.Label();
|
||||
this.lblHat = new System.Windows.Forms.Label();
|
||||
this.lblSpeech = new System.Windows.Forms.Label();
|
||||
this.lblGrave = new System.Windows.Forms.Label();
|
||||
this.lblFlag = new System.Windows.Forms.Label();
|
||||
this.selFlag = new System.Windows.Forms.TextBox();
|
||||
this.selGrave = new W4Gui.Components.IntUpDown();
|
||||
this.selSpeech = new System.Windows.Forms.TextBox();
|
||||
this.selHat = new System.Windows.Forms.TextBox();
|
||||
this.selGloves = new System.Windows.Forms.TextBox();
|
||||
this.selGlasses = new System.Windows.Forms.TextBox();
|
||||
this.selFace = new System.Windows.Forms.TextBox();
|
||||
this.storyTab = new System.Windows.Forms.TabPage();
|
||||
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.tblStoryFlags = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.lblStoryMissionsComplete = new System.Windows.Forms.Label();
|
||||
this.lblStoryChapter = new System.Windows.Forms.Label();
|
||||
this.lblNewTeam = new System.Windows.Forms.Label();
|
||||
this.lblTutorialsDone = new System.Windows.Forms.Label();
|
||||
this.selTutorialsDone = new W4Gui.Components.IntUpDown();
|
||||
this.selNewTeam = new W4Gui.Components.IntUpDown();
|
||||
this.selStoryChapter = new W4Gui.Components.IntUpDown();
|
||||
this.selStoryMissionsCompleted = new W4Gui.Components.IntList();
|
||||
this.tblStoryToggles = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.selInGame = new System.Windows.Forms.CheckBox();
|
||||
this.selAllTutorialsDone = new System.Windows.Forms.CheckBox();
|
||||
this.selAllMissionsDone = new System.Windows.Forms.CheckBox();
|
||||
this.weaponTab = new System.Windows.Forms.TabPage();
|
||||
this.tblWeaponSettings = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.tblClusterSep = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.brnEditCluster = new System.Windows.Forms.Button();
|
||||
this.btnChangeCluster = new System.Windows.Forms.Button();
|
||||
this.lblTeamWeaponCluster = new System.Windows.Forms.Label();
|
||||
this.lblTeamWeapon = new System.Windows.Forms.Label();
|
||||
this.lblSWeapon = new System.Windows.Forms.Label();
|
||||
this.lblTeamWeaponName = new System.Windows.Forms.Label();
|
||||
this.selTeamWeapName = new System.Windows.Forms.TextBox();
|
||||
this.selSWeapon = new W4Gui.Components.IntUpDown();
|
||||
this.tblWeapButtonSep = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.btnEditWeapon = new System.Windows.Forms.Button();
|
||||
this.btnChangeWeapon = new System.Windows.Forms.Button();
|
||||
this.teamTabControl.SuspendLayout();
|
||||
this.generalTab.SuspendLayout();
|
||||
this.tblGeneral.SuspendLayout();
|
||||
this.apperanceTab.SuspendLayout();
|
||||
this.tblApperance.SuspendLayout();
|
||||
this.storyTab.SuspendLayout();
|
||||
this.tableLayoutPanel1.SuspendLayout();
|
||||
this.tblStoryFlags.SuspendLayout();
|
||||
this.tblStoryToggles.SuspendLayout();
|
||||
this.weaponTab.SuspendLayout();
|
||||
this.tblWeaponSettings.SuspendLayout();
|
||||
this.tblClusterSep.SuspendLayout();
|
||||
this.tblWeapButtonSep.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// teamTabControl
|
||||
//
|
||||
this.teamTabControl.Controls.Add(this.generalTab);
|
||||
this.teamTabControl.Controls.Add(this.apperanceTab);
|
||||
this.teamTabControl.Controls.Add(this.storyTab);
|
||||
this.teamTabControl.Controls.Add(this.weaponTab);
|
||||
this.teamTabControl.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.teamTabControl.HotTrack = true;
|
||||
this.teamTabControl.Location = new System.Drawing.Point(0, 0);
|
||||
this.teamTabControl.Name = "teamTabControl";
|
||||
this.teamTabControl.SelectedIndex = 0;
|
||||
this.teamTabControl.Size = new System.Drawing.Size(707, 419);
|
||||
this.teamTabControl.TabIndex = 1;
|
||||
//
|
||||
// generalTab
|
||||
//
|
||||
this.generalTab.BackColor = System.Drawing.Color.Transparent;
|
||||
this.generalTab.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
|
||||
this.generalTab.Controls.Add(this.tblGeneral);
|
||||
this.generalTab.Location = new System.Drawing.Point(4, 24);
|
||||
this.generalTab.Name = "generalTab";
|
||||
this.generalTab.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.generalTab.Size = new System.Drawing.Size(699, 391);
|
||||
this.generalTab.TabIndex = 0;
|
||||
this.generalTab.Text = "General";
|
||||
//
|
||||
// tblGeneral
|
||||
//
|
||||
this.tblGeneral.AutoSize = true;
|
||||
this.tblGeneral.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Inset;
|
||||
this.tblGeneral.ColumnCount = 2;
|
||||
this.tblGeneral.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
|
||||
this.tblGeneral.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
||||
this.tblGeneral.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
|
||||
this.tblGeneral.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
|
||||
this.tblGeneral.Controls.Add(this.lblWormName, 0, 2);
|
||||
this.tblGeneral.Controls.Add(this.lblSkillLevel, 0, 1);
|
||||
this.tblGeneral.Controls.Add(this.lblTeamName, 0, 0);
|
||||
this.tblGeneral.Controls.Add(this.selName, 1, 0);
|
||||
this.tblGeneral.Controls.Add(this.selSkill, 1, 1);
|
||||
this.tblGeneral.Controls.Add(this.selWorms, 1, 2);
|
||||
this.tblGeneral.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.tblGeneral.Location = new System.Drawing.Point(3, 3);
|
||||
this.tblGeneral.Name = "tblGeneral";
|
||||
this.tblGeneral.RowCount = 3;
|
||||
this.tblGeneral.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
this.tblGeneral.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
this.tblGeneral.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
this.tblGeneral.Size = new System.Drawing.Size(689, 348);
|
||||
this.tblGeneral.TabIndex = 0;
|
||||
//
|
||||
// lblWormName
|
||||
//
|
||||
this.lblWormName.AutoSize = true;
|
||||
this.lblWormName.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.lblWormName.Location = new System.Drawing.Point(5, 64);
|
||||
this.lblWormName.Name = "lblWormName";
|
||||
this.lblWormName.Size = new System.Drawing.Size(83, 282);
|
||||
this.lblWormName.TabIndex = 4;
|
||||
this.lblWormName.Text = "Worm Names:";
|
||||
this.lblWormName.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// lblSkillLevel
|
||||
//
|
||||
this.lblSkillLevel.AutoSize = true;
|
||||
this.lblSkillLevel.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.lblSkillLevel.Location = new System.Drawing.Point(5, 33);
|
||||
this.lblSkillLevel.Name = "lblSkillLevel";
|
||||
this.lblSkillLevel.Size = new System.Drawing.Size(83, 29);
|
||||
this.lblSkillLevel.TabIndex = 2;
|
||||
this.lblSkillLevel.Text = "Skill Level:";
|
||||
this.lblSkillLevel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// lblTeamName
|
||||
//
|
||||
this.lblTeamName.AutoSize = true;
|
||||
this.lblTeamName.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.lblTeamName.Location = new System.Drawing.Point(5, 2);
|
||||
this.lblTeamName.Name = "lblTeamName";
|
||||
this.lblTeamName.Size = new System.Drawing.Size(83, 29);
|
||||
this.lblTeamName.TabIndex = 0;
|
||||
this.lblTeamName.Text = "Name:";
|
||||
this.lblTeamName.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// selName
|
||||
//
|
||||
this.selName.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.selName.Location = new System.Drawing.Point(96, 5);
|
||||
this.selName.Name = "selName";
|
||||
this.selName.PlaceholderText = "Team Name";
|
||||
this.selName.Size = new System.Drawing.Size(588, 23);
|
||||
this.selName.TabIndex = 1;
|
||||
//
|
||||
// selSkill
|
||||
//
|
||||
this.selSkill.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.selSkill.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.selSkill.FormattingEnabled = true;
|
||||
this.selSkill.Items.AddRange(new object[] {
|
||||
"Player Controlled",
|
||||
"CPU Level 1",
|
||||
"CPU Level 2",
|
||||
"CPU Level 3",
|
||||
"CPU Level 4",
|
||||
"CPU Level 5"});
|
||||
this.selSkill.Location = new System.Drawing.Point(96, 36);
|
||||
this.selSkill.Name = "selSkill";
|
||||
this.selSkill.Size = new System.Drawing.Size(588, 23);
|
||||
this.selSkill.TabIndex = 3;
|
||||
//
|
||||
// selWorms
|
||||
//
|
||||
this.selWorms.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.selWorms.Location = new System.Drawing.Point(96, 67);
|
||||
this.selWorms.Name = "selWorms";
|
||||
this.selWorms.Size = new System.Drawing.Size(588, 276);
|
||||
this.selWorms.TabIndex = 5;
|
||||
//
|
||||
// apperanceTab
|
||||
//
|
||||
this.apperanceTab.BackColor = System.Drawing.Color.Transparent;
|
||||
this.apperanceTab.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
|
||||
this.apperanceTab.Controls.Add(this.tblApperance);
|
||||
this.apperanceTab.Location = new System.Drawing.Point(4, 24);
|
||||
this.apperanceTab.Name = "apperanceTab";
|
||||
this.apperanceTab.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.apperanceTab.Size = new System.Drawing.Size(699, 391);
|
||||
this.apperanceTab.TabIndex = 1;
|
||||
this.apperanceTab.Text = "Appearance";
|
||||
//
|
||||
// tblApperance
|
||||
//
|
||||
this.tblApperance.AutoSize = true;
|
||||
this.tblApperance.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Inset;
|
||||
this.tblApperance.ColumnCount = 2;
|
||||
this.tblApperance.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
|
||||
this.tblApperance.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
||||
this.tblApperance.Controls.Add(this.selPlayer, 1, 7);
|
||||
this.tblApperance.Controls.Add(this.lblPlayer, 0, 7);
|
||||
this.tblApperance.Controls.Add(this.lblGlasses, 0, 5);
|
||||
this.tblApperance.Controls.Add(this.lblFace, 0, 6);
|
||||
this.tblApperance.Controls.Add(this.lblGloves, 0, 4);
|
||||
this.tblApperance.Controls.Add(this.lblHat, 0, 3);
|
||||
this.tblApperance.Controls.Add(this.lblSpeech, 0, 2);
|
||||
this.tblApperance.Controls.Add(this.lblGrave, 0, 1);
|
||||
this.tblApperance.Controls.Add(this.lblFlag, 0, 0);
|
||||
this.tblApperance.Controls.Add(this.selFlag, 1, 0);
|
||||
this.tblApperance.Controls.Add(this.selGrave, 1, 1);
|
||||
this.tblApperance.Controls.Add(this.selSpeech, 1, 2);
|
||||
this.tblApperance.Controls.Add(this.selHat, 1, 3);
|
||||
this.tblApperance.Controls.Add(this.selGloves, 1, 4);
|
||||
this.tblApperance.Controls.Add(this.selGlasses, 1, 5);
|
||||
this.tblApperance.Controls.Add(this.selFace, 1, 6);
|
||||
this.tblApperance.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.tblApperance.Location = new System.Drawing.Point(3, 3);
|
||||
this.tblApperance.Name = "tblApperance";
|
||||
this.tblApperance.RowCount = 8;
|
||||
this.tblApperance.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
this.tblApperance.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
this.tblApperance.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
this.tblApperance.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
this.tblApperance.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
this.tblApperance.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
this.tblApperance.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
this.tblApperance.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
||||
this.tblApperance.Size = new System.Drawing.Size(689, 250);
|
||||
this.tblApperance.TabIndex = 1;
|
||||
//
|
||||
// selPlayer
|
||||
//
|
||||
this.selPlayer.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.selPlayer.Location = new System.Drawing.Point(96, 222);
|
||||
this.selPlayer.Name = "selPlayer";
|
||||
this.selPlayer.Size = new System.Drawing.Size(588, 23);
|
||||
this.selPlayer.TabIndex = 17;
|
||||
//
|
||||
// lblPlayer
|
||||
//
|
||||
this.lblPlayer.AutoSize = true;
|
||||
this.lblPlayer.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.lblPlayer.Location = new System.Drawing.Point(5, 219);
|
||||
this.lblPlayer.Name = "lblPlayer";
|
||||
this.lblPlayer.Size = new System.Drawing.Size(83, 29);
|
||||
this.lblPlayer.TabIndex = 16;
|
||||
this.lblPlayer.Text = "Player:";
|
||||
this.lblPlayer.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// lblGlasses
|
||||
//
|
||||
this.lblGlasses.AutoSize = true;
|
||||
this.lblGlasses.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.lblGlasses.Location = new System.Drawing.Point(5, 157);
|
||||
this.lblGlasses.Name = "lblGlasses";
|
||||
this.lblGlasses.Size = new System.Drawing.Size(83, 29);
|
||||
this.lblGlasses.TabIndex = 11;
|
||||
this.lblGlasses.Text = "Glasses:";
|
||||
this.lblGlasses.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// lblFace
|
||||
//
|
||||
this.lblFace.AutoSize = true;
|
||||
this.lblFace.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.lblFace.Location = new System.Drawing.Point(5, 188);
|
||||
this.lblFace.Name = "lblFace";
|
||||
this.lblFace.Size = new System.Drawing.Size(83, 29);
|
||||
this.lblFace.TabIndex = 10;
|
||||
this.lblFace.Text = "Face:";
|
||||
this.lblFace.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// lblGloves
|
||||
//
|
||||
this.lblGloves.AutoSize = true;
|
||||
this.lblGloves.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.lblGloves.Location = new System.Drawing.Point(5, 126);
|
||||
this.lblGloves.Name = "lblGloves";
|
||||
this.lblGloves.Size = new System.Drawing.Size(83, 29);
|
||||
this.lblGloves.TabIndex = 9;
|
||||
this.lblGloves.Text = "Gloves:";
|
||||
this.lblGloves.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// lblHat
|
||||
//
|
||||
this.lblHat.AutoSize = true;
|
||||
this.lblHat.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.lblHat.Location = new System.Drawing.Point(5, 95);
|
||||
this.lblHat.Name = "lblHat";
|
||||
this.lblHat.Size = new System.Drawing.Size(83, 29);
|
||||
this.lblHat.TabIndex = 8;
|
||||
this.lblHat.Text = "Hat:";
|
||||
this.lblHat.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// lblSpeech
|
||||
//
|
||||
this.lblSpeech.AutoSize = true;
|
||||
this.lblSpeech.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.lblSpeech.Location = new System.Drawing.Point(5, 64);
|
||||
this.lblSpeech.Name = "lblSpeech";
|
||||
this.lblSpeech.Size = new System.Drawing.Size(83, 29);
|
||||
this.lblSpeech.TabIndex = 4;
|
||||
this.lblSpeech.Text = "Soundbank:";
|
||||
this.lblSpeech.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// lblGrave
|
||||
//
|
||||
this.lblGrave.AutoSize = true;
|
||||
this.lblGrave.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.lblGrave.Location = new System.Drawing.Point(5, 33);
|
||||
this.lblGrave.Name = "lblGrave";
|
||||
this.lblGrave.Size = new System.Drawing.Size(83, 29);
|
||||
this.lblGrave.TabIndex = 2;
|
||||
this.lblGrave.Text = "Gravestone ID:";
|
||||
this.lblGrave.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// lblFlag
|
||||
//
|
||||
this.lblFlag.AutoSize = true;
|
||||
this.lblFlag.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.lblFlag.Location = new System.Drawing.Point(5, 2);
|
||||
this.lblFlag.Name = "lblFlag";
|
||||
this.lblFlag.Size = new System.Drawing.Size(83, 29);
|
||||
this.lblFlag.TabIndex = 0;
|
||||
this.lblFlag.Text = "Flag:";
|
||||
this.lblFlag.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// selFlag
|
||||
//
|
||||
this.selFlag.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.selFlag.Location = new System.Drawing.Point(96, 5);
|
||||
this.selFlag.Name = "selFlag";
|
||||
this.selFlag.Size = new System.Drawing.Size(588, 23);
|
||||
this.selFlag.TabIndex = 1;
|
||||
//
|
||||
// selGrave
|
||||
//
|
||||
this.selGrave.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.selGrave.Location = new System.Drawing.Point(96, 36);
|
||||
this.selGrave.Name = "selGrave";
|
||||
this.selGrave.Size = new System.Drawing.Size(588, 23);
|
||||
this.selGrave.TabIndex = 6;
|
||||
this.selGrave.Text = "0";
|
||||
this.selGrave.Value = 0;
|
||||
//
|
||||
// selSpeech
|
||||
//
|
||||
this.selSpeech.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.selSpeech.Location = new System.Drawing.Point(96, 67);
|
||||
this.selSpeech.Name = "selSpeech";
|
||||
this.selSpeech.Size = new System.Drawing.Size(588, 23);
|
||||
this.selSpeech.TabIndex = 7;
|
||||
//
|
||||
// selHat
|
||||
//
|
||||
this.selHat.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.selHat.Location = new System.Drawing.Point(96, 98);
|
||||
this.selHat.Name = "selHat";
|
||||
this.selHat.Size = new System.Drawing.Size(588, 23);
|
||||
this.selHat.TabIndex = 12;
|
||||
//
|
||||
// selGloves
|
||||
//
|
||||
this.selGloves.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.selGloves.Location = new System.Drawing.Point(96, 129);
|
||||
this.selGloves.Name = "selGloves";
|
||||
this.selGloves.Size = new System.Drawing.Size(588, 23);
|
||||
this.selGloves.TabIndex = 13;
|
||||
//
|
||||
// selGlasses
|
||||
//
|
||||
this.selGlasses.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.selGlasses.Location = new System.Drawing.Point(96, 160);
|
||||
this.selGlasses.Name = "selGlasses";
|
||||
this.selGlasses.Size = new System.Drawing.Size(588, 23);
|
||||
this.selGlasses.TabIndex = 14;
|
||||
//
|
||||
// selFace
|
||||
//
|
||||
this.selFace.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.selFace.Location = new System.Drawing.Point(96, 191);
|
||||
this.selFace.Name = "selFace";
|
||||
this.selFace.Size = new System.Drawing.Size(588, 23);
|
||||
this.selFace.TabIndex = 15;
|
||||
//
|
||||
// storyTab
|
||||
//
|
||||
this.storyTab.BackColor = System.Drawing.Color.Transparent;
|
||||
this.storyTab.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
|
||||
this.storyTab.Controls.Add(this.tableLayoutPanel1);
|
||||
this.storyTab.Location = new System.Drawing.Point(4, 24);
|
||||
this.storyTab.Name = "storyTab";
|
||||
this.storyTab.Size = new System.Drawing.Size(699, 391);
|
||||
this.storyTab.TabIndex = 2;
|
||||
this.storyTab.Text = "Story Flags";
|
||||
//
|
||||
// tableLayoutPanel1
|
||||
//
|
||||
this.tableLayoutPanel1.ColumnCount = 1;
|
||||
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
||||
this.tableLayoutPanel1.Controls.Add(this.tblStoryFlags, 0, 0);
|
||||
this.tableLayoutPanel1.Controls.Add(this.tblStoryToggles, 0, 1);
|
||||
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
|
||||
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
|
||||
this.tableLayoutPanel1.RowCount = 2;
|
||||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
||||
this.tableLayoutPanel1.Size = new System.Drawing.Size(695, 387);
|
||||
this.tableLayoutPanel1.TabIndex = 3;
|
||||
//
|
||||
// tblStoryFlags
|
||||
//
|
||||
this.tblStoryFlags.AutoSize = true;
|
||||
this.tblStoryFlags.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Inset;
|
||||
this.tblStoryFlags.ColumnCount = 2;
|
||||
this.tblStoryFlags.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
|
||||
this.tblStoryFlags.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
||||
this.tblStoryFlags.Controls.Add(this.lblStoryMissionsComplete, 0, 2);
|
||||
this.tblStoryFlags.Controls.Add(this.lblStoryChapter, 0, 3);
|
||||
this.tblStoryFlags.Controls.Add(this.lblNewTeam, 0, 1);
|
||||
this.tblStoryFlags.Controls.Add(this.lblTutorialsDone, 0, 0);
|
||||
this.tblStoryFlags.Controls.Add(this.selTutorialsDone, 1, 0);
|
||||
this.tblStoryFlags.Controls.Add(this.selNewTeam, 1, 1);
|
||||
this.tblStoryFlags.Controls.Add(this.selStoryChapter, 1, 3);
|
||||
this.tblStoryFlags.Controls.Add(this.selStoryMissionsCompleted, 1, 2);
|
||||
this.tblStoryFlags.Location = new System.Drawing.Point(3, 3);
|
||||
this.tblStoryFlags.Name = "tblStoryFlags";
|
||||
this.tblStoryFlags.RowCount = 4;
|
||||
this.tblStoryFlags.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
this.tblStoryFlags.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
this.tblStoryFlags.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
this.tblStoryFlags.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
this.tblStoryFlags.Size = new System.Drawing.Size(689, 192);
|
||||
this.tblStoryFlags.TabIndex = 2;
|
||||
//
|
||||
// lblStoryMissionsComplete
|
||||
//
|
||||
this.lblStoryMissionsComplete.AutoSize = true;
|
||||
this.lblStoryMissionsComplete.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.lblStoryMissionsComplete.Location = new System.Drawing.Point(5, 64);
|
||||
this.lblStoryMissionsComplete.Name = "lblStoryMissionsComplete";
|
||||
this.lblStoryMissionsComplete.Size = new System.Drawing.Size(141, 95);
|
||||
this.lblStoryMissionsComplete.TabIndex = 15;
|
||||
this.lblStoryMissionsComplete.Text = "Story Missions Complete:";
|
||||
this.lblStoryMissionsComplete.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// lblStoryChapter
|
||||
//
|
||||
this.lblStoryChapter.AutoSize = true;
|
||||
this.lblStoryChapter.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.lblStoryChapter.Location = new System.Drawing.Point(5, 161);
|
||||
this.lblStoryChapter.Name = "lblStoryChapter";
|
||||
this.lblStoryChapter.Size = new System.Drawing.Size(141, 29);
|
||||
this.lblStoryChapter.TabIndex = 4;
|
||||
this.lblStoryChapter.Text = "Story Chapter:";
|
||||
this.lblStoryChapter.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// lblNewTeam
|
||||
//
|
||||
this.lblNewTeam.AutoSize = true;
|
||||
this.lblNewTeam.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.lblNewTeam.Location = new System.Drawing.Point(5, 33);
|
||||
this.lblNewTeam.Name = "lblNewTeam";
|
||||
this.lblNewTeam.Size = new System.Drawing.Size(141, 29);
|
||||
this.lblNewTeam.TabIndex = 2;
|
||||
this.lblNewTeam.Text = "New Team:";
|
||||
this.lblNewTeam.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// lblTutorialsDone
|
||||
//
|
||||
this.lblTutorialsDone.AutoSize = true;
|
||||
this.lblTutorialsDone.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.lblTutorialsDone.Location = new System.Drawing.Point(5, 2);
|
||||
this.lblTutorialsDone.Name = "lblTutorialsDone";
|
||||
this.lblTutorialsDone.Size = new System.Drawing.Size(141, 29);
|
||||
this.lblTutorialsDone.TabIndex = 0;
|
||||
this.lblTutorialsDone.Text = "Tutorials Done:";
|
||||
this.lblTutorialsDone.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// selTutorialsDone
|
||||
//
|
||||
this.selTutorialsDone.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.selTutorialsDone.Location = new System.Drawing.Point(154, 5);
|
||||
this.selTutorialsDone.Name = "selTutorialsDone";
|
||||
this.selTutorialsDone.Size = new System.Drawing.Size(530, 23);
|
||||
this.selTutorialsDone.TabIndex = 12;
|
||||
this.selTutorialsDone.Text = "0";
|
||||
this.selTutorialsDone.Value = 0;
|
||||
//
|
||||
// selNewTeam
|
||||
//
|
||||
this.selNewTeam.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.selNewTeam.Location = new System.Drawing.Point(154, 36);
|
||||
this.selNewTeam.Name = "selNewTeam";
|
||||
this.selNewTeam.Size = new System.Drawing.Size(530, 23);
|
||||
this.selNewTeam.TabIndex = 13;
|
||||
this.selNewTeam.Text = "0";
|
||||
this.selNewTeam.Value = 0;
|
||||
//
|
||||
// selStoryChapter
|
||||
//
|
||||
this.selStoryChapter.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.selStoryChapter.Location = new System.Drawing.Point(154, 164);
|
||||
this.selStoryChapter.Name = "selStoryChapter";
|
||||
this.selStoryChapter.Size = new System.Drawing.Size(530, 23);
|
||||
this.selStoryChapter.TabIndex = 14;
|
||||
this.selStoryChapter.Text = "0";
|
||||
this.selStoryChapter.Value = 0;
|
||||
//
|
||||
// selStoryMissionsCompleted
|
||||
//
|
||||
this.selStoryMissionsCompleted.AutoSize = true;
|
||||
this.selStoryMissionsCompleted.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.selStoryMissionsCompleted.Label = "Mission %n Complete";
|
||||
this.selStoryMissionsCompleted.Location = new System.Drawing.Point(154, 67);
|
||||
this.selStoryMissionsCompleted.Name = "selStoryMissionsCompleted";
|
||||
this.selStoryMissionsCompleted.Size = new System.Drawing.Size(530, 89);
|
||||
this.selStoryMissionsCompleted.TabIndex = 16;
|
||||
//
|
||||
// tblStoryToggles
|
||||
//
|
||||
this.tblStoryToggles.AutoSize = true;
|
||||
this.tblStoryToggles.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Inset;
|
||||
this.tblStoryToggles.ColumnCount = 3;
|
||||
this.tblStoryToggles.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
|
||||
this.tblStoryToggles.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
|
||||
this.tblStoryToggles.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
|
||||
this.tblStoryToggles.Controls.Add(this.selInGame, 0, 0);
|
||||
this.tblStoryToggles.Controls.Add(this.selAllTutorialsDone, 1, 0);
|
||||
this.tblStoryToggles.Controls.Add(this.selAllMissionsDone, 2, 0);
|
||||
this.tblStoryToggles.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.tblStoryToggles.Location = new System.Drawing.Point(3, 201);
|
||||
this.tblStoryToggles.Name = "tblStoryToggles";
|
||||
this.tblStoryToggles.RowCount = 1;
|
||||
this.tblStoryToggles.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
this.tblStoryToggles.Size = new System.Drawing.Size(689, 29);
|
||||
this.tblStoryToggles.TabIndex = 3;
|
||||
//
|
||||
// selInGame
|
||||
//
|
||||
this.selInGame.AutoSize = true;
|
||||
this.selInGame.Location = new System.Drawing.Point(5, 5);
|
||||
this.selInGame.Name = "selInGame";
|
||||
this.selInGame.Size = new System.Drawing.Size(70, 19);
|
||||
this.selInGame.TabIndex = 0;
|
||||
this.selInGame.Text = "In Game";
|
||||
this.selInGame.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// selAllTutorialsDone
|
||||
//
|
||||
this.selAllTutorialsDone.AutoSize = true;
|
||||
this.selAllTutorialsDone.Location = new System.Drawing.Point(83, 5);
|
||||
this.selAllTutorialsDone.Name = "selAllTutorialsDone";
|
||||
this.selAllTutorialsDone.Size = new System.Drawing.Size(120, 19);
|
||||
this.selAllTutorialsDone.TabIndex = 1;
|
||||
this.selAllTutorialsDone.Text = "All Tutorials Done";
|
||||
this.selAllTutorialsDone.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// selAllMissionsDone
|
||||
//
|
||||
this.selAllMissionsDone.AutoSize = true;
|
||||
this.selAllMissionsDone.Location = new System.Drawing.Point(211, 5);
|
||||
this.selAllMissionsDone.Name = "selAllMissionsDone";
|
||||
this.selAllMissionsDone.Size = new System.Drawing.Size(120, 19);
|
||||
this.selAllMissionsDone.TabIndex = 2;
|
||||
this.selAllMissionsDone.Text = "All Missions Done";
|
||||
this.selAllMissionsDone.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// weaponTab
|
||||
//
|
||||
this.weaponTab.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
|
||||
this.weaponTab.Controls.Add(this.tblWeaponSettings);
|
||||
this.weaponTab.Location = new System.Drawing.Point(4, 24);
|
||||
this.weaponTab.Name = "weaponTab";
|
||||
this.weaponTab.Size = new System.Drawing.Size(699, 391);
|
||||
this.weaponTab.TabIndex = 3;
|
||||
this.weaponTab.Text = "Weapon Settings";
|
||||
this.weaponTab.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// tblWeaponSettings
|
||||
//
|
||||
this.tblWeaponSettings.AutoSize = true;
|
||||
this.tblWeaponSettings.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Inset;
|
||||
this.tblWeaponSettings.ColumnCount = 2;
|
||||
this.tblWeaponSettings.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
|
||||
this.tblWeaponSettings.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
||||
this.tblWeaponSettings.Controls.Add(this.tblClusterSep, 1, 3);
|
||||
this.tblWeaponSettings.Controls.Add(this.lblTeamWeaponCluster, 0, 3);
|
||||
this.tblWeaponSettings.Controls.Add(this.lblTeamWeapon, 0, 2);
|
||||
this.tblWeaponSettings.Controls.Add(this.lblSWeapon, 0, 1);
|
||||
this.tblWeaponSettings.Controls.Add(this.lblTeamWeaponName, 0, 0);
|
||||
this.tblWeaponSettings.Controls.Add(this.selTeamWeapName, 1, 0);
|
||||
this.tblWeaponSettings.Controls.Add(this.selSWeapon, 1, 1);
|
||||
this.tblWeaponSettings.Controls.Add(this.tblWeapButtonSep, 1, 2);
|
||||
this.tblWeaponSettings.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.tblWeaponSettings.Location = new System.Drawing.Point(0, 0);
|
||||
this.tblWeaponSettings.Name = "tblWeaponSettings";
|
||||
this.tblWeaponSettings.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tblWeaponSettings.RowCount = 4;
|
||||
this.tblWeaponSettings.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
this.tblWeaponSettings.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
this.tblWeaponSettings.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
this.tblWeaponSettings.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
this.tblWeaponSettings.Size = new System.Drawing.Size(695, 148);
|
||||
this.tblWeaponSettings.TabIndex = 1;
|
||||
//
|
||||
// tblClusterSep
|
||||
//
|
||||
this.tblClusterSep.AutoSize = true;
|
||||
this.tblClusterSep.ColumnCount = 2;
|
||||
this.tblClusterSep.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
|
||||
this.tblClusterSep.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
||||
this.tblClusterSep.Controls.Add(this.brnEditCluster, 0, 0);
|
||||
this.tblClusterSep.Controls.Add(this.btnChangeCluster, 1, 0);
|
||||
this.tblClusterSep.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tblClusterSep.Location = new System.Drawing.Point(143, 109);
|
||||
this.tblClusterSep.Name = "tblClusterSep";
|
||||
this.tblClusterSep.RowCount = 1;
|
||||
this.tblClusterSep.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
this.tblClusterSep.Size = new System.Drawing.Size(544, 31);
|
||||
this.tblClusterSep.TabIndex = 9;
|
||||
//
|
||||
// brnEditCluster
|
||||
//
|
||||
this.brnEditCluster.AutoSize = true;
|
||||
this.brnEditCluster.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.brnEditCluster.Location = new System.Drawing.Point(3, 3);
|
||||
this.brnEditCluster.Name = "brnEditCluster";
|
||||
this.brnEditCluster.Size = new System.Drawing.Size(288, 25);
|
||||
this.brnEditCluster.TabIndex = 0;
|
||||
this.brnEditCluster.Text = "Edit Weapon Cluster";
|
||||
this.brnEditCluster.UseVisualStyleBackColor = true;
|
||||
this.brnEditCluster.Click += new System.EventHandler(this.brnEditCluster_Click);
|
||||
//
|
||||
// btnChangeCluster
|
||||
//
|
||||
this.btnChangeCluster.AutoSize = true;
|
||||
this.btnChangeCluster.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.btnChangeCluster.Location = new System.Drawing.Point(297, 3);
|
||||
this.btnChangeCluster.Name = "btnChangeCluster";
|
||||
this.btnChangeCluster.Size = new System.Drawing.Size(244, 25);
|
||||
this.btnChangeCluster.TabIndex = 1;
|
||||
this.btnChangeCluster.Text = "Change Weapon Cluster";
|
||||
this.btnChangeCluster.UseVisualStyleBackColor = true;
|
||||
this.btnChangeCluster.Click += new System.EventHandler(this.btnChangeCluster_Click);
|
||||
//
|
||||
// lblTeamWeaponCluster
|
||||
//
|
||||
this.lblTeamWeaponCluster.AutoSize = true;
|
||||
this.lblTeamWeaponCluster.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.lblTeamWeaponCluster.Location = new System.Drawing.Point(8, 106);
|
||||
this.lblTeamWeaponCluster.Name = "lblTeamWeaponCluster";
|
||||
this.lblTeamWeaponCluster.Size = new System.Drawing.Size(127, 37);
|
||||
this.lblTeamWeaponCluster.TabIndex = 8;
|
||||
this.lblTeamWeaponCluster.Text = "Team Weapon Cluster:";
|
||||
this.lblTeamWeaponCluster.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// lblTeamWeapon
|
||||
//
|
||||
this.lblTeamWeapon.AutoSize = true;
|
||||
this.lblTeamWeapon.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.lblTeamWeapon.Location = new System.Drawing.Point(8, 67);
|
||||
this.lblTeamWeapon.Name = "lblTeamWeapon";
|
||||
this.lblTeamWeapon.Size = new System.Drawing.Size(127, 37);
|
||||
this.lblTeamWeapon.TabIndex = 4;
|
||||
this.lblTeamWeapon.Text = "Team Weapon:";
|
||||
this.lblTeamWeapon.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// lblSWeapon
|
||||
//
|
||||
this.lblSWeapon.AutoSize = true;
|
||||
this.lblSWeapon.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.lblSWeapon.Location = new System.Drawing.Point(8, 36);
|
||||
this.lblSWeapon.Name = "lblSWeapon";
|
||||
this.lblSWeapon.Size = new System.Drawing.Size(127, 29);
|
||||
this.lblSWeapon.TabIndex = 2;
|
||||
this.lblSWeapon.Text = "S Weapon:";
|
||||
this.lblSWeapon.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// lblTeamWeaponName
|
||||
//
|
||||
this.lblTeamWeaponName.AutoSize = true;
|
||||
this.lblTeamWeaponName.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.lblTeamWeaponName.Location = new System.Drawing.Point(8, 5);
|
||||
this.lblTeamWeaponName.Name = "lblTeamWeaponName";
|
||||
this.lblTeamWeaponName.Size = new System.Drawing.Size(127, 29);
|
||||
this.lblTeamWeaponName.TabIndex = 0;
|
||||
this.lblTeamWeaponName.Text = "Weapon Name:";
|
||||
this.lblTeamWeaponName.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// selTeamWeapName
|
||||
//
|
||||
this.selTeamWeapName.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.selTeamWeapName.Location = new System.Drawing.Point(143, 8);
|
||||
this.selTeamWeapName.Name = "selTeamWeapName";
|
||||
this.selTeamWeapName.PlaceholderText = "Team Weapon Name";
|
||||
this.selTeamWeapName.Size = new System.Drawing.Size(544, 23);
|
||||
this.selTeamWeapName.TabIndex = 1;
|
||||
//
|
||||
// selSWeapon
|
||||
//
|
||||
this.selSWeapon.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.selSWeapon.Location = new System.Drawing.Point(143, 39);
|
||||
this.selSWeapon.Name = "selSWeapon";
|
||||
this.selSWeapon.Size = new System.Drawing.Size(544, 23);
|
||||
this.selSWeapon.TabIndex = 6;
|
||||
this.selSWeapon.Text = "0";
|
||||
this.selSWeapon.Value = 0;
|
||||
//
|
||||
// tblWeapButtonSep
|
||||
//
|
||||
this.tblWeapButtonSep.AutoSize = true;
|
||||
this.tblWeapButtonSep.ColumnCount = 2;
|
||||
this.tblWeapButtonSep.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
|
||||
this.tblWeapButtonSep.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
||||
this.tblWeapButtonSep.Controls.Add(this.btnEditWeapon, 0, 0);
|
||||
this.tblWeapButtonSep.Controls.Add(this.btnChangeWeapon, 1, 0);
|
||||
this.tblWeapButtonSep.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tblWeapButtonSep.Location = new System.Drawing.Point(143, 70);
|
||||
this.tblWeapButtonSep.Name = "tblWeapButtonSep";
|
||||
this.tblWeapButtonSep.RowCount = 1;
|
||||
this.tblWeapButtonSep.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
this.tblWeapButtonSep.Size = new System.Drawing.Size(544, 31);
|
||||
this.tblWeapButtonSep.TabIndex = 7;
|
||||
//
|
||||
// btnEditWeapon
|
||||
//
|
||||
this.btnEditWeapon.AutoSize = true;
|
||||
this.btnEditWeapon.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.btnEditWeapon.Location = new System.Drawing.Point(3, 3);
|
||||
this.btnEditWeapon.Name = "btnEditWeapon";
|
||||
this.btnEditWeapon.Size = new System.Drawing.Size(288, 25);
|
||||
this.btnEditWeapon.TabIndex = 0;
|
||||
this.btnEditWeapon.Text = "Edit Weapon";
|
||||
this.btnEditWeapon.UseVisualStyleBackColor = true;
|
||||
this.btnEditWeapon.Click += new System.EventHandler(this.btnEditWeapon_Click);
|
||||
//
|
||||
// btnChangeWeapon
|
||||
//
|
||||
this.btnChangeWeapon.AutoSize = true;
|
||||
this.btnChangeWeapon.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.btnChangeWeapon.Location = new System.Drawing.Point(297, 3);
|
||||
this.btnChangeWeapon.Name = "btnChangeWeapon";
|
||||
this.btnChangeWeapon.Size = new System.Drawing.Size(244, 25);
|
||||
this.btnChangeWeapon.TabIndex = 1;
|
||||
this.btnChangeWeapon.Text = "Change Weapon";
|
||||
this.btnChangeWeapon.UseVisualStyleBackColor = true;
|
||||
this.btnChangeWeapon.Click += new System.EventHandler(this.btnChangeWeapon_Click);
|
||||
//
|
||||
// TeamsPanel
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.BackColor = System.Drawing.Color.LightGray;
|
||||
this.Controls.Add(this.teamTabControl);
|
||||
this.Name = "TeamsPanel";
|
||||
this.Size = new System.Drawing.Size(707, 419);
|
||||
this.teamTabControl.ResumeLayout(false);
|
||||
this.generalTab.ResumeLayout(false);
|
||||
this.generalTab.PerformLayout();
|
||||
this.tblGeneral.ResumeLayout(false);
|
||||
this.tblGeneral.PerformLayout();
|
||||
this.apperanceTab.ResumeLayout(false);
|
||||
this.apperanceTab.PerformLayout();
|
||||
this.tblApperance.ResumeLayout(false);
|
||||
this.tblApperance.PerformLayout();
|
||||
this.storyTab.ResumeLayout(false);
|
||||
this.tableLayoutPanel1.ResumeLayout(false);
|
||||
this.tableLayoutPanel1.PerformLayout();
|
||||
this.tblStoryFlags.ResumeLayout(false);
|
||||
this.tblStoryFlags.PerformLayout();
|
||||
this.tblStoryToggles.ResumeLayout(false);
|
||||
this.tblStoryToggles.PerformLayout();
|
||||
this.weaponTab.ResumeLayout(false);
|
||||
this.weaponTab.PerformLayout();
|
||||
this.tblWeaponSettings.ResumeLayout(false);
|
||||
this.tblWeaponSettings.PerformLayout();
|
||||
this.tblClusterSep.ResumeLayout(false);
|
||||
this.tblClusterSep.PerformLayout();
|
||||
this.tblWeapButtonSep.ResumeLayout(false);
|
||||
this.tblWeapButtonSep.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private TabControl teamTabControl;
|
||||
private TabPage generalTab;
|
||||
private TableLayoutPanel tblGeneral;
|
||||
private TabPage apperanceTab;
|
||||
private TabPage storyTab;
|
||||
private Label lblSkillLevel;
|
||||
private Label lblTeamName;
|
||||
private TextBox selName;
|
||||
private ComboBox selSkill;
|
||||
private Label lblWormName;
|
||||
private ListAddUpdateDel selWorms;
|
||||
private TableLayoutPanel tblApperance;
|
||||
private Label lblHat;
|
||||
private Label lblSpeech;
|
||||
private Label lblGrave;
|
||||
private Label lblFlag;
|
||||
private TextBox selFlag;
|
||||
private IntUpDown selGrave;
|
||||
private TextBox selSpeech;
|
||||
private Label lblFace;
|
||||
private Label lblGloves;
|
||||
private Label lblGlasses;
|
||||
private TextBox selHat;
|
||||
private TextBox selGloves;
|
||||
private TextBox selGlasses;
|
||||
private TextBox selFace;
|
||||
private TableLayoutPanel tblStoryFlags;
|
||||
private Label lblStoryChapter;
|
||||
private Label lblNewTeam;
|
||||
private Label lblTutorialsDone;
|
||||
private IntUpDown selTutorialsDone;
|
||||
private IntUpDown selNewTeam;
|
||||
private IntUpDown selStoryChapter;
|
||||
private Label lblStoryMissionsComplete;
|
||||
private TextBox selPlayer;
|
||||
private Label lblPlayer;
|
||||
private TableLayoutPanel tableLayoutPanel1;
|
||||
private IntList selStoryMissionsCompleted;
|
||||
private TableLayoutPanel tblStoryToggles;
|
||||
private CheckBox selInGame;
|
||||
private CheckBox selAllTutorialsDone;
|
||||
private CheckBox selAllMissionsDone;
|
||||
private TabPage weaponTab;
|
||||
private TableLayoutPanel tblWeaponSettings;
|
||||
private Label lblTeamWeapon;
|
||||
private Label lblSWeapon;
|
||||
private Label lblTeamWeaponName;
|
||||
private TextBox selTeamWeapName;
|
||||
private IntUpDown selSWeapon;
|
||||
private TableLayoutPanel tblWeapButtonSep;
|
||||
private Button btnEditWeapon;
|
||||
private Button btnChangeWeapon;
|
||||
private Label lblTeamWeaponCluster;
|
||||
private TableLayoutPanel tblClusterSep;
|
||||
private Button brnEditCluster;
|
||||
private Button btnChangeCluster;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,57 @@
|
|||
using LibW4M.Data.WeaponFactory;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using W4Gui.Dialogs;
|
||||
|
||||
namespace W4Gui.Components
|
||||
{
|
||||
public partial class TeamsPanel : UserControl
|
||||
{
|
||||
private WeaponData weapon;
|
||||
private WeaponData weaponCluster;
|
||||
public TeamsPanel()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
|
||||
private void btnChangeWeapon_Click(object sender, EventArgs e)
|
||||
{
|
||||
CollectiveSelectionDialog csd = new CollectiveSelectionDialog(DataManager.SaveFile.WeaponFactoryCollective);
|
||||
if(csd.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
WeaponStore store = csd.SelectedEntry as WeaponStore;
|
||||
weapon = store.Weapon;
|
||||
}
|
||||
}
|
||||
|
||||
private void btnChangeCluster_Click(object sender, EventArgs e)
|
||||
{
|
||||
CollectiveSelectionDialog csd = new CollectiveSelectionDialog(DataManager.SaveFile.WeaponFactoryCollective);
|
||||
if (csd.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
WeaponStore store = csd.SelectedEntry as WeaponStore;
|
||||
weaponCluster = store.Cluster;
|
||||
}
|
||||
}
|
||||
|
||||
private void btnEditWeapon_Click(object sender, EventArgs e)
|
||||
{
|
||||
EditWeaponDialog ewd = new EditWeaponDialog(ref weapon);
|
||||
ewd.ShowDialog();
|
||||
}
|
||||
|
||||
private void brnEditCluster_Click(object sender, EventArgs e)
|
||||
{
|
||||
EditWeaponDialog ewd = new EditWeaponDialog(ref weaponCluster);
|
||||
ewd.ShowDialog();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,60 @@
|
|||
<root>
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
|
@ -151,7 +151,6 @@
|
|||
this.generalTable.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.generalTable.Location = new System.Drawing.Point(3, 3);
|
||||
this.generalTable.Name = "generalTable";
|
||||
this.generalTable.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.generalTable.RowCount = 6;
|
||||
this.generalTable.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
this.generalTable.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
|
@ -159,7 +158,7 @@
|
|||
this.generalTable.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
this.generalTable.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
this.generalTable.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
this.generalTable.Size = new System.Drawing.Size(635, 240);
|
||||
this.generalTable.Size = new System.Drawing.Size(635, 234);
|
||||
this.generalTable.TabIndex = 6;
|
||||
//
|
||||
// selDetonation
|
||||
|
@ -172,9 +171,9 @@
|
|||
"Fuse",
|
||||
"User",
|
||||
"Stops Moving"});
|
||||
this.selDetonation.Location = new System.Drawing.Point(93, 39);
|
||||
this.selDetonation.Location = new System.Drawing.Point(90, 36);
|
||||
this.selDetonation.Name = "selDetonation";
|
||||
this.selDetonation.Size = new System.Drawing.Size(534, 23);
|
||||
this.selDetonation.Size = new System.Drawing.Size(540, 23);
|
||||
this.selDetonation.TabIndex = 17;
|
||||
//
|
||||
// lblDetonation
|
||||
|
@ -182,7 +181,7 @@
|
|||
this.lblDetonation.AutoSize = true;
|
||||
this.lblDetonation.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.lblDetonation.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.lblDetonation.Location = new System.Drawing.Point(8, 36);
|
||||
this.lblDetonation.Location = new System.Drawing.Point(5, 33);
|
||||
this.lblDetonation.Name = "lblDetonation";
|
||||
this.lblDetonation.Size = new System.Drawing.Size(77, 29);
|
||||
this.lblDetonation.TabIndex = 16;
|
||||
|
@ -194,7 +193,7 @@
|
|||
this.lblFuseTime.AutoSize = true;
|
||||
this.lblFuseTime.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.lblFuseTime.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.lblFuseTime.Location = new System.Drawing.Point(8, 129);
|
||||
this.lblFuseTime.Location = new System.Drawing.Point(5, 126);
|
||||
this.lblFuseTime.Name = "lblFuseTime";
|
||||
this.lblFuseTime.Size = new System.Drawing.Size(77, 29);
|
||||
this.lblFuseTime.TabIndex = 13;
|
||||
|
@ -205,10 +204,11 @@
|
|||
//
|
||||
this.selRetreatTime.AutoSize = true;
|
||||
this.selRetreatTime.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.selRetreatTime.Location = new System.Drawing.Point(93, 101);
|
||||
this.selRetreatTime.Location = new System.Drawing.Point(90, 98);
|
||||
this.selRetreatTime.Name = "selRetreatTime";
|
||||
this.selRetreatTime.Size = new System.Drawing.Size(534, 23);
|
||||
this.selRetreatTime.Size = new System.Drawing.Size(540, 23);
|
||||
this.selRetreatTime.TabIndex = 11;
|
||||
this.selRetreatTime.Text = "0";
|
||||
this.selRetreatTime.Value = 0;
|
||||
//
|
||||
// lblRetreatTime
|
||||
|
@ -216,7 +216,7 @@
|
|||
this.lblRetreatTime.AutoSize = true;
|
||||
this.lblRetreatTime.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.lblRetreatTime.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.lblRetreatTime.Location = new System.Drawing.Point(8, 98);
|
||||
this.lblRetreatTime.Location = new System.Drawing.Point(5, 95);
|
||||
this.lblRetreatTime.Name = "lblRetreatTime";
|
||||
this.lblRetreatTime.Size = new System.Drawing.Size(77, 29);
|
||||
this.lblRetreatTime.TabIndex = 10;
|
||||
|
@ -228,7 +228,7 @@
|
|||
this.lblWeapType.AutoSize = true;
|
||||
this.lblWeapType.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.lblWeapType.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.lblWeapType.Location = new System.Drawing.Point(8, 67);
|
||||
this.lblWeapType.Location = new System.Drawing.Point(5, 64);
|
||||
this.lblWeapType.Name = "lblWeapType";
|
||||
this.lblWeapType.Size = new System.Drawing.Size(77, 29);
|
||||
this.lblWeapType.TabIndex = 7;
|
||||
|
@ -240,7 +240,7 @@
|
|||
this.lblWeapName.AutoSize = true;
|
||||
this.lblWeapName.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.lblWeapName.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.lblWeapName.Location = new System.Drawing.Point(8, 5);
|
||||
this.lblWeapName.Location = new System.Drawing.Point(5, 2);
|
||||
this.lblWeapName.Name = "lblWeapName";
|
||||
this.lblWeapName.RightToLeft = System.Windows.Forms.RightToLeft.No;
|
||||
this.lblWeapName.Size = new System.Drawing.Size(77, 29);
|
||||
|
@ -252,10 +252,11 @@
|
|||
//
|
||||
this.selFuseTime.AutoSize = true;
|
||||
this.selFuseTime.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.selFuseTime.Location = new System.Drawing.Point(93, 132);
|
||||
this.selFuseTime.Location = new System.Drawing.Point(90, 129);
|
||||
this.selFuseTime.Name = "selFuseTime";
|
||||
this.selFuseTime.Size = new System.Drawing.Size(534, 23);
|
||||
this.selFuseTime.Size = new System.Drawing.Size(540, 23);
|
||||
this.selFuseTime.TabIndex = 12;
|
||||
this.selFuseTime.Text = "0";
|
||||
this.selFuseTime.Value = 0;
|
||||
//
|
||||
// selType
|
||||
|
@ -267,27 +268,27 @@
|
|||
"Air Strike",
|
||||
"Launched",
|
||||
"Thrown"});
|
||||
this.selType.Location = new System.Drawing.Point(93, 70);
|
||||
this.selType.Location = new System.Drawing.Point(90, 67);
|
||||
this.selType.Name = "selType";
|
||||
this.selType.Size = new System.Drawing.Size(534, 23);
|
||||
this.selType.Size = new System.Drawing.Size(540, 23);
|
||||
this.selType.TabIndex = 14;
|
||||
//
|
||||
// selName
|
||||
//
|
||||
this.selName.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.selName.Location = new System.Drawing.Point(93, 8);
|
||||
this.selName.Location = new System.Drawing.Point(90, 5);
|
||||
this.selName.Name = "selName";
|
||||
this.selName.PlaceholderText = "Weapon Name";
|
||||
this.selName.Size = new System.Drawing.Size(534, 23);
|
||||
this.selName.Size = new System.Drawing.Size(540, 23);
|
||||
this.selName.TabIndex = 1;
|
||||
//
|
||||
// lblGeneralHint
|
||||
//
|
||||
this.lblGeneralHint.AutoSize = true;
|
||||
this.lblGeneralHint.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.lblGeneralHint.Location = new System.Drawing.Point(93, 160);
|
||||
this.lblGeneralHint.Location = new System.Drawing.Point(90, 157);
|
||||
this.lblGeneralHint.Name = "lblGeneralHint";
|
||||
this.lblGeneralHint.Size = new System.Drawing.Size(534, 75);
|
||||
this.lblGeneralHint.Size = new System.Drawing.Size(540, 75);
|
||||
this.lblGeneralHint.TabIndex = 15;
|
||||
this.lblGeneralHint.Text = "* Fuse Time of -1 is user controllable timer\r\n\r\n* Retreat time of -1 is use game " +
|
||||
"styles retreat time.\r\n\r\n\r\n";
|
||||
|
@ -378,6 +379,7 @@
|
|||
this.selLandDmgRad.Name = "selLandDmgRad";
|
||||
this.selLandDmgRad.Size = new System.Drawing.Size(496, 23);
|
||||
this.selLandDmgRad.TabIndex = 11;
|
||||
this.selLandDmgRad.Text = "0.0";
|
||||
this.selLandDmgRad.Value = 0F;
|
||||
//
|
||||
// lblLandDmgRad
|
||||
|
@ -399,6 +401,7 @@
|
|||
this.selWormDmgMag.Name = "selWormDmgMag";
|
||||
this.selWormDmgMag.Size = new System.Drawing.Size(496, 23);
|
||||
this.selWormDmgMag.TabIndex = 9;
|
||||
this.selWormDmgMag.Text = "0.0";
|
||||
this.selWormDmgMag.Value = 0F;
|
||||
//
|
||||
// lblWormDmgStr
|
||||
|
@ -432,6 +435,7 @@
|
|||
this.selWormDmgRad.Name = "selWormDmgRad";
|
||||
this.selWormDmgRad.Size = new System.Drawing.Size(496, 23);
|
||||
this.selWormDmgRad.TabIndex = 8;
|
||||
this.selWormDmgRad.Text = "0.0";
|
||||
this.selWormDmgRad.Value = 0F;
|
||||
//
|
||||
// selBlastDmgRad
|
||||
|
@ -441,6 +445,7 @@
|
|||
this.selBlastDmgRad.Name = "selBlastDmgRad";
|
||||
this.selBlastDmgRad.Size = new System.Drawing.Size(496, 23);
|
||||
this.selBlastDmgRad.TabIndex = 12;
|
||||
this.selBlastDmgRad.Text = "0.0";
|
||||
this.selBlastDmgRad.Value = 0F;
|
||||
//
|
||||
// selMaxThrowStr
|
||||
|
@ -450,6 +455,7 @@
|
|||
this.selMaxThrowStr.Name = "selMaxThrowStr";
|
||||
this.selMaxThrowStr.Size = new System.Drawing.Size(496, 23);
|
||||
this.selMaxThrowStr.TabIndex = 15;
|
||||
this.selMaxThrowStr.Text = "0.0";
|
||||
this.selMaxThrowStr.Value = 0F;
|
||||
//
|
||||
// clusterTab
|
||||
|
@ -507,6 +513,7 @@
|
|||
this.selClusterMaxSpeed.Name = "selClusterMaxSpeed";
|
||||
this.selClusterMaxSpeed.Size = new System.Drawing.Size(504, 23);
|
||||
this.selClusterMaxSpeed.TabIndex = 11;
|
||||
this.selClusterMaxSpeed.Text = "0.0";
|
||||
this.selClusterMaxSpeed.Value = 0F;
|
||||
//
|
||||
// lblClusterSpeedMax
|
||||
|
@ -528,6 +535,7 @@
|
|||
this.selClusterSpread.Name = "selClusterSpread";
|
||||
this.selClusterSpread.Size = new System.Drawing.Size(504, 23);
|
||||
this.selClusterSpread.TabIndex = 9;
|
||||
this.selClusterSpread.Text = "0.0";
|
||||
this.selClusterSpread.Value = 0F;
|
||||
//
|
||||
// lblClusterSpread
|
||||
|
@ -562,6 +570,7 @@
|
|||
this.selNumCluster.Name = "selNumCluster";
|
||||
this.selNumCluster.Size = new System.Drawing.Size(504, 23);
|
||||
this.selNumCluster.TabIndex = 8;
|
||||
this.selNumCluster.Text = "0";
|
||||
this.selNumCluster.Value = 0;
|
||||
//
|
||||
// technicalTab
|
||||
|
@ -721,6 +730,7 @@
|
|||
this.selCollisionRad.Name = "selCollisionRad";
|
||||
this.selCollisionRad.Size = new System.Drawing.Size(484, 23);
|
||||
this.selCollisionRad.TabIndex = 13;
|
||||
this.selCollisionRad.Text = "0.0";
|
||||
this.selCollisionRad.Value = 0F;
|
||||
//
|
||||
// lblColRad
|
||||
|
@ -742,6 +752,7 @@
|
|||
this.selPayloadId.Name = "selPayloadId";
|
||||
this.selPayloadId.Size = new System.Drawing.Size(484, 23);
|
||||
this.selPayloadId.TabIndex = 11;
|
||||
this.selPayloadId.Text = "0";
|
||||
this.selPayloadId.Value = 0;
|
||||
//
|
||||
// lblPayloadId
|
||||
|
|
|
@ -0,0 +1,101 @@
|
|||
namespace W4Gui.Dialogs
|
||||
{
|
||||
partial class CollectiveSelectionDialog
|
||||
{
|
||||
/// <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.tblCollectiveSelection = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.collectiveList = new W4Gui.Components.CollectiveListBox();
|
||||
this.selectButton = new System.Windows.Forms.Button();
|
||||
this.tblCollectiveSelection.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// tblCollectiveSelection
|
||||
//
|
||||
this.tblCollectiveSelection.ColumnCount = 1;
|
||||
this.tblCollectiveSelection.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
||||
this.tblCollectiveSelection.Controls.Add(this.collectiveList, 0, 0);
|
||||
this.tblCollectiveSelection.Controls.Add(this.selectButton, 0, 1);
|
||||
this.tblCollectiveSelection.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tblCollectiveSelection.Location = new System.Drawing.Point(0, 0);
|
||||
this.tblCollectiveSelection.Name = "tblCollectiveSelection";
|
||||
this.tblCollectiveSelection.RowCount = 2;
|
||||
this.tblCollectiveSelection.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
||||
this.tblCollectiveSelection.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
this.tblCollectiveSelection.Size = new System.Drawing.Size(287, 388);
|
||||
this.tblCollectiveSelection.TabIndex = 0;
|
||||
//
|
||||
// collectiveList
|
||||
//
|
||||
this.collectiveList.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.collectiveList.FormattingEnabled = true;
|
||||
this.collectiveList.ItemHeight = 15;
|
||||
this.collectiveList.Location = new System.Drawing.Point(3, 3);
|
||||
this.collectiveList.Name = "collectiveList";
|
||||
this.collectiveList.Size = new System.Drawing.Size(281, 345);
|
||||
this.collectiveList.TabIndex = 0;
|
||||
this.collectiveList.Selected += new System.EventHandler<System.EventArgs>(this.collectiveList_Selected);
|
||||
//
|
||||
// selectButton
|
||||
//
|
||||
this.selectButton.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.selectButton.Enabled = false;
|
||||
this.selectButton.Location = new System.Drawing.Point(3, 354);
|
||||
this.selectButton.Name = "selectButton";
|
||||
this.selectButton.Size = new System.Drawing.Size(281, 31);
|
||||
this.selectButton.TabIndex = 1;
|
||||
this.selectButton.Text = "Select";
|
||||
this.selectButton.UseVisualStyleBackColor = true;
|
||||
this.selectButton.Click += new System.EventHandler(this.selectButton_Click);
|
||||
//
|
||||
// CollectiveSelectionDialog
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(287, 388);
|
||||
this.Controls.Add(this.tblCollectiveSelection);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "CollectiveSelectionDialog";
|
||||
this.ShowIcon = false;
|
||||
this.ShowInTaskbar = false;
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||
this.Text = "Select Item";
|
||||
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.CollectiveSelectionDialog_FormClosing);
|
||||
this.tblCollectiveSelection.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private TableLayoutPanel tblCollectiveSelection;
|
||||
private Components.CollectiveListBox collectiveList;
|
||||
private Button selectButton;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,52 @@
|
|||
using LibW4M.Data;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace W4Gui.Dialogs
|
||||
{
|
||||
public partial class CollectiveSelectionDialog : Form
|
||||
{
|
||||
private SaveDataCollective collective;
|
||||
private SaveDataEntry selectedEntry;
|
||||
public SaveDataEntry SelectedEntry
|
||||
{
|
||||
get
|
||||
{
|
||||
return selectedEntry;
|
||||
}
|
||||
}
|
||||
|
||||
public CollectiveSelectionDialog(SaveDataCollective collective)
|
||||
{
|
||||
this.collective = collective;
|
||||
InitializeComponent();
|
||||
this.collectiveList.LoadCollective(this.collective);
|
||||
}
|
||||
|
||||
|
||||
private void CollectiveSelectionDialog_FormClosing(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
this.DialogResult = DialogResult.Cancel;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void selectButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.selectedEntry = collective[this.collectiveList.CurrentlySelected];
|
||||
this.DialogResult = DialogResult.OK;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void collectiveList_Selected(object sender, EventArgs e)
|
||||
{
|
||||
this.selectButton.Enabled = collectiveList.IsItemSelected;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,60 @@
|
|||
<root>
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
|
@ -0,0 +1,97 @@
|
|||
namespace W4Gui.Dialogs
|
||||
{
|
||||
partial class EditWeaponDialog
|
||||
{
|
||||
/// <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.tblWeaponButton = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.btnSave = new System.Windows.Forms.Button();
|
||||
this.weaponsPanel = new W4Gui.Components.WeaponsPanel();
|
||||
this.tblWeaponButton.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// tblWeaponButton
|
||||
//
|
||||
this.tblWeaponButton.ColumnCount = 1;
|
||||
this.tblWeaponButton.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
||||
this.tblWeaponButton.Controls.Add(this.btnSave, 0, 1);
|
||||
this.tblWeaponButton.Controls.Add(this.weaponsPanel, 0, 0);
|
||||
this.tblWeaponButton.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tblWeaponButton.Location = new System.Drawing.Point(0, 0);
|
||||
this.tblWeaponButton.Name = "tblWeaponButton";
|
||||
this.tblWeaponButton.RowCount = 2;
|
||||
this.tblWeaponButton.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
||||
this.tblWeaponButton.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
this.tblWeaponButton.Size = new System.Drawing.Size(803, 414);
|
||||
this.tblWeaponButton.TabIndex = 0;
|
||||
//
|
||||
// btnSave
|
||||
//
|
||||
this.btnSave.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.btnSave.Location = new System.Drawing.Point(3, 388);
|
||||
this.btnSave.Name = "btnSave";
|
||||
this.btnSave.Size = new System.Drawing.Size(797, 23);
|
||||
this.btnSave.TabIndex = 0;
|
||||
this.btnSave.Text = "Save Weapon";
|
||||
this.btnSave.UseVisualStyleBackColor = true;
|
||||
this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
|
||||
//
|
||||
// weaponsPanel
|
||||
//
|
||||
this.weaponsPanel.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.weaponsPanel.Location = new System.Drawing.Point(3, 3);
|
||||
this.weaponsPanel.Name = "weaponsPanel";
|
||||
this.weaponsPanel.Size = new System.Drawing.Size(797, 379);
|
||||
this.weaponsPanel.TabIndex = 1;
|
||||
//
|
||||
// EditWeaponDialog
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(803, 414);
|
||||
this.Controls.Add(this.tblWeaponButton);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "EditWeaponDialog";
|
||||
this.ShowIcon = false;
|
||||
this.ShowInTaskbar = false;
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||
this.Text = "Edit Weapon";
|
||||
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.EditWeaponDialog_FormClosing);
|
||||
this.tblWeaponButton.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private TableLayoutPanel tblWeaponButton;
|
||||
private Button btnSave;
|
||||
private Components.WeaponsPanel weaponsPanel;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,44 @@
|
|||
using LibW4M.Data.WeaponFactory;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace W4Gui.Dialogs
|
||||
{
|
||||
public partial class EditWeaponDialog : Form
|
||||
{
|
||||
WeaponData weapon;
|
||||
public EditWeaponDialog(ref WeaponData weapon)
|
||||
{
|
||||
this.weapon = weapon;
|
||||
InitializeComponent();
|
||||
weaponsPanel.LoadWeaponData(weapon);
|
||||
}
|
||||
|
||||
private void EditWeaponDialog_FormClosing(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
if(MessageBox.Show("Are you sure you want to exit?\nyou'll loose any changes you've made to the weapon.", "Are you sure?", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
|
||||
{
|
||||
this.DialogResult = DialogResult.None;
|
||||
this.Close();
|
||||
}
|
||||
else
|
||||
{
|
||||
e.Cancel = true;
|
||||
}
|
||||
}
|
||||
|
||||
private void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
weaponsPanel.SaveWeaponData(ref weapon);
|
||||
this.DialogResult = DialogResult.OK;
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,60 @@
|
|||
<root>
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
|
@ -41,6 +41,8 @@ namespace W4Gui
|
|||
this.mainTabControl = new System.Windows.Forms.TabControl();
|
||||
this.weaponTab = new System.Windows.Forms.TabPage();
|
||||
this.weaponPage = new W4Gui.Tabs.WeaponsTab();
|
||||
this.teamTab = new System.Windows.Forms.TabPage();
|
||||
this.teamsPage = new W4Gui.Tabs.TeamsTab();
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
|
@ -48,10 +50,10 @@ namespace W4Gui
|
|||
this.tableLayoutPanel11 = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.label21 = new System.Windows.Forms.Label();
|
||||
this.label22 = new System.Windows.Forms.Label();
|
||||
this.teamTab = new System.Windows.Forms.TabPage();
|
||||
this.mainMenuStrip.SuspendLayout();
|
||||
this.mainTabControl.SuspendLayout();
|
||||
this.weaponTab.SuspendLayout();
|
||||
this.teamTab.SuspendLayout();
|
||||
this.tableLayoutPanel1.SuspendLayout();
|
||||
this.tableLayoutPanel11.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
|
@ -156,6 +158,24 @@ namespace W4Gui
|
|||
this.weaponPage.Size = new System.Drawing.Size(858, 499);
|
||||
this.weaponPage.TabIndex = 0;
|
||||
//
|
||||
// teamTab
|
||||
//
|
||||
this.teamTab.Controls.Add(this.teamsPage);
|
||||
this.teamTab.Location = new System.Drawing.Point(4, 24);
|
||||
this.teamTab.Name = "teamTab";
|
||||
this.teamTab.Size = new System.Drawing.Size(192, 72);
|
||||
this.teamTab.TabIndex = 1;
|
||||
this.teamTab.Text = "Teams";
|
||||
this.teamTab.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// teamsPage
|
||||
//
|
||||
this.teamsPage.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.teamsPage.Location = new System.Drawing.Point(0, 0);
|
||||
this.teamsPage.Name = "teamsPage";
|
||||
this.teamsPage.Size = new System.Drawing.Size(192, 72);
|
||||
this.teamsPage.TabIndex = 0;
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
this.groupBox1.Location = new System.Drawing.Point(0, 0);
|
||||
|
@ -246,15 +266,6 @@ namespace W4Gui
|
|||
this.label22.Text = "Blast DMG Radius:";
|
||||
this.label22.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// teamTab
|
||||
//
|
||||
this.teamTab.Location = new System.Drawing.Point(4, 24);
|
||||
this.teamTab.Name = "teamTab";
|
||||
this.teamTab.Size = new System.Drawing.Size(868, 509);
|
||||
this.teamTab.TabIndex = 1;
|
||||
this.teamTab.Text = "Teams";
|
||||
this.teamTab.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// Main
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
|
||||
|
@ -263,6 +274,7 @@ namespace W4Gui
|
|||
this.ClientSize = new System.Drawing.Size(876, 561);
|
||||
this.Controls.Add(this.mainTabControl);
|
||||
this.Controls.Add(this.mainMenuStrip);
|
||||
this.DoubleBuffered = true;
|
||||
this.MainMenuStrip = this.mainMenuStrip;
|
||||
this.Name = "Main";
|
||||
this.Text = "Worms 4: Mayhem! (Save Editor)";
|
||||
|
@ -271,6 +283,7 @@ namespace W4Gui
|
|||
this.mainMenuStrip.PerformLayout();
|
||||
this.mainTabControl.ResumeLayout(false);
|
||||
this.weaponTab.ResumeLayout(false);
|
||||
this.teamTab.ResumeLayout(false);
|
||||
this.tableLayoutPanel1.ResumeLayout(false);
|
||||
this.tableLayoutPanel1.PerformLayout();
|
||||
this.tableLayoutPanel11.ResumeLayout(false);
|
||||
|
@ -301,5 +314,6 @@ namespace W4Gui
|
|||
private ToolStripMenuItem convertToXboxToolStripMenuItem;
|
||||
private ToolStripMenuItem extractAllXomContainersToolStripMenuItem;
|
||||
private TabPage teamTab;
|
||||
private TeamsTab teamsPage;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,120 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
|
@ -0,0 +1,96 @@
|
|||
namespace W4Gui.Tabs
|
||||
{
|
||||
partial class TeamsTab
|
||||
{
|
||||
/// <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 Component 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.teamsSplitContainer = new System.Windows.Forms.SplitContainer();
|
||||
this.teamsList = new W4Gui.Components.CollectiveListAddDelete();
|
||||
this.teamsPanel = new W4Gui.Components.TeamsPanel();
|
||||
((System.ComponentModel.ISupportInitialize)(this.teamsSplitContainer)).BeginInit();
|
||||
this.teamsSplitContainer.Panel1.SuspendLayout();
|
||||
this.teamsSplitContainer.Panel2.SuspendLayout();
|
||||
this.teamsSplitContainer.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// teamsSplitContainer
|
||||
//
|
||||
this.teamsSplitContainer.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
|
||||
this.teamsSplitContainer.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.teamsSplitContainer.Location = new System.Drawing.Point(0, 0);
|
||||
this.teamsSplitContainer.Name = "teamsSplitContainer";
|
||||
//
|
||||
// teamsSplitContainer.Panel1
|
||||
//
|
||||
this.teamsSplitContainer.Panel1.Controls.Add(this.teamsList);
|
||||
//
|
||||
// teamsSplitContainer.Panel2
|
||||
//
|
||||
this.teamsSplitContainer.Panel2.Controls.Add(this.teamsPanel);
|
||||
this.teamsSplitContainer.Size = new System.Drawing.Size(721, 352);
|
||||
this.teamsSplitContainer.SplitterDistance = 241;
|
||||
this.teamsSplitContainer.TabIndex = 0;
|
||||
//
|
||||
// teamsList
|
||||
//
|
||||
this.teamsList.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.teamsList.Location = new System.Drawing.Point(0, 0);
|
||||
this.teamsList.Name = "teamsList";
|
||||
this.teamsList.Size = new System.Drawing.Size(237, 348);
|
||||
this.teamsList.TabIndex = 0;
|
||||
//
|
||||
// teamsPanel
|
||||
//
|
||||
this.teamsPanel.BackColor = System.Drawing.Color.LightGray;
|
||||
this.teamsPanel.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.teamsPanel.Location = new System.Drawing.Point(0, 0);
|
||||
this.teamsPanel.Name = "teamsPanel";
|
||||
this.teamsPanel.Size = new System.Drawing.Size(472, 348);
|
||||
this.teamsPanel.TabIndex = 0;
|
||||
//
|
||||
// TeamsTab
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.Controls.Add(this.teamsSplitContainer);
|
||||
this.Name = "TeamsTab";
|
||||
this.Size = new System.Drawing.Size(721, 352);
|
||||
this.teamsSplitContainer.Panel1.ResumeLayout(false);
|
||||
this.teamsSplitContainer.Panel2.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.teamsSplitContainer)).EndInit();
|
||||
this.teamsSplitContainer.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private SplitContainer teamsSplitContainer;
|
||||
private Components.CollectiveListAddDelete teamsList;
|
||||
private Components.TeamsPanel teamsPanel;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace W4Gui.Tabs
|
||||
{
|
||||
public partial class TeamsTab : UserControl
|
||||
{
|
||||
public TeamsTab()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,60 @@
|
|||
<root>
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
|
@ -30,7 +30,7 @@ namespace W4Gui.Tabs
|
|||
private void InitializeComponent()
|
||||
{
|
||||
this.weaponSplitContainer = new System.Windows.Forms.SplitContainer();
|
||||
this.weaponList = new W4Gui.Components.CollectiveList();
|
||||
this.weaponList = new W4Gui.Components.CollectiveListAddDelete();
|
||||
this.weaponClusterTabControl = new System.Windows.Forms.TabControl();
|
||||
this.mainWeaponPage = new System.Windows.Forms.TabPage();
|
||||
this.weaponPanel = new W4Gui.Components.WeaponsPanel();
|
||||
|
@ -70,8 +70,8 @@ namespace W4Gui.Tabs
|
|||
this.weaponList.Name = "weaponList";
|
||||
this.weaponList.Size = new System.Drawing.Size(260, 460);
|
||||
this.weaponList.TabIndex = 0;
|
||||
this.weaponList.Unselected += new System.EventHandler<System.EventArgs>(this.weaponList_Unselected);
|
||||
this.weaponList.Selected += new System.EventHandler<System.EventArgs>(this.weaponList_Selected);
|
||||
this.weaponList.List.Unselected += new System.EventHandler<System.EventArgs>(this.weaponList_Unselected);
|
||||
this.weaponList.List.Selected += new System.EventHandler<System.EventArgs>(this.weaponList_Selected);
|
||||
this.weaponList.NewButton += new System.EventHandler<System.EventArgs>(this.weaponList_NewButton);
|
||||
this.weaponList.DeleteButton += new System.EventHandler<System.EventArgs>(this.weaponList_DeleteButton);
|
||||
//
|
||||
|
@ -153,6 +153,6 @@ namespace W4Gui.Tabs
|
|||
private WeaponsPanel weaponPanel;
|
||||
private TabPage clustersPage;
|
||||
private WeaponsPanel clusterPanel;
|
||||
private CollectiveList weaponList;
|
||||
private CollectiveListAddDelete weaponList;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,12 +17,12 @@ namespace W4Gui.Tabs
|
|||
{
|
||||
public override void SaveFromControl()
|
||||
{
|
||||
if(weaponList.IsItemSelected)
|
||||
if(weaponList.List.IsItemSelected)
|
||||
weaponList_Unselected(null, null);
|
||||
}
|
||||
public override void LoadIntoControl()
|
||||
{
|
||||
weaponList.LoadCollective(DataManager.SaveFile.WeaponFactoryCollective);
|
||||
weaponList.List.LoadCollective(DataManager.SaveFile.WeaponFactoryCollective);
|
||||
weaponClusterTabControl.Enabled = false;
|
||||
}
|
||||
public WeaponsTab()
|
||||
|
@ -32,15 +32,15 @@ namespace W4Gui.Tabs
|
|||
|
||||
private void weaponList_Unselected(object sender, EventArgs e)
|
||||
{
|
||||
WeaponStore store = DataManager.SaveFile.WeaponFactoryCollective[weaponList.LastSelected] as WeaponStore;
|
||||
WeaponStore store = DataManager.SaveFile.WeaponFactoryCollective[weaponList.List.LastSelected] as WeaponStore;
|
||||
weaponPanel.SaveWeaponData(ref store.Weapon);
|
||||
clusterPanel.SaveWeaponData(ref store.Cluster);
|
||||
weaponList.UpdateName(weaponList.LastSelected, store.Weapon.Name.Value);
|
||||
weaponList.List.UpdateName(weaponList.List.LastSelected, store.Weapon.Name.Value);
|
||||
}
|
||||
|
||||
private void weaponList_Selected(object sender, EventArgs e)
|
||||
{
|
||||
WeaponStore store = DataManager.SaveFile.WeaponFactoryCollective[weaponList.CurrentlySelected] as WeaponStore;
|
||||
WeaponStore store = DataManager.SaveFile.WeaponFactoryCollective[weaponList.List.CurrentlySelected] as WeaponStore;
|
||||
weaponPanel.LoadWeaponData(store.Weapon);
|
||||
clusterPanel.LoadWeaponData(store.Cluster);
|
||||
weaponClusterTabControl.Enabled = true;
|
||||
|
@ -54,11 +54,11 @@ namespace W4Gui.Tabs
|
|||
private void weaponList_DeleteButton(object sender, EventArgs e)
|
||||
{
|
||||
throw new NotImplementedException("Removing weapons from here not implemented yet ;)");
|
||||
int sel = weaponList.CurrentlySelected;
|
||||
int sel = weaponList.List.CurrentlySelected;
|
||||
WeaponStore store = DataManager.SaveFile.WeaponFactoryCollective[sel] as WeaponStore;
|
||||
DataManager.SaveFile.WeaponFactoryCollective.Delete(store);
|
||||
|
||||
weaponList.Delete(sel);
|
||||
weaponList.List.Delete(sel);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,12 +4,18 @@
|
|||
<_LastSelectedProfileId>C:\Users\Li\Documents\git\Worms4Editor\W4Gui\Properties\PublishProfiles\FolderProfile.pubxml</_LastSelectedProfileId>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Compile Update="Components\CollectiveList.cs">
|
||||
<Compile Update="Components\CollectiveListBox.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Update="Components\CollectiveListAddDelete.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Update="Components\FloatUpDown.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Update="Components\IntList.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Update="Components\IntUpDown.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
|
@ -19,6 +25,15 @@
|
|||
<Compile Update="Components\GenericUpDown.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Update="Components\TeamsPanel.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Update="Dialogs\CollectiveSelectionDialog.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Update="Dialogs\EditWeaponDialog.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Update="Main.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
|
@ -28,6 +43,9 @@
|
|||
<Compile Update="Tabs\TabEntry.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Update="Tabs\TeamsTab.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
<Compile Update="Tabs\WeaponsTab.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
|
|
Loading…
Reference in New Issue