Tiers+Settings+Tweaks
This commit is contained in:
parent
beedeb296a
commit
caff5141eb
|
@ -51,16 +51,8 @@
|
|||
this.button_Color_Back = new System.Windows.Forms.Button();
|
||||
this.button_Color_Border = new System.Windows.Forms.Button();
|
||||
this.dataGridView_Condition = new System.Windows.Forms.DataGridView();
|
||||
this.col001 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.col002 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.col003 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
this.dataGridView_Action = new System.Windows.Forms.DataGridView();
|
||||
this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.col004 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.col005 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.button_Save = new System.Windows.Forms.Button();
|
||||
this.comboBox_FontSize = new System.Windows.Forms.ComboBox();
|
||||
|
@ -72,11 +64,15 @@
|
|||
this.button_Border_Paste = new System.Windows.Forms.Button();
|
||||
this.button_Border_Copy = new System.Windows.Forms.Button();
|
||||
this.button_Close = new System.Windows.Forms.Button();
|
||||
this.pictureBox_AddCondition = new System.Windows.Forms.PictureBox();
|
||||
this.pictureBox_AddAction = new System.Windows.Forms.PictureBox();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView_Class)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView_Base)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox_InGame)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView_Condition)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView_Action)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox_AddCondition)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox_AddAction)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// label1
|
||||
|
@ -281,41 +277,26 @@
|
|||
//
|
||||
// dataGridView_Condition
|
||||
//
|
||||
this.dataGridView_Condition.AllowUserToAddRows = false;
|
||||
this.dataGridView_Condition.AllowUserToDeleteRows = false;
|
||||
this.dataGridView_Condition.AllowUserToResizeColumns = false;
|
||||
this.dataGridView_Condition.AllowUserToResizeRows = false;
|
||||
this.dataGridView_Condition.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
|
||||
this.dataGridView_Condition.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.DisplayedCells;
|
||||
this.dataGridView_Condition.AutoSizeRowsMode = System.Windows.Forms.DataGridViewAutoSizeRowsMode.DisplayedCells;
|
||||
this.dataGridView_Condition.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dataGridView_Condition.ColumnHeadersVisible = false;
|
||||
this.dataGridView_Condition.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.col001,
|
||||
this.col002,
|
||||
this.col003});
|
||||
this.dataGridView_Condition.Location = new System.Drawing.Point(15, 320);
|
||||
this.dataGridView_Condition.Name = "dataGridView_Condition";
|
||||
this.dataGridView_Condition.RowHeadersVisible = false;
|
||||
this.dataGridView_Condition.Size = new System.Drawing.Size(334, 114);
|
||||
this.dataGridView_Condition.Size = new System.Drawing.Size(440, 114);
|
||||
this.dataGridView_Condition.TabIndex = 26;
|
||||
//
|
||||
// col001
|
||||
//
|
||||
this.col001.HeaderText = "Name";
|
||||
this.col001.Name = "col001";
|
||||
//
|
||||
// col002
|
||||
//
|
||||
this.col002.HeaderText = "Operator";
|
||||
this.col002.Name = "col002";
|
||||
//
|
||||
// col003
|
||||
//
|
||||
this.col003.HeaderText = "Value";
|
||||
this.col003.Name = "col003";
|
||||
this.dataGridView_Condition.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView_Condition_CellClick);
|
||||
//
|
||||
// label6
|
||||
//
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label6.Location = new System.Drawing.Point(12, 304);
|
||||
this.label6.Location = new System.Drawing.Point(38, 304);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(68, 13);
|
||||
this.label6.TabIndex = 25;
|
||||
|
@ -323,58 +304,26 @@
|
|||
//
|
||||
// dataGridView_Action
|
||||
//
|
||||
this.dataGridView_Action.AllowUserToAddRows = false;
|
||||
this.dataGridView_Action.AllowUserToDeleteRows = false;
|
||||
this.dataGridView_Action.AllowUserToResizeColumns = false;
|
||||
this.dataGridView_Action.AllowUserToResizeRows = false;
|
||||
this.dataGridView_Action.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.DisplayedCells;
|
||||
this.dataGridView_Action.AutoSizeRowsMode = System.Windows.Forms.DataGridViewAutoSizeRowsMode.DisplayedCells;
|
||||
this.dataGridView_Action.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dataGridView_Action.ColumnHeadersVisible = false;
|
||||
this.dataGridView_Action.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.dataGridViewTextBoxColumn1,
|
||||
this.dataGridViewTextBoxColumn2,
|
||||
this.dataGridViewTextBoxColumn3,
|
||||
this.col004,
|
||||
this.col005});
|
||||
this.dataGridView_Action.Location = new System.Drawing.Point(15, 453);
|
||||
this.dataGridView_Action.Location = new System.Drawing.Point(15, 464);
|
||||
this.dataGridView_Action.Name = "dataGridView_Action";
|
||||
this.dataGridView_Action.RowHeadersVisible = false;
|
||||
this.dataGridView_Action.Size = new System.Drawing.Size(334, 114);
|
||||
this.dataGridView_Action.Size = new System.Drawing.Size(440, 114);
|
||||
this.dataGridView_Action.TabIndex = 28;
|
||||
//
|
||||
// dataGridViewTextBoxColumn1
|
||||
//
|
||||
this.dataGridViewTextBoxColumn1.HeaderText = "Name";
|
||||
this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
|
||||
this.dataGridViewTextBoxColumn1.Width = 21;
|
||||
//
|
||||
// dataGridViewTextBoxColumn2
|
||||
//
|
||||
this.dataGridViewTextBoxColumn2.HeaderText = "va";
|
||||
this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
|
||||
this.dataGridViewTextBoxColumn2.Width = 21;
|
||||
//
|
||||
// dataGridViewTextBoxColumn3
|
||||
//
|
||||
this.dataGridViewTextBoxColumn3.HeaderText = "vb";
|
||||
this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
|
||||
this.dataGridViewTextBoxColumn3.Width = 21;
|
||||
//
|
||||
// col004
|
||||
//
|
||||
this.col004.HeaderText = "vc";
|
||||
this.col004.Name = "col004";
|
||||
this.col004.Width = 21;
|
||||
//
|
||||
// col005
|
||||
//
|
||||
this.col005.HeaderText = "vd";
|
||||
this.col005.Name = "col005";
|
||||
this.col005.Width = 21;
|
||||
this.dataGridView_Action.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView_Action_CellClick);
|
||||
//
|
||||
// label7
|
||||
//
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label7.Location = new System.Drawing.Point(12, 437);
|
||||
this.label7.Location = new System.Drawing.Point(38, 448);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(48, 13);
|
||||
this.label7.TabIndex = 27;
|
||||
|
@ -382,7 +331,7 @@
|
|||
//
|
||||
// button_Save
|
||||
//
|
||||
this.button_Save.Location = new System.Drawing.Point(15, 576);
|
||||
this.button_Save.Location = new System.Drawing.Point(15, 584);
|
||||
this.button_Save.Name = "button_Save";
|
||||
this.button_Save.Size = new System.Drawing.Size(163, 23);
|
||||
this.button_Save.TabIndex = 29;
|
||||
|
@ -480,7 +429,7 @@
|
|||
//
|
||||
// button_Close
|
||||
//
|
||||
this.button_Close.Location = new System.Drawing.Point(186, 576);
|
||||
this.button_Close.Location = new System.Drawing.Point(294, 584);
|
||||
this.button_Close.Name = "button_Close";
|
||||
this.button_Close.Size = new System.Drawing.Size(163, 23);
|
||||
this.button_Close.TabIndex = 38;
|
||||
|
@ -488,11 +437,33 @@
|
|||
this.button_Close.UseVisualStyleBackColor = true;
|
||||
this.button_Close.Click += new System.EventHandler(this.button_Close_Click);
|
||||
//
|
||||
// pictureBox_AddCondition
|
||||
//
|
||||
this.pictureBox_AddCondition.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox_AddCondition.Image")));
|
||||
this.pictureBox_AddCondition.Location = new System.Drawing.Point(15, 293);
|
||||
this.pictureBox_AddCondition.Name = "pictureBox_AddCondition";
|
||||
this.pictureBox_AddCondition.Size = new System.Drawing.Size(24, 24);
|
||||
this.pictureBox_AddCondition.TabIndex = 39;
|
||||
this.pictureBox_AddCondition.TabStop = false;
|
||||
this.pictureBox_AddCondition.Click += new System.EventHandler(this.pictureBox_AddCondition_Click);
|
||||
//
|
||||
// pictureBox_AddAction
|
||||
//
|
||||
this.pictureBox_AddAction.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox_AddAction.Image")));
|
||||
this.pictureBox_AddAction.Location = new System.Drawing.Point(15, 437);
|
||||
this.pictureBox_AddAction.Name = "pictureBox_AddAction";
|
||||
this.pictureBox_AddAction.Size = new System.Drawing.Size(24, 24);
|
||||
this.pictureBox_AddAction.TabIndex = 40;
|
||||
this.pictureBox_AddAction.TabStop = false;
|
||||
this.pictureBox_AddAction.Click += new System.EventHandler(this.pictureBox_AddAction_Click);
|
||||
//
|
||||
// BlockForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(355, 605);
|
||||
this.ClientSize = new System.Drawing.Size(469, 620);
|
||||
this.Controls.Add(this.pictureBox_AddAction);
|
||||
this.Controls.Add(this.pictureBox_AddCondition);
|
||||
this.Controls.Add(this.button_Close);
|
||||
this.Controls.Add(this.button_Border_Paste);
|
||||
this.Controls.Add(this.button_Border_Copy);
|
||||
|
@ -533,6 +504,8 @@
|
|||
((System.ComponentModel.ISupportInitialize)(this.pictureBox_InGame)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView_Condition)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView_Action)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox_AddCondition)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox_AddAction)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
|
@ -563,17 +536,9 @@
|
|||
private System.Windows.Forms.DataGridViewTextBoxColumn col2;
|
||||
private System.Windows.Forms.DataGridViewImageColumn col01;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn col02;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn col001;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn col002;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn col003;
|
||||
private System.Windows.Forms.DataGridView dataGridView_Action;
|
||||
private System.Windows.Forms.Label label7;
|
||||
private System.Windows.Forms.Button button_Save;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn col004;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn col005;
|
||||
private System.Windows.Forms.ComboBox comboBox_FontSize;
|
||||
private System.Windows.Forms.Label label8;
|
||||
private System.Windows.Forms.Button button_Text_Copy;
|
||||
|
@ -583,5 +548,7 @@
|
|||
private System.Windows.Forms.Button button_Border_Paste;
|
||||
private System.Windows.Forms.Button button_Border_Copy;
|
||||
private System.Windows.Forms.Button button_Close;
|
||||
private System.Windows.Forms.PictureBox pictureBox_AddCondition;
|
||||
private System.Windows.Forms.PictureBox pictureBox_AddAction;
|
||||
}
|
||||
}
|
|
@ -12,8 +12,6 @@ using System.Threading.Tasks;
|
|||
using System.Windows.Forms;
|
||||
using static Filsonator.MainForm;
|
||||
using static System.Net.Mime.MediaTypeNames;
|
||||
using static System.Windows.Forms.VisualStyles.VisualStyleElement;
|
||||
using static System.Windows.Forms.VisualStyles.VisualStyleElement.TrayNotify;
|
||||
using Image = System.Drawing.Image;
|
||||
|
||||
namespace Filsonator
|
||||
|
@ -54,15 +52,21 @@ namespace Filsonator
|
|||
comboBox_Show.Items.Add("False");
|
||||
comboBox_Show.Text = bl.Show.ToString();
|
||||
//// Class
|
||||
foreach (var c in bl.Class)
|
||||
if (bl.Class.Count >= 1)
|
||||
{
|
||||
dataGridView_Class.Rows.Add(imgDel, c);
|
||||
foreach (var c in bl.Class)
|
||||
{
|
||||
dataGridView_Class.Rows.Add(imgDel, c);
|
||||
}
|
||||
}
|
||||
//// Base
|
||||
foreach (var c in bl.BaseType)
|
||||
if (bl.BaseType.Count >= 1)
|
||||
{
|
||||
dataGridView_Base.Rows.Add(imgDel, c);
|
||||
}
|
||||
foreach (var c in bl.BaseType)
|
||||
{
|
||||
dataGridView_Base.Rows.Add(imgDel, c);
|
||||
}
|
||||
}
|
||||
//// Font Size
|
||||
comboBox_FontSize.Items.Add("45");
|
||||
comboBox_FontSize.Items.Add("40");
|
||||
|
@ -81,15 +85,104 @@ namespace Filsonator
|
|||
background = Color.FromArgb(Convert.ToInt16(BackColor[0]), Convert.ToInt16(BackColor[1]), Convert.ToInt16(BackColor[2]));
|
||||
border = Color.FromArgb(Convert.ToInt16(BorderColor[0]), Convert.ToInt16(BorderColor[1]), Convert.ToInt16(BorderColor[2]));
|
||||
pictureBox_InGame.Image = Utilities.Draw.DrawBlock(text, background, border, Convert.ToInt16(bl.SetFontSize));
|
||||
StructureForm.Settings j = JsonConvert.DeserializeObject<StructureForm.Settings>(File.ReadAllText("settings.json"));
|
||||
//// Condition
|
||||
DataGridViewImageColumn cDelIMG = new DataGridViewImageColumn();
|
||||
DataGridViewComboBoxColumn cbConditions = new DataGridViewComboBoxColumn();
|
||||
cbConditions.Name = "cbConditions";
|
||||
DataGridViewComboBoxColumn cbCOp = new DataGridViewComboBoxColumn();
|
||||
cbCOp.Name = "cbCOp";
|
||||
foreach (var o in j.Operators)
|
||||
{
|
||||
cbCOp.Items.Add(o);
|
||||
}
|
||||
foreach (var c in j.Conditions)
|
||||
{
|
||||
cbConditions.Items.Add(c);
|
||||
}
|
||||
dataGridView_Condition.Columns.Add(cDelIMG);
|
||||
dataGridView_Condition.Columns.Add(cbConditions);
|
||||
dataGridView_Condition.Columns.Add(cbCOp);
|
||||
dataGridView_Condition.Columns.Add("condValue", "condValue");
|
||||
foreach (var c in bl.Conditions)
|
||||
{
|
||||
dataGridView_Condition.Rows.Add(c.name, c.op, c.value);
|
||||
|
||||
dataGridView_Condition.Rows.Add(imgDel, c.name, c.op, c.value);
|
||||
}
|
||||
//// Action
|
||||
DataGridViewImageColumn aDelIMG = new DataGridViewImageColumn();
|
||||
DataGridViewComboBoxColumn cbVarA = new DataGridViewComboBoxColumn();
|
||||
cbVarA.Name = "cbVarA";
|
||||
DataGridViewComboBoxColumn cbVarB = new DataGridViewComboBoxColumn();
|
||||
cbVarB.Name = "cbVarB";
|
||||
DataGridViewComboBoxColumn cbVarC = new DataGridViewComboBoxColumn();
|
||||
cbVarC.Name = "cbVarC";
|
||||
DataGridViewComboBoxColumn cbActions = new DataGridViewComboBoxColumn();
|
||||
cbActions.Name = "cbAction";
|
||||
cbVarA.Items.Add("## Sizes ##");
|
||||
foreach (var si in j.Sizes)
|
||||
{
|
||||
cbVarA.Items.Add(si);
|
||||
}
|
||||
cbVarA.Items.Add("## Colors ##");
|
||||
foreach (var c in j.Colors)
|
||||
{
|
||||
cbVarA.Items.Add(c);
|
||||
}
|
||||
cbVarA.Items.Add("## Sounds ##");
|
||||
var sf = Directory.GetFiles("sound");
|
||||
foreach (var s in sf)
|
||||
{
|
||||
string sn = Path.GetFileName(s);
|
||||
cbVarA.Items.Add(sn);
|
||||
}
|
||||
cbVarB.Items.Add("## PlayEffect ##");
|
||||
cbVarB.Items.Add("");
|
||||
cbVarB.Items.Add("Temp");
|
||||
cbVarB.Items.Add("## Colors ##");
|
||||
foreach (var c in j.Colors)
|
||||
{
|
||||
cbVarB.Items.Add(c);
|
||||
}
|
||||
cbVarC.Items.Add("## Colors ##");
|
||||
foreach (var c in j.Colors)
|
||||
{
|
||||
cbVarC.Items.Add(c);
|
||||
}
|
||||
cbVarC.Items.Add("## Shapes ##");
|
||||
foreach (var sh in j.Shapes)
|
||||
{
|
||||
cbVarC.Items.Add(sh);
|
||||
}
|
||||
foreach (var a in j.Actions)
|
||||
{
|
||||
cbActions.Items.Add(a);
|
||||
}
|
||||
dataGridView_Action.Columns.Add(aDelIMG);
|
||||
dataGridView_Action.Columns.Add(cbActions);
|
||||
dataGridView_Action.Columns.Add(cbVarA);
|
||||
dataGridView_Action.Columns.Add(cbVarB);
|
||||
dataGridView_Action.Columns.Add(cbVarC);
|
||||
foreach (var a in bl.Actions)
|
||||
{
|
||||
dataGridView_Action.Rows.Add(a.name, a.va, a.vb, a.vc, a.vd);
|
||||
|
||||
dataGridView_Action.Rows.Add(imgDel, a.name, a.va, a.vb, a.vc, a.vd);
|
||||
}
|
||||
}
|
||||
|
||||
private void dataGridView_Condition_CellClick(object sender, DataGridViewCellEventArgs e)
|
||||
{
|
||||
if (dataGridView_Condition.CurrentCell.ColumnIndex.Equals(0))
|
||||
{
|
||||
dataGridView_Condition.Rows.RemoveAt(dataGridView_Condition.CurrentRow.Index);
|
||||
}
|
||||
}
|
||||
|
||||
private void dataGridView_Action_CellClick(object sender, DataGridViewCellEventArgs e)
|
||||
{
|
||||
if (dataGridView_Action.CurrentCell.ColumnIndex.Equals(0))
|
||||
{
|
||||
dataGridView_Action.Rows.RemoveAt(dataGridView_Action.CurrentRow.Index);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -193,7 +286,7 @@ namespace Filsonator
|
|||
JArray classes = new JArray();
|
||||
foreach (DataGridViewRow row in dataGridView_Class.Rows)
|
||||
{
|
||||
classes.Add(row.Cells[1].Value.ToString());
|
||||
classes.Add(row.Cells[1].Value.ToString());
|
||||
}
|
||||
jo["blocks"][MainForm.blockIndex]["Class"] = classes;
|
||||
}
|
||||
|
@ -203,7 +296,7 @@ namespace Filsonator
|
|||
JArray bases = new JArray();
|
||||
foreach (DataGridViewRow row in dataGridView_Base.Rows)
|
||||
{
|
||||
bases.Add(row.Cells[1].Value.ToString());
|
||||
bases.Add(row.Cells[1].Value.ToString());
|
||||
}
|
||||
jo["blocks"][MainForm.blockIndex]["BaseType"] = bases;
|
||||
}
|
||||
|
@ -225,9 +318,9 @@ namespace Filsonator
|
|||
{
|
||||
JObject cond = JObject.FromObject(new
|
||||
{
|
||||
name = row.Cells[0].Value,
|
||||
op = row.Cells[1].Value,
|
||||
value = row.Cells[2].Value
|
||||
name = row.Cells["cbConditions"].Value,
|
||||
op = row.Cells["cbCOp"].Value,
|
||||
value = row.Cells["condValue"].Value
|
||||
});
|
||||
condition.Add(cond);
|
||||
}
|
||||
|
@ -238,11 +331,10 @@ namespace Filsonator
|
|||
{
|
||||
JObject bas = JObject.FromObject(new
|
||||
{
|
||||
name = row.Cells[0].Value,
|
||||
va = row.Cells[1].Value,
|
||||
vb = row.Cells[2].Value,
|
||||
vc = row.Cells[3].Value,
|
||||
vd = row.Cells[4].Value
|
||||
name = row.Cells["cbAction"].Value,
|
||||
va = row.Cells["cbVarA"].Value,
|
||||
vb = row.Cells["cbVarB"].Value,
|
||||
vc = row.Cells["cbVarC"].Value
|
||||
});
|
||||
actions.Add(bas);
|
||||
}
|
||||
|
@ -337,5 +429,15 @@ namespace Filsonator
|
|||
{
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void pictureBox_AddCondition_Click(object sender, EventArgs e)
|
||||
{
|
||||
dataGridView_Condition.Rows.Add(imgDel,"","");
|
||||
}
|
||||
|
||||
private void pictureBox_AddAction_Click(object sender, EventArgs e)
|
||||
{
|
||||
dataGridView_Action.Rows.Add(imgDel, "", "", "");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -129,31 +129,35 @@
|
|||
<metadata name="col02.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="col001.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="col002.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="col003.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="dataGridViewTextBoxColumn1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="dataGridViewTextBoxColumn2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="dataGridViewTextBoxColumn3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="col004.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="col005.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="pictureBox_AddCondition.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||
YQUAAAAJcEhZcwAAALAAAACwARRqq2kAAAAZdEVYdFNvZnR3YXJlAHd3dy5pbmtzY2FwZS5vcmeb7jwa
|
||||
AAABx0lEQVRIS61VS07DMBDNIVjwFceBJmkcegq+WxDcghUCsYemivuhwBoO0abAFSr1w65UYcadoMYZ
|
||||
NW7ok55ke8ZvkvF4bC2CaIgdt+6dOlK8ArtOKL4VYexK78WW4qQUVrbJ3Rxu4G45oXcLQhNgnMOpI/3A
|
||||
Diu7tH0xQNiDTSNNxIQjtyHKJMPDCf0zcIQvYgVMOMWUklwapbpfAocfbUMRTjELJDuDynlOWs7fLuNa
|
||||
L1S8eL9ifeY43AsrGySv8n7POKX4EFXjBNWoxvqkCEWixLEUYSE3NUsHgArEzCQHyzmkWCAA/IU4tvDC
|
||||
sEaNhQJI0bbgknzoBjzE5EATdvpdko/jbj/K2LmDd6WIIIAY64bGZ4ukzNH8aqU0iGMMkCnPFQYYYoCe
|
||||
tsimCNOSwDRFwI7xIT9GAcnHasz5MGxb2HIZQ4ZFAsDHH1rYz2GS25YLBJhdNARM7jRjhssGgMzcKHGE
|
||||
1/Q2YdG42eGY85njwA7sdZKfwZbePhhW0q5teeCSbBr0/v7rwcGiITkeGB0ch9pGEw6gRTsksxjlp/Ia
|
||||
9JFr2GTy6E+w96ceGFOol67uHzl18QxCHSD2LSSO22j7K0UWlvULyd2jvgHLU0oAAAAASUVORK5CYII=
|
||||
</value>
|
||||
</data>
|
||||
<data name="pictureBox_AddAction.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAA
|
||||
rwAAAK8BK7AVuQAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAHHSURBVEhLrVVL
|
||||
TsMwEM0hWPAVx4EmaRx6Cr5bENyCFQKxh6aK+6HAGg7RpsAVKvXDrlRhxp2gxhk1buiTnmR7xm+S8Xhs
|
||||
LYJoiB237p06UrwCu04ovhVh7ErvxZbipBRWtsndHG7gbjmhdwtCE2Ccw6kj/cAOK7u0fTFA2INNI03E
|
||||
hCO3Icokw8MJ/TNwhC9iBUw4xZSSXBqlul8Chx9tQxFOMQskO4PKeU5azt8u41ovVLx4v2J95jjcCysb
|
||||
JK/yfs84pfgQVeME1ajG+qQIRaLEsRRhITc1SweACsTMJAfLOaRYIAD8hTi28MKwRo2FAkjRtuCSfOgG
|
||||
PMTkQBN2+l2Sj+NuP8rYuYN3pYgggBjrhsZni6TM0fxqpTSIYwyQKc8VBhhigJ62yKYI05LANEXAjvEh
|
||||
P0YBycdqzPkwbFvYchlDhkUCwMcfWtjPYZLblgsEmF00BEzuNGOGywaAzNwocYTX9DZh0bjZ4ZjzmePA
|
||||
Dux1kp/Blt4+GFbSrm154JJsGvT+/uvBwaIhOR4YHRyH2kYTDqBFOySzGOWn8hr0kWvYZPLoT7D3px4Y
|
||||
U6iXru4fOXXxDEIdIPYtJI7baPsrRRaW9QvJ3aO+ActTSgAAAABJRU5ErkJggg==
|
||||
</value>
|
||||
</data>
|
||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
AAABAAYAAAAAAAEAIADCCwAAZgAAAICAAAABACAAKAgBACgMAABAQAAAAQAgAChCAABQFAEAMDAAAAEA
|
||||
|
|
|
@ -66,6 +66,24 @@
|
|||
</Compile>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="SettingForm.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="SettingForm.Designer.cs">
|
||||
<DependentUpon>SettingForm.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="StructureForm.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="StructureForm.Designer.cs">
|
||||
<DependentUpon>StructureForm.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="TierForm.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="TierForm.Designer.cs">
|
||||
<DependentUpon>TierForm.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Utilities\Draw.cs" />
|
||||
<EmbeddedResource Include="BlockForm.resx">
|
||||
<DependentUpon>BlockForm.cs</DependentUpon>
|
||||
|
@ -82,6 +100,15 @@
|
|||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
</Compile>
|
||||
<EmbeddedResource Include="SettingForm.resx">
|
||||
<DependentUpon>SettingForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="StructureForm.resx">
|
||||
<DependentUpon>StructureForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="TierForm.resx">
|
||||
<DependentUpon>TierForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<None Include="packages.config" />
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
this.colindex = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.coldel = new System.Windows.Forms.DataGridViewImageColumn();
|
||||
this.col0 = new System.Windows.Forms.DataGridViewImageColumn();
|
||||
this.colcopy = new System.Windows.Forms.DataGridViewImageColumn();
|
||||
this.col1 = new System.Windows.Forms.DataGridViewImageColumn();
|
||||
this.col2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.col3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
|
@ -53,7 +54,9 @@
|
|||
this.button_Save = new System.Windows.Forms.Button();
|
||||
this.button_AddBlock = new System.Windows.Forms.Button();
|
||||
this.button_Compile = new System.Windows.Forms.Button();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.button_Structures = new System.Windows.Forms.Button();
|
||||
this.button_Tiers = new System.Windows.Forms.Button();
|
||||
this.button_Settings = new System.Windows.Forms.Button();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGrid_Main_BlockList)).BeginInit();
|
||||
this.statusStrip_Main.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
|
@ -67,10 +70,12 @@
|
|||
this.dataGrid_Main_BlockList.AllowUserToResizeRows = false;
|
||||
this.dataGrid_Main_BlockList.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.DisplayedCells;
|
||||
this.dataGrid_Main_BlockList.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dataGrid_Main_BlockList.ColumnHeadersVisible = false;
|
||||
this.dataGrid_Main_BlockList.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.colindex,
|
||||
this.coldel,
|
||||
this.col0,
|
||||
this.colcopy,
|
||||
this.col1,
|
||||
this.col2,
|
||||
this.col3,
|
||||
|
@ -109,14 +114,14 @@
|
|||
this.colindex.Name = "colindex";
|
||||
this.colindex.ReadOnly = true;
|
||||
this.colindex.Visible = false;
|
||||
this.colindex.Width = 38;
|
||||
this.colindex.Width = 5;
|
||||
//
|
||||
// coldel
|
||||
//
|
||||
this.coldel.HeaderText = "Delete";
|
||||
this.coldel.Name = "coldel";
|
||||
this.coldel.ReadOnly = true;
|
||||
this.coldel.Width = 44;
|
||||
this.coldel.Width = 5;
|
||||
//
|
||||
// col0
|
||||
//
|
||||
|
@ -124,28 +129,35 @@
|
|||
this.col0.Name = "col0";
|
||||
this.col0.ReadOnly = true;
|
||||
this.col0.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.col0.Width = 31;
|
||||
this.col0.Width = 5;
|
||||
//
|
||||
// colcopy
|
||||
//
|
||||
this.colcopy.HeaderText = "colcopy";
|
||||
this.colcopy.Name = "colcopy";
|
||||
this.colcopy.ReadOnly = true;
|
||||
this.colcopy.Width = 5;
|
||||
//
|
||||
// col1
|
||||
//
|
||||
this.col1.HeaderText = "In-Game";
|
||||
this.col1.Name = "col1";
|
||||
this.col1.ReadOnly = true;
|
||||
this.col1.Width = 53;
|
||||
this.col1.Width = 5;
|
||||
//
|
||||
// col2
|
||||
//
|
||||
this.col2.HeaderText = "Type";
|
||||
this.col2.Name = "col2";
|
||||
this.col2.ReadOnly = true;
|
||||
this.col2.Width = 56;
|
||||
this.col2.Width = 5;
|
||||
//
|
||||
// col3
|
||||
//
|
||||
this.col3.HeaderText = "Visibility";
|
||||
this.col3.Name = "col3";
|
||||
this.col3.ReadOnly = true;
|
||||
this.col3.Width = 68;
|
||||
this.col3.Width = 5;
|
||||
//
|
||||
// col10
|
||||
//
|
||||
|
@ -154,7 +166,7 @@
|
|||
this.col10.ReadOnly = true;
|
||||
this.col10.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.col10.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
|
||||
this.col10.Width = 68;
|
||||
this.col10.Width = 5;
|
||||
//
|
||||
// col11
|
||||
//
|
||||
|
@ -163,21 +175,21 @@
|
|||
this.col11.ReadOnly = true;
|
||||
this.col11.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.col11.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
|
||||
this.col11.Width = 48;
|
||||
this.col11.Width = 5;
|
||||
//
|
||||
// col4
|
||||
//
|
||||
this.col4.HeaderText = "Class";
|
||||
this.col4.Name = "col4";
|
||||
this.col4.ReadOnly = true;
|
||||
this.col4.Width = 57;
|
||||
this.col4.Width = 5;
|
||||
//
|
||||
// col5
|
||||
//
|
||||
this.col5.HeaderText = "Base";
|
||||
this.col5.Name = "col5";
|
||||
this.col5.ReadOnly = true;
|
||||
this.col5.Width = 56;
|
||||
this.col5.Width = 5;
|
||||
//
|
||||
// col6
|
||||
//
|
||||
|
@ -185,7 +197,7 @@
|
|||
this.col6.Name = "col6";
|
||||
this.col6.ReadOnly = true;
|
||||
this.col6.Visible = false;
|
||||
this.col6.Width = 77;
|
||||
this.col6.Width = 5;
|
||||
//
|
||||
// col7
|
||||
//
|
||||
|
@ -193,7 +205,7 @@
|
|||
this.col7.Name = "col7";
|
||||
this.col7.ReadOnly = true;
|
||||
this.col7.Visible = false;
|
||||
this.col7.Width = 90;
|
||||
this.col7.Width = 5;
|
||||
//
|
||||
// col8
|
||||
//
|
||||
|
@ -201,14 +213,14 @@
|
|||
this.col8.Name = "col8";
|
||||
this.col8.ReadOnly = true;
|
||||
this.col8.Visible = false;
|
||||
this.col8.Width = 63;
|
||||
this.col8.Width = 5;
|
||||
//
|
||||
// col9
|
||||
//
|
||||
this.col9.HeaderText = "Font";
|
||||
this.col9.Name = "col9";
|
||||
this.col9.ReadOnly = true;
|
||||
this.col9.Width = 53;
|
||||
this.col9.Width = 5;
|
||||
//
|
||||
// comboBox_FilsonFiles
|
||||
//
|
||||
|
@ -285,22 +297,44 @@
|
|||
this.button_Compile.UseVisualStyleBackColor = true;
|
||||
this.button_Compile.Click += new System.EventHandler(this.button_Compile_Click);
|
||||
//
|
||||
// button1
|
||||
// button_Structures
|
||||
//
|
||||
this.button1.Enabled = false;
|
||||
this.button1.Location = new System.Drawing.Point(421, 5);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(75, 23);
|
||||
this.button1.TabIndex = 8;
|
||||
this.button1.Text = "Structure";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button_Structures.Location = new System.Drawing.Point(421, 5);
|
||||
this.button_Structures.Name = "button_Structures";
|
||||
this.button_Structures.Size = new System.Drawing.Size(75, 23);
|
||||
this.button_Structures.TabIndex = 8;
|
||||
this.button_Structures.Text = "Structure";
|
||||
this.button_Structures.UseVisualStyleBackColor = true;
|
||||
this.button_Structures.Click += new System.EventHandler(this.button_Structures_Click);
|
||||
//
|
||||
// button_Tiers
|
||||
//
|
||||
this.button_Tiers.Location = new System.Drawing.Point(502, 5);
|
||||
this.button_Tiers.Name = "button_Tiers";
|
||||
this.button_Tiers.Size = new System.Drawing.Size(75, 23);
|
||||
this.button_Tiers.TabIndex = 9;
|
||||
this.button_Tiers.Text = "Tiers";
|
||||
this.button_Tiers.UseVisualStyleBackColor = true;
|
||||
this.button_Tiers.Click += new System.EventHandler(this.button_Tiers_Click);
|
||||
//
|
||||
// button_Settings
|
||||
//
|
||||
this.button_Settings.Location = new System.Drawing.Point(583, 5);
|
||||
this.button_Settings.Name = "button_Settings";
|
||||
this.button_Settings.Size = new System.Drawing.Size(75, 23);
|
||||
this.button_Settings.TabIndex = 10;
|
||||
this.button_Settings.Text = "Settings";
|
||||
this.button_Settings.UseVisualStyleBackColor = true;
|
||||
this.button_Settings.Click += new System.EventHandler(this.button_Settings_Click);
|
||||
//
|
||||
// MainForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(984, 561);
|
||||
this.Controls.Add(this.button1);
|
||||
this.Controls.Add(this.button_Settings);
|
||||
this.Controls.Add(this.button_Tiers);
|
||||
this.Controls.Add(this.button_Structures);
|
||||
this.Controls.Add(this.button_Compile);
|
||||
this.Controls.Add(this.button_AddBlock);
|
||||
this.Controls.Add(this.button_Save);
|
||||
|
@ -331,9 +365,12 @@
|
|||
private System.Windows.Forms.Button button_Generate;
|
||||
private System.Windows.Forms.Button button_Save;
|
||||
private System.Windows.Forms.Button button_AddBlock;
|
||||
private System.Windows.Forms.Button button_Compile;
|
||||
private System.Windows.Forms.Button button_Structures;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colindex;
|
||||
private System.Windows.Forms.DataGridViewImageColumn coldel;
|
||||
private System.Windows.Forms.DataGridViewImageColumn col0;
|
||||
private System.Windows.Forms.DataGridViewImageColumn colcopy;
|
||||
private System.Windows.Forms.DataGridViewImageColumn col1;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn col2;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn col3;
|
||||
|
@ -345,8 +382,8 @@
|
|||
private System.Windows.Forms.DataGridViewTextBoxColumn col7;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn col8;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn col9;
|
||||
private System.Windows.Forms.Button button_Compile;
|
||||
private System.Windows.Forms.Button button1;
|
||||
private System.Windows.Forms.Button button_Tiers;
|
||||
private System.Windows.Forms.Button button_Settings;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -131,6 +131,13 @@ namespace Filsonator
|
|||
BlockForm bf = new BlockForm(this);
|
||||
bf.Show();
|
||||
}
|
||||
if (dataGrid_Main_BlockList.CurrentCell.ColumnIndex.Equals(3))
|
||||
{
|
||||
int bc = dataGrid_Main_BlockList.Rows.Count - 1;
|
||||
int bwn = bc + 1;
|
||||
dataGrid_Main_BlockList.Rows.Add(bwn, System.Drawing.Image.FromFile(@"img\deletelist.png"), System.Drawing.Image.FromFile(@"img\ListEdit.png"), System.Drawing.Image.FromFile(@"img\ListCopy.png"), Utilities.Draw.DrawBlock(Color.Black, Color.White, Color.Gray, 30), "All", "True", "Items", "", "0 0 0", "0 0 0", "0 0 0", "30");
|
||||
CopyBlockFromGridView(Convert.ToInt16(dataGrid_Main_BlockList.CurrentRow.Cells[0].Value));
|
||||
}
|
||||
}
|
||||
|
||||
public void UpdateBlockList()
|
||||
|
@ -174,7 +181,7 @@ namespace Filsonator
|
|||
dataGrid_Main_BlockList.Columns["col10"].MinimumWidth = 100;
|
||||
dataGrid_Main_BlockList.Columns[7].DefaultCellStyle.WrapMode = DataGridViewTriState.True;
|
||||
dataGrid_Main_BlockList.Columns["col11"].MinimumWidth = 100;
|
||||
dataGrid_Main_BlockList.Rows.Add(current, System.Drawing.Image.FromFile(@"img\deletelist.png"), System.Drawing.Image.FromFile(@"img\ListEdit.png"), Utilities.Draw.DrawBlock(text, background, border, Convert.ToInt16(b.SetFontSize)), b.Type, b.Show, conditionsMulti, actionsMulti, classes, bases, b.SetTextColor[0], b.SetBackgroundColor[0], b.SetBorderColor[0], b.SetFontSize);
|
||||
dataGrid_Main_BlockList.Rows.Add(current, System.Drawing.Image.FromFile(@"img\deletelist.png"), System.Drawing.Image.FromFile(@"img\ListEdit.png"), System.Drawing.Image.FromFile(@"img\ListCopy.png"), Utilities.Draw.DrawBlock(text, background, border, Convert.ToInt16(b.SetFontSize)), b.Type, b.Show, conditionsMulti, actionsMulti, classes, bases, b.SetTextColor[0], b.SetBackgroundColor[0], b.SetBorderColor[0], b.SetFontSize);
|
||||
current++;
|
||||
classes = "";
|
||||
bases = "";
|
||||
|
@ -281,7 +288,7 @@ namespace Filsonator
|
|||
{
|
||||
int bc = dataGrid_Main_BlockList.Rows.Count - 1;
|
||||
int bwn = bc + 1;
|
||||
dataGrid_Main_BlockList.Rows.Add(bwn, System.Drawing.Image.FromFile(@"img\deletelist.png"), System.Drawing.Image.FromFile(@"img\ListEdit.png"), Utilities.Draw.DrawBlock(Color.Black, Color.White, Color.Gray, 30), "All", "True", "Items", "", "0 0 0", "0 0 0", "0 0 0", "30");
|
||||
dataGrid_Main_BlockList.Rows.Add(bwn, System.Drawing.Image.FromFile(@"img\deletelist.png"), System.Drawing.Image.FromFile(@"img\ListEdit.png"), System.Drawing.Image.FromFile(@"img\ListCopy.png"), Utilities.Draw.DrawBlock(Color.Black, Color.White, Color.Gray, 30), "All", "True", "Items", "", "0 0 0", "0 0 0", "0 0 0", "30");
|
||||
AddBlockFromGridView();
|
||||
UpdateBlockList();
|
||||
}
|
||||
|
@ -355,6 +362,145 @@ namespace Filsonator
|
|||
UpdateBlockList();
|
||||
}
|
||||
|
||||
public void CopyBlockFromGridView(int rowIndex)
|
||||
{
|
||||
string[] empty = { };
|
||||
string[] colorw = { "255 255 255" };
|
||||
string[] colorb = { "0 0 0" };
|
||||
String json = File.ReadAllText($@"filson\{MainForm.blockFile}");
|
||||
dynamic jo = JsonConvert.DeserializeObject(json);
|
||||
JArray blocks = new JArray();
|
||||
int bc = dataGrid_Main_BlockList.Rows.Count;
|
||||
int cb = 1;
|
||||
foreach (DataGridViewRow row in dataGrid_Main_BlockList.Rows)
|
||||
{
|
||||
if (cb < bc)
|
||||
{
|
||||
cb++;
|
||||
string bjson = File.ReadAllText($@"filson\{MainForm.blockFile}");
|
||||
dynamic bjo = JsonConvert.DeserializeObject(json);
|
||||
//// Save to JArray for re-order
|
||||
jSType = bjo["blocks"][row.Cells[0].Value]["Type"];
|
||||
jSShow = bjo["blocks"][row.Cells[0].Value]["Show"];
|
||||
jLClass = bjo["blocks"][row.Cells[0].Value]["Class"];
|
||||
jLBaseType = bjo["blocks"][row.Cells[0].Value]["BaseType"];
|
||||
jLSetTextColor = bjo["blocks"][row.Cells[0].Value]["SetTextColor"];
|
||||
jLSetBackgroundColor = bjo["blocks"][row.Cells[0].Value]["SetBackgroundColor"];
|
||||
jLSetBorderColor = bjo["blocks"][row.Cells[0].Value]["SetBorderColor"]; ;
|
||||
jSFontSize = bjo["blocks"][row.Cells[0].Value]["SetFontSize"];
|
||||
foreach (var condition in bjo["blocks"][row.Cells[0].Value]["Conditions"])
|
||||
{
|
||||
JObject cond = JObject.FromObject(new
|
||||
{
|
||||
name = condition.name,
|
||||
op = condition.op,
|
||||
value = condition.value
|
||||
});
|
||||
jAConditions.Add(cond);
|
||||
}
|
||||
foreach (var action in bjo["blocks"][row.Cells[0].Value]["Actions"])
|
||||
{
|
||||
JObject act = JObject.FromObject(new
|
||||
{
|
||||
name = action.name,
|
||||
va = action.va,
|
||||
vb = action.vb,
|
||||
vc = action.vc,
|
||||
vd = action.vd
|
||||
});
|
||||
jAActions.Add(act);
|
||||
}
|
||||
////////////////////////////////
|
||||
JObject bas = JObject.FromObject(new
|
||||
{
|
||||
Type = jSType,
|
||||
Show = jSShow,
|
||||
Class = jLClass,
|
||||
BaseType = jLBaseType,
|
||||
SetTextColor = jLSetTextColor,
|
||||
SetBackgroundColor = jLSetBackgroundColor,
|
||||
SetBorderColor = jLSetBorderColor,
|
||||
SetFontSize = jSFontSize,
|
||||
Conditions = jAConditions,
|
||||
Actions = jAActions
|
||||
});
|
||||
blocks.Add(bas);
|
||||
jLClass.Clear();
|
||||
jLBaseType.Clear();
|
||||
jLSetTextColor.Clear();
|
||||
jLSetBackgroundColor.Clear();
|
||||
jLSetBorderColor.Clear();
|
||||
jAConditions.Clear();
|
||||
jAActions.Clear();
|
||||
jo["blocks"] = blocks;
|
||||
string output = JsonConvert.SerializeObject(jo, Formatting.Indented);
|
||||
File.WriteAllText($@"filson\{MainForm.blockFile}", output);
|
||||
}
|
||||
else
|
||||
{
|
||||
string bjson = File.ReadAllText($@"filson\{MainForm.blockFile}");
|
||||
dynamic bjo = JsonConvert.DeserializeObject(json);
|
||||
//// Save to JArray for re-order
|
||||
jSType = bjo["blocks"][rowIndex]["Type"];
|
||||
jSShow = bjo["blocks"][rowIndex]["Show"];
|
||||
jLClass = bjo["blocks"][rowIndex]["Class"];
|
||||
jLBaseType = bjo["blocks"][rowIndex]["BaseType"];
|
||||
jLSetTextColor = bjo["blocks"][rowIndex]["SetTextColor"];
|
||||
jLSetBackgroundColor = bjo["blocks"][rowIndex]["SetBackgroundColor"];
|
||||
jLSetBorderColor = bjo["blocks"][rowIndex]["SetBorderColor"]; ;
|
||||
jSFontSize = bjo["blocks"][rowIndex]["SetFontSize"];
|
||||
foreach (var condition in bjo["blocks"][rowIndex]["Conditions"])
|
||||
{
|
||||
JObject cond = JObject.FromObject(new
|
||||
{
|
||||
name = condition.name,
|
||||
op = condition.op,
|
||||
value = condition.value
|
||||
});
|
||||
jAConditions.Add(cond);
|
||||
}
|
||||
foreach (var action in bjo["blocks"][rowIndex]["Actions"])
|
||||
{
|
||||
JObject act = JObject.FromObject(new
|
||||
{
|
||||
name = action.name,
|
||||
va = action.va,
|
||||
vb = action.vb,
|
||||
vc = action.vc,
|
||||
vd = action.vd
|
||||
});
|
||||
jAActions.Add(act);
|
||||
}
|
||||
////////////////////////////////
|
||||
JObject bas = JObject.FromObject(new
|
||||
{
|
||||
Type = jSType,
|
||||
Show = jSShow,
|
||||
Class = jLClass,
|
||||
BaseType = jLBaseType,
|
||||
SetTextColor = jLSetTextColor,
|
||||
SetBackgroundColor = jLSetBackgroundColor,
|
||||
SetBorderColor = jLSetBorderColor,
|
||||
SetFontSize = jSFontSize,
|
||||
Conditions = jAConditions,
|
||||
Actions = jAActions
|
||||
});
|
||||
blocks.Add(bas);
|
||||
jLClass.Clear();
|
||||
jLBaseType.Clear();
|
||||
jLSetTextColor.Clear();
|
||||
jLSetBackgroundColor.Clear();
|
||||
jLSetBorderColor.Clear();
|
||||
jAConditions.Clear();
|
||||
jAActions.Clear();
|
||||
jo["blocks"] = blocks;
|
||||
string output = JsonConvert.SerializeObject(jo, Formatting.Indented);
|
||||
File.WriteAllText($@"filson\{MainForm.blockFile}", output);
|
||||
}
|
||||
}
|
||||
UpdateBlockList();
|
||||
}
|
||||
|
||||
public void AddBlockFromGridView()
|
||||
{
|
||||
string[] empty = { };
|
||||
|
@ -440,7 +586,7 @@ namespace Filsonator
|
|||
jLSetTextColor = JArray.FromObject(colorw);
|
||||
jLSetBackgroundColor = JArray.FromObject(colorb);
|
||||
jLSetBorderColor = JArray.FromObject(colorw);
|
||||
jSFontSize = row.Cells[11].Value.ToString();
|
||||
jSFontSize = "35";
|
||||
JObject cond = JObject.FromObject(new
|
||||
{
|
||||
name = "",
|
||||
|
@ -486,5 +632,23 @@ namespace Filsonator
|
|||
}
|
||||
UpdateBlockList();
|
||||
}
|
||||
|
||||
private void button_Structures_Click(object sender, EventArgs e)
|
||||
{
|
||||
StructureForm structureForm = new StructureForm();
|
||||
structureForm.Show();
|
||||
}
|
||||
|
||||
private void button_Tiers_Click(object sender, EventArgs e)
|
||||
{
|
||||
TierForm tierForm = new TierForm();
|
||||
tierForm.Show();
|
||||
}
|
||||
|
||||
private void button_Settings_Click(object sender, EventArgs e)
|
||||
{
|
||||
SettingForm settingForm = new SettingForm();
|
||||
settingForm.Show();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -126,6 +126,9 @@
|
|||
<metadata name="col0.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colcopy.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="col1.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
|
|
|
@ -0,0 +1,206 @@
|
|||
namespace Filsonator
|
||||
{
|
||||
partial class SettingForm
|
||||
{
|
||||
/// <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()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SettingForm));
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.comboBox_League = new System.Windows.Forms.ComboBox();
|
||||
this.textBox_Tier = new System.Windows.Forms.TextBox();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.textBox_Unique = new System.Windows.Forms.TextBox();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.textBox_Fossil = new System.Windows.Forms.TextBox();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
this.textBox_DivCard = new System.Windows.Forms.TextBox();
|
||||
this.button_Close = new System.Windows.Forms.Button();
|
||||
this.button_Save = new System.Windows.Forms.Button();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label1.Location = new System.Drawing.Point(12, 9);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(53, 13);
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "League:";
|
||||
//
|
||||
// comboBox_League
|
||||
//
|
||||
this.comboBox_League.FormattingEnabled = true;
|
||||
this.comboBox_League.Location = new System.Drawing.Point(124, 6);
|
||||
this.comboBox_League.Name = "comboBox_League";
|
||||
this.comboBox_League.Size = new System.Drawing.Size(121, 21);
|
||||
this.comboBox_League.TabIndex = 1;
|
||||
//
|
||||
// textBox_Tier
|
||||
//
|
||||
this.textBox_Tier.Location = new System.Drawing.Point(124, 45);
|
||||
this.textBox_Tier.Name = "textBox_Tier";
|
||||
this.textBox_Tier.Size = new System.Drawing.Size(121, 20);
|
||||
this.textBox_Tier.TabIndex = 2;
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label2.Location = new System.Drawing.Point(12, 48);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(34, 13);
|
||||
this.label2.TabIndex = 3;
|
||||
this.label2.Text = "Tier:";
|
||||
//
|
||||
// textBox_Unique
|
||||
//
|
||||
this.textBox_Unique.Location = new System.Drawing.Point(124, 71);
|
||||
this.textBox_Unique.Name = "textBox_Unique";
|
||||
this.textBox_Unique.Size = new System.Drawing.Size(121, 20);
|
||||
this.textBox_Unique.TabIndex = 4;
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label3.Location = new System.Drawing.Point(12, 74);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(51, 13);
|
||||
this.label3.TabIndex = 5;
|
||||
this.label3.Text = "Unique:";
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label4.Location = new System.Drawing.Point(12, 29);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(73, 13);
|
||||
this.label4.TabIndex = 6;
|
||||
this.label4.Text = "Min. Value";
|
||||
//
|
||||
// textBox_Fossil
|
||||
//
|
||||
this.textBox_Fossil.Location = new System.Drawing.Point(124, 97);
|
||||
this.textBox_Fossil.Name = "textBox_Fossil";
|
||||
this.textBox_Fossil.Size = new System.Drawing.Size(121, 20);
|
||||
this.textBox_Fossil.TabIndex = 7;
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label5.Location = new System.Drawing.Point(12, 100);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(43, 13);
|
||||
this.label5.TabIndex = 8;
|
||||
this.label5.Text = "Fossil:";
|
||||
//
|
||||
// label6
|
||||
//
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label6.Location = new System.Drawing.Point(12, 126);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(66, 13);
|
||||
this.label6.TabIndex = 9;
|
||||
this.label6.Text = "Div. Card:";
|
||||
//
|
||||
// textBox_DivCard
|
||||
//
|
||||
this.textBox_DivCard.Location = new System.Drawing.Point(124, 123);
|
||||
this.textBox_DivCard.Name = "textBox_DivCard";
|
||||
this.textBox_DivCard.Size = new System.Drawing.Size(121, 20);
|
||||
this.textBox_DivCard.TabIndex = 10;
|
||||
//
|
||||
// button_Close
|
||||
//
|
||||
this.button_Close.Location = new System.Drawing.Point(44, 182);
|
||||
this.button_Close.Name = "button_Close";
|
||||
this.button_Close.Size = new System.Drawing.Size(163, 23);
|
||||
this.button_Close.TabIndex = 42;
|
||||
this.button_Close.Text = "Close";
|
||||
this.button_Close.UseVisualStyleBackColor = true;
|
||||
this.button_Close.Click += new System.EventHandler(this.button_Close_Click);
|
||||
//
|
||||
// button_Save
|
||||
//
|
||||
this.button_Save.Location = new System.Drawing.Point(45, 149);
|
||||
this.button_Save.Name = "button_Save";
|
||||
this.button_Save.Size = new System.Drawing.Size(163, 23);
|
||||
this.button_Save.TabIndex = 41;
|
||||
this.button_Save.Text = "Save";
|
||||
this.button_Save.UseVisualStyleBackColor = true;
|
||||
this.button_Save.Click += new System.EventHandler(this.button_Save_Click);
|
||||
//
|
||||
// SettingForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(259, 211);
|
||||
this.Controls.Add(this.button_Close);
|
||||
this.Controls.Add(this.button_Save);
|
||||
this.Controls.Add(this.textBox_DivCard);
|
||||
this.Controls.Add(this.label6);
|
||||
this.Controls.Add(this.label5);
|
||||
this.Controls.Add(this.textBox_Fossil);
|
||||
this.Controls.Add(this.label4);
|
||||
this.Controls.Add(this.label3);
|
||||
this.Controls.Add(this.textBox_Unique);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.textBox_Tier);
|
||||
this.Controls.Add(this.comboBox_League);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.Name = "SettingForm";
|
||||
this.Text = "Settings";
|
||||
this.Load += new System.EventHandler(this.SettingForm_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.ComboBox comboBox_League;
|
||||
private System.Windows.Forms.TextBox textBox_Tier;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.TextBox textBox_Unique;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.TextBox textBox_Fossil;
|
||||
private System.Windows.Forms.Label label5;
|
||||
private System.Windows.Forms.Label label6;
|
||||
private System.Windows.Forms.TextBox textBox_DivCard;
|
||||
private System.Windows.Forms.Button button_Close;
|
||||
private System.Windows.Forms.Button button_Save;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,62 @@
|
|||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Filsonator
|
||||
{
|
||||
public partial class SettingForm : Form
|
||||
{
|
||||
public SettingForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void SettingForm_Load(object sender, EventArgs e)
|
||||
{
|
||||
StructureForm.Settings j = JsonConvert.DeserializeObject<StructureForm.Settings>(File.ReadAllText("settings.json"));
|
||||
comboBox_League.Text = j.league;
|
||||
WebClient wc = new WebClient();
|
||||
wc.DownloadFile("https://io.mxg.ovh/poe/leagues.txt", "leagues.txt");
|
||||
var lfln = File.ReadAllLines("leagues.txt");
|
||||
foreach (var l in lfln)
|
||||
{
|
||||
comboBox_League.Items.Add(l);
|
||||
}
|
||||
textBox_Tier.Text = j.tierValue.ToString();
|
||||
textBox_Unique.Text = j.uniqueValue.ToString();
|
||||
textBox_Fossil.Text = j.fossilValue.ToString();
|
||||
textBox_DivCard.Text = j.cardValue.ToString();
|
||||
}
|
||||
|
||||
private void button_Close_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void button_Save_Click(object sender, EventArgs e)
|
||||
{
|
||||
string json = File.ReadAllText($@"settings.json");
|
||||
dynamic jo = JsonConvert.DeserializeObject(json);
|
||||
|
||||
jo["tierValue"] = Convert.ToInt32(textBox_Tier.Text);
|
||||
jo["uniqueValue"] = Convert.ToInt32(textBox_Unique.Text);
|
||||
jo["fossilValue"] = Convert.ToInt32(textBox_Fossil.Text);
|
||||
jo["cardValue"] = Convert.ToInt32(textBox_DivCard.Text);
|
||||
|
||||
string output = JsonConvert.SerializeObject(jo, Formatting.Indented);
|
||||
File.WriteAllText($@"settings.json", output);
|
||||
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,134 @@
|
|||
namespace Filsonator
|
||||
{
|
||||
partial class StructureForm
|
||||
{
|
||||
/// <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()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(StructureForm));
|
||||
this.dataGridView_Structures = new System.Windows.Forms.DataGridView();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.button_Close = new System.Windows.Forms.Button();
|
||||
this.button_Save = new System.Windows.Forms.Button();
|
||||
this.col02 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.col01 = new System.Windows.Forms.DataGridViewImageColumn();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView_Structures)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// dataGridView_Structures
|
||||
//
|
||||
this.dataGridView_Structures.AllowDrop = true;
|
||||
this.dataGridView_Structures.AllowUserToAddRows = false;
|
||||
this.dataGridView_Structures.AllowUserToDeleteRows = false;
|
||||
this.dataGridView_Structures.AllowUserToResizeColumns = false;
|
||||
this.dataGridView_Structures.AllowUserToResizeRows = false;
|
||||
this.dataGridView_Structures.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.DisplayedCells;
|
||||
this.dataGridView_Structures.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dataGridView_Structures.ColumnHeadersVisible = false;
|
||||
this.dataGridView_Structures.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.col02,
|
||||
this.col01});
|
||||
this.dataGridView_Structures.Location = new System.Drawing.Point(12, 25);
|
||||
this.dataGridView_Structures.Name = "dataGridView_Structures";
|
||||
this.dataGridView_Structures.RowHeadersVisible = false;
|
||||
this.dataGridView_Structures.Size = new System.Drawing.Size(242, 524);
|
||||
this.dataGridView_Structures.TabIndex = 0;
|
||||
this.dataGridView_Structures.DragDrop += new System.Windows.Forms.DragEventHandler(this.dataGrid_Main_Structures_DragDrop);
|
||||
this.dataGridView_Structures.DragOver += new System.Windows.Forms.DragEventHandler(this.dataGrid_Main_Structures_DragOver);
|
||||
this.dataGridView_Structures.MouseDown += new System.Windows.Forms.MouseEventHandler(this.dataGrid_Main_Structures_MouseDown);
|
||||
this.dataGridView_Structures.MouseMove += new System.Windows.Forms.MouseEventHandler(this.dataGrid_Main_Structures_MouseMove);
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(12, 9);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(196, 13);
|
||||
this.label1.TabIndex = 1;
|
||||
this.label1.Text = "Drag and drop to re-order the structures.";
|
||||
//
|
||||
// button_Close
|
||||
//
|
||||
this.button_Close.Location = new System.Drawing.Point(135, 555);
|
||||
this.button_Close.Name = "button_Close";
|
||||
this.button_Close.Size = new System.Drawing.Size(120, 23);
|
||||
this.button_Close.TabIndex = 40;
|
||||
this.button_Close.Text = "Close";
|
||||
this.button_Close.UseVisualStyleBackColor = true;
|
||||
this.button_Close.Click += new System.EventHandler(this.button_Close_Click);
|
||||
//
|
||||
// button_Save
|
||||
//
|
||||
this.button_Save.Location = new System.Drawing.Point(12, 555);
|
||||
this.button_Save.Name = "button_Save";
|
||||
this.button_Save.Size = new System.Drawing.Size(120, 23);
|
||||
this.button_Save.TabIndex = 39;
|
||||
this.button_Save.Text = "Save";
|
||||
this.button_Save.UseVisualStyleBackColor = true;
|
||||
this.button_Save.Click += new System.EventHandler(this.button_Save_Click);
|
||||
//
|
||||
// col02
|
||||
//
|
||||
this.col02.HeaderText = "Name";
|
||||
this.col02.Name = "col02";
|
||||
this.col02.Visible = false;
|
||||
this.col02.Width = 5;
|
||||
//
|
||||
// col01
|
||||
//
|
||||
this.col01.HeaderText = "Structure";
|
||||
this.col01.Name = "col01";
|
||||
this.col01.Width = 5;
|
||||
//
|
||||
// StructureForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(267, 598);
|
||||
this.Controls.Add(this.button_Close);
|
||||
this.Controls.Add(this.button_Save);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.dataGridView_Structures);
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.Name = "StructureForm";
|
||||
this.Text = "Structures";
|
||||
this.Load += new System.EventHandler(this.StructureForm_Load);
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView_Structures)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.DataGridView dataGridView_Structures;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Button button_Close;
|
||||
private System.Windows.Forms.Button button_Save;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn col02;
|
||||
private System.Windows.Forms.DataGridViewImageColumn col01;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,181 @@
|
|||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using static Filsonator.MainForm;
|
||||
using static System.Net.Mime.MediaTypeNames;
|
||||
using static System.Windows.Forms.VisualStyles.VisualStyleElement.TrayNotify;
|
||||
|
||||
namespace Filsonator
|
||||
{
|
||||
public partial class StructureForm : Form
|
||||
{
|
||||
public StructureForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void StructureForm_Load(object sender, EventArgs e)
|
||||
{
|
||||
UpdateList();
|
||||
}
|
||||
|
||||
public void UpdateList()
|
||||
{
|
||||
Settings sj = JsonConvert.DeserializeObject<Settings>(File.ReadAllText($@"settings.json"));
|
||||
var str = sj.Structures;
|
||||
|
||||
dataGridView_Structures.Rows.Clear();
|
||||
dataGridView_Structures.RowTemplate.Height = 40;
|
||||
|
||||
foreach (var s in str)
|
||||
{
|
||||
dataGridView_Structures.Rows.Add(s, Utilities.Draw.DrawStructure(Color.White, Color.FromArgb(69, 53, 40), Color.Black, 45, s));
|
||||
}
|
||||
}
|
||||
|
||||
private Rectangle dragBoxFromMouseDown;
|
||||
private int rowIndexFromMouseDown;
|
||||
private int rowIndexOfItemUnderMouseToDrop;
|
||||
|
||||
private void dataGrid_Main_Structures_MouseMove(object sender, MouseEventArgs e)
|
||||
{
|
||||
if ((e.Button & MouseButtons.Left) == MouseButtons.Left)
|
||||
{
|
||||
// If the mouse moves outside the rectangle, start the drag.
|
||||
if (dragBoxFromMouseDown != Rectangle.Empty &&
|
||||
!dragBoxFromMouseDown.Contains(e.X, e.Y))
|
||||
{
|
||||
// Proceed with the drag and drop, passing in the list item.
|
||||
DragDropEffects dropEffect = dataGridView_Structures.DoDragDrop(
|
||||
dataGridView_Structures.Rows[rowIndexFromMouseDown],
|
||||
DragDropEffects.Move);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void dataGrid_Main_Structures_MouseDown(object sender, MouseEventArgs e)
|
||||
{
|
||||
// Get the index of the item the mouse is below.
|
||||
rowIndexFromMouseDown = dataGridView_Structures.HitTest(e.X, e.Y).RowIndex;
|
||||
|
||||
if (rowIndexFromMouseDown != -1)
|
||||
{
|
||||
// Remember the point where the mouse down occurred.
|
||||
// The DragSize indicates the size that the mouse can move
|
||||
// before a drag event should be started.
|
||||
Size dragSize = SystemInformation.DragSize;
|
||||
|
||||
// Create a rectangle using the DragSize, with the mouse position being
|
||||
// at the center of the rectangle.
|
||||
dragBoxFromMouseDown = new Rectangle(
|
||||
new Point(
|
||||
e.X - (dragSize.Width / 2),
|
||||
e.Y - (dragSize.Height / 2)),
|
||||
dragSize);
|
||||
}
|
||||
else
|
||||
// Reset the rectangle if the mouse is not over an item in the ListBox.
|
||||
dragBoxFromMouseDown = Rectangle.Empty;
|
||||
}
|
||||
|
||||
private void dataGrid_Main_Structures_DragOver(object sender, DragEventArgs e)
|
||||
{
|
||||
e.Effect = DragDropEffects.Move;
|
||||
}
|
||||
|
||||
private void dataGrid_Main_Structures_DragDrop(object sender, DragEventArgs e)
|
||||
{
|
||||
// The mouse locations are relative to the screen, so they must be
|
||||
// converted to client coordinates.
|
||||
Point clientPoint = dataGridView_Structures.PointToClient(new Point(e.X, e.Y));
|
||||
|
||||
// Get the row index of the item the mouse is below.
|
||||
rowIndexOfItemUnderMouseToDrop = dataGridView_Structures.HitTest(clientPoint.X, clientPoint.Y).RowIndex;
|
||||
|
||||
// If the drag operation was a move then remove and insert the row.
|
||||
if (e.Effect == DragDropEffects.Move)
|
||||
{
|
||||
DataGridViewRow rowToMove = e.Data.GetData(typeof(DataGridViewRow)) as DataGridViewRow;
|
||||
dataGridView_Structures.Rows.RemoveAt(rowIndexFromMouseDown);
|
||||
dataGridView_Structures.Rows.Insert(rowIndexOfItemUnderMouseToDrop, rowToMove);
|
||||
|
||||
}
|
||||
}
|
||||
public class Settings
|
||||
{
|
||||
public string league { get; set; }
|
||||
public List<string> Filters { get; set; }
|
||||
public List<string> Structures { get; set; }
|
||||
public int tierValue { get; set; }
|
||||
public bool tier1HAxe { get; set; }
|
||||
public bool tier2HAxe { get; set; }
|
||||
public bool tierBow { get; set; }
|
||||
public bool tierClaw { get; set; }
|
||||
public bool tierDagger { get; set; }
|
||||
public bool tier1HMace { get; set; }
|
||||
public bool tier2HMace { get; set; }
|
||||
public bool tierSceptre { get; set; }
|
||||
public bool tierStaff { get; set; }
|
||||
public bool tier1HSword { get; set; }
|
||||
public bool tier2HSword { get; set; }
|
||||
public bool tierWand { get; set; }
|
||||
public bool tierBody { get; set; }
|
||||
public bool tierBoots { get; set; }
|
||||
public bool tierGloves { get; set; }
|
||||
public bool tierHelmet { get; set; }
|
||||
public bool tierShield { get; set; }
|
||||
public bool tierQuiver { get; set; }
|
||||
public int uniqueValue { get; set; }
|
||||
public int fossilValue { get; set; }
|
||||
public int cardValue { get; set; }
|
||||
public List<string> tierBaseInclude { get; set; }
|
||||
public List<string> tierBaseExclude { get; set; }
|
||||
public bool install { get; set; }
|
||||
public string path { get; set; }
|
||||
public string structure { get; set; }
|
||||
public List<string> Sizes { get; set; }
|
||||
public List<string> Colors { get; set; }
|
||||
public List<string> Shapes { get; set; }
|
||||
public List<string> Actions { get; set; }
|
||||
public List<string> Conditions { get; set; }
|
||||
public List<string> Operators { get; set; }
|
||||
}
|
||||
|
||||
private void button_Close_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void button_Save_Click(object sender, EventArgs e)
|
||||
{
|
||||
DialogResult dr = MessageBox.Show("Are you sure? The structures order is major in importance for in-game result. Priority in structure is reflected in the final item filter.", "Confirmation", MessageBoxButtons.YesNo);
|
||||
if (dr == DialogResult.Yes)
|
||||
{
|
||||
string json = File.ReadAllText($@"settings.json");
|
||||
dynamic jo = JsonConvert.DeserializeObject(json);
|
||||
JArray structures = new JArray();
|
||||
foreach (DataGridViewRow row in dataGridView_Structures.Rows)
|
||||
{
|
||||
structures.Add(row.Cells[0].Value);
|
||||
jo["Structures"] = structures;
|
||||
string output = JsonConvert.SerializeObject(jo, Formatting.Indented);
|
||||
File.WriteAllText($@"settings.json", output);
|
||||
}
|
||||
UpdateList();
|
||||
}
|
||||
else if (DialogResult == DialogResult.No)
|
||||
{
|
||||
//Nothing to do
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,542 @@
|
|||
namespace Filsonator
|
||||
{
|
||||
partial class TierForm
|
||||
{
|
||||
/// <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()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(TierForm));
|
||||
this.checkBox_OneHandAxe = new System.Windows.Forms.CheckBox();
|
||||
this.checkBox_TwoHandAxe = new System.Windows.Forms.CheckBox();
|
||||
this.checkBox_OneHandMace = new System.Windows.Forms.CheckBox();
|
||||
this.checkBox_TwoHandMace = new System.Windows.Forms.CheckBox();
|
||||
this.checkBox_OneHandSword = new System.Windows.Forms.CheckBox();
|
||||
this.checkBox_TwoHandSword = new System.Windows.Forms.CheckBox();
|
||||
this.checkBox_Bow = new System.Windows.Forms.CheckBox();
|
||||
this.checkBox_Claw = new System.Windows.Forms.CheckBox();
|
||||
this.checkBox_Sceptre = new System.Windows.Forms.CheckBox();
|
||||
this.checkBox_Staff = new System.Windows.Forms.CheckBox();
|
||||
this.checkBox_Wand = new System.Windows.Forms.CheckBox();
|
||||
this.checkBox_Shield = new System.Windows.Forms.CheckBox();
|
||||
this.checkBox_Quiver = new System.Windows.Forms.CheckBox();
|
||||
this.checkBox_BodyArmour = new System.Windows.Forms.CheckBox();
|
||||
this.checkBox_Boots = new System.Windows.Forms.CheckBox();
|
||||
this.checkBox_Gloves = new System.Windows.Forms.CheckBox();
|
||||
this.checkBox_Helmet = new System.Windows.Forms.CheckBox();
|
||||
this.checkBox_Dagger = new System.Windows.Forms.CheckBox();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
this.dataGridView_BaseInclude = new System.Windows.Forms.DataGridView();
|
||||
this.dataGridView_BaseExclude = new System.Windows.Forms.DataGridView();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.label8 = new System.Windows.Forms.Label();
|
||||
this.button_Close = new System.Windows.Forms.Button();
|
||||
this.button_Save = new System.Windows.Forms.Button();
|
||||
this.pictureBox_AddBaseInclude = new System.Windows.Forms.PictureBox();
|
||||
this.pictureBox_AddBaseExclude = new System.Windows.Forms.PictureBox();
|
||||
this.colincimg = new System.Windows.Forms.DataGridViewImageColumn();
|
||||
this.colincname = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colexcimg = new System.Windows.Forms.DataGridViewImageColumn();
|
||||
this.colexcname = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView_BaseInclude)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView_BaseExclude)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox_AddBaseInclude)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox_AddBaseExclude)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// checkBox_OneHandAxe
|
||||
//
|
||||
this.checkBox_OneHandAxe.AutoSize = true;
|
||||
this.checkBox_OneHandAxe.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.checkBox_OneHandAxe.Location = new System.Drawing.Point(15, 25);
|
||||
this.checkBox_OneHandAxe.Name = "checkBox_OneHandAxe";
|
||||
this.checkBox_OneHandAxe.Size = new System.Drawing.Size(109, 17);
|
||||
this.checkBox_OneHandAxe.TabIndex = 0;
|
||||
this.checkBox_OneHandAxe.Text = "One-Hand Axe";
|
||||
this.checkBox_OneHandAxe.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBox_TwoHandAxe
|
||||
//
|
||||
this.checkBox_TwoHandAxe.AutoSize = true;
|
||||
this.checkBox_TwoHandAxe.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.checkBox_TwoHandAxe.Location = new System.Drawing.Point(15, 48);
|
||||
this.checkBox_TwoHandAxe.Name = "checkBox_TwoHandAxe";
|
||||
this.checkBox_TwoHandAxe.Size = new System.Drawing.Size(108, 17);
|
||||
this.checkBox_TwoHandAxe.TabIndex = 1;
|
||||
this.checkBox_TwoHandAxe.Text = "Two-Hand Axe";
|
||||
this.checkBox_TwoHandAxe.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBox_OneHandMace
|
||||
//
|
||||
this.checkBox_OneHandMace.AutoSize = true;
|
||||
this.checkBox_OneHandMace.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.checkBox_OneHandMace.Location = new System.Drawing.Point(129, 25);
|
||||
this.checkBox_OneHandMace.Name = "checkBox_OneHandMace";
|
||||
this.checkBox_OneHandMace.Size = new System.Drawing.Size(116, 17);
|
||||
this.checkBox_OneHandMace.TabIndex = 2;
|
||||
this.checkBox_OneHandMace.Text = "One-Hand Mace";
|
||||
this.checkBox_OneHandMace.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBox_TwoHandMace
|
||||
//
|
||||
this.checkBox_TwoHandMace.AutoSize = true;
|
||||
this.checkBox_TwoHandMace.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.checkBox_TwoHandMace.Location = new System.Drawing.Point(129, 48);
|
||||
this.checkBox_TwoHandMace.Name = "checkBox_TwoHandMace";
|
||||
this.checkBox_TwoHandMace.Size = new System.Drawing.Size(115, 17);
|
||||
this.checkBox_TwoHandMace.TabIndex = 3;
|
||||
this.checkBox_TwoHandMace.Text = "Two-Hand Mace";
|
||||
this.checkBox_TwoHandMace.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBox_OneHandSword
|
||||
//
|
||||
this.checkBox_OneHandSword.AutoSize = true;
|
||||
this.checkBox_OneHandSword.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.checkBox_OneHandSword.Location = new System.Drawing.Point(251, 25);
|
||||
this.checkBox_OneHandSword.Name = "checkBox_OneHandSword";
|
||||
this.checkBox_OneHandSword.Size = new System.Drawing.Size(123, 17);
|
||||
this.checkBox_OneHandSword.TabIndex = 4;
|
||||
this.checkBox_OneHandSword.Text = "One-Hand Sword";
|
||||
this.checkBox_OneHandSword.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBox_TwoHandSword
|
||||
//
|
||||
this.checkBox_TwoHandSword.AutoSize = true;
|
||||
this.checkBox_TwoHandSword.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.checkBox_TwoHandSword.Location = new System.Drawing.Point(251, 48);
|
||||
this.checkBox_TwoHandSword.Name = "checkBox_TwoHandSword";
|
||||
this.checkBox_TwoHandSword.Size = new System.Drawing.Size(122, 17);
|
||||
this.checkBox_TwoHandSword.TabIndex = 5;
|
||||
this.checkBox_TwoHandSword.Text = "Two-Hand Sword";
|
||||
this.checkBox_TwoHandSword.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBox_Bow
|
||||
//
|
||||
this.checkBox_Bow.AutoSize = true;
|
||||
this.checkBox_Bow.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.checkBox_Bow.Location = new System.Drawing.Point(380, 25);
|
||||
this.checkBox_Bow.Name = "checkBox_Bow";
|
||||
this.checkBox_Bow.Size = new System.Drawing.Size(50, 17);
|
||||
this.checkBox_Bow.TabIndex = 6;
|
||||
this.checkBox_Bow.Text = "Bow";
|
||||
this.checkBox_Bow.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBox_Claw
|
||||
//
|
||||
this.checkBox_Claw.AutoSize = true;
|
||||
this.checkBox_Claw.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.checkBox_Claw.Location = new System.Drawing.Point(380, 48);
|
||||
this.checkBox_Claw.Name = "checkBox_Claw";
|
||||
this.checkBox_Claw.Size = new System.Drawing.Size(54, 17);
|
||||
this.checkBox_Claw.TabIndex = 7;
|
||||
this.checkBox_Claw.Text = "Claw";
|
||||
this.checkBox_Claw.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBox_Sceptre
|
||||
//
|
||||
this.checkBox_Sceptre.AutoSize = true;
|
||||
this.checkBox_Sceptre.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.checkBox_Sceptre.Location = new System.Drawing.Point(436, 48);
|
||||
this.checkBox_Sceptre.Name = "checkBox_Sceptre";
|
||||
this.checkBox_Sceptre.Size = new System.Drawing.Size(70, 17);
|
||||
this.checkBox_Sceptre.TabIndex = 8;
|
||||
this.checkBox_Sceptre.Text = "Sceptre";
|
||||
this.checkBox_Sceptre.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBox_Staff
|
||||
//
|
||||
this.checkBox_Staff.AutoSize = true;
|
||||
this.checkBox_Staff.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.checkBox_Staff.Location = new System.Drawing.Point(510, 25);
|
||||
this.checkBox_Staff.Name = "checkBox_Staff";
|
||||
this.checkBox_Staff.Size = new System.Drawing.Size(53, 17);
|
||||
this.checkBox_Staff.TabIndex = 9;
|
||||
this.checkBox_Staff.Text = "Staff";
|
||||
this.checkBox_Staff.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBox_Wand
|
||||
//
|
||||
this.checkBox_Wand.AutoSize = true;
|
||||
this.checkBox_Wand.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.checkBox_Wand.Location = new System.Drawing.Point(510, 48);
|
||||
this.checkBox_Wand.Name = "checkBox_Wand";
|
||||
this.checkBox_Wand.Size = new System.Drawing.Size(57, 17);
|
||||
this.checkBox_Wand.TabIndex = 10;
|
||||
this.checkBox_Wand.Text = "Wand";
|
||||
this.checkBox_Wand.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBox_Shield
|
||||
//
|
||||
this.checkBox_Shield.AutoSize = true;
|
||||
this.checkBox_Shield.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.checkBox_Shield.Location = new System.Drawing.Point(330, 84);
|
||||
this.checkBox_Shield.Name = "checkBox_Shield";
|
||||
this.checkBox_Shield.Size = new System.Drawing.Size(61, 17);
|
||||
this.checkBox_Shield.TabIndex = 11;
|
||||
this.checkBox_Shield.Text = "Shield";
|
||||
this.checkBox_Shield.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBox_Quiver
|
||||
//
|
||||
this.checkBox_Quiver.AutoSize = true;
|
||||
this.checkBox_Quiver.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.checkBox_Quiver.Location = new System.Drawing.Point(15, 120);
|
||||
this.checkBox_Quiver.Name = "checkBox_Quiver";
|
||||
this.checkBox_Quiver.Size = new System.Drawing.Size(64, 17);
|
||||
this.checkBox_Quiver.TabIndex = 12;
|
||||
this.checkBox_Quiver.Text = "Quiver";
|
||||
this.checkBox_Quiver.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBox_BodyArmour
|
||||
//
|
||||
this.checkBox_BodyArmour.AutoSize = true;
|
||||
this.checkBox_BodyArmour.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.checkBox_BodyArmour.Location = new System.Drawing.Point(15, 84);
|
||||
this.checkBox_BodyArmour.Name = "checkBox_BodyArmour";
|
||||
this.checkBox_BodyArmour.Size = new System.Drawing.Size(102, 17);
|
||||
this.checkBox_BodyArmour.TabIndex = 13;
|
||||
this.checkBox_BodyArmour.Text = "Body Armour";
|
||||
this.checkBox_BodyArmour.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBox_Boots
|
||||
//
|
||||
this.checkBox_Boots.AutoSize = true;
|
||||
this.checkBox_Boots.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.checkBox_Boots.Location = new System.Drawing.Point(123, 84);
|
||||
this.checkBox_Boots.Name = "checkBox_Boots";
|
||||
this.checkBox_Boots.Size = new System.Drawing.Size(58, 17);
|
||||
this.checkBox_Boots.TabIndex = 14;
|
||||
this.checkBox_Boots.Text = "Boots";
|
||||
this.checkBox_Boots.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBox_Gloves
|
||||
//
|
||||
this.checkBox_Gloves.AutoSize = true;
|
||||
this.checkBox_Gloves.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.checkBox_Gloves.Location = new System.Drawing.Point(187, 84);
|
||||
this.checkBox_Gloves.Name = "checkBox_Gloves";
|
||||
this.checkBox_Gloves.Size = new System.Drawing.Size(65, 17);
|
||||
this.checkBox_Gloves.TabIndex = 15;
|
||||
this.checkBox_Gloves.Text = "Gloves";
|
||||
this.checkBox_Gloves.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBox_Helmet
|
||||
//
|
||||
this.checkBox_Helmet.AutoSize = true;
|
||||
this.checkBox_Helmet.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.checkBox_Helmet.Location = new System.Drawing.Point(258, 84);
|
||||
this.checkBox_Helmet.Name = "checkBox_Helmet";
|
||||
this.checkBox_Helmet.Size = new System.Drawing.Size(66, 17);
|
||||
this.checkBox_Helmet.TabIndex = 16;
|
||||
this.checkBox_Helmet.Text = "Helmet";
|
||||
this.checkBox_Helmet.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBox_Dagger
|
||||
//
|
||||
this.checkBox_Dagger.AutoSize = true;
|
||||
this.checkBox_Dagger.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.checkBox_Dagger.Location = new System.Drawing.Point(436, 25);
|
||||
this.checkBox_Dagger.Name = "checkBox_Dagger";
|
||||
this.checkBox_Dagger.Size = new System.Drawing.Size(68, 17);
|
||||
this.checkBox_Dagger.TabIndex = 17;
|
||||
this.checkBox_Dagger.Text = "Dagger";
|
||||
this.checkBox_Dagger.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label1.Location = new System.Drawing.Point(12, 9);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(66, 13);
|
||||
this.label1.TabIndex = 18;
|
||||
this.label1.Text = "Weapons";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label2.Location = new System.Drawing.Point(12, 68);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(63, 13);
|
||||
this.label2.TabIndex = 19;
|
||||
this.label2.Text = "Armours";
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label3.Location = new System.Drawing.Point(12, 104);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(85, 13);
|
||||
this.label3.TabIndex = 20;
|
||||
this.label3.Text = "Accessories";
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label4.Location = new System.Drawing.Point(12, 140);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(516, 13);
|
||||
this.label4.TabIndex = 21;
|
||||
this.label4.Text = "Amulets, Belts and Rings can\'t be disabled here. They are not generated, they are" +
|
||||
" static.";
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label5.Location = new System.Drawing.Point(12, 153);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(120, 13);
|
||||
this.label5.TabIndex = 22;
|
||||
this.label5.Text = "Base(s) - Include";
|
||||
//
|
||||
// label6
|
||||
//
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label6.Location = new System.Drawing.Point(12, 166);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(408, 13);
|
||||
this.label6.TabIndex = 23;
|
||||
this.label6.Text = "Item Base that are goind to be included, even if their type is disabled.";
|
||||
//
|
||||
// dataGridView_BaseInclude
|
||||
//
|
||||
this.dataGridView_BaseInclude.AllowUserToAddRows = false;
|
||||
this.dataGridView_BaseInclude.AllowUserToDeleteRows = false;
|
||||
this.dataGridView_BaseInclude.AllowUserToResizeColumns = false;
|
||||
this.dataGridView_BaseInclude.AllowUserToResizeRows = false;
|
||||
this.dataGridView_BaseInclude.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
|
||||
this.dataGridView_BaseInclude.AutoSizeRowsMode = System.Windows.Forms.DataGridViewAutoSizeRowsMode.DisplayedCells;
|
||||
this.dataGridView_BaseInclude.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dataGridView_BaseInclude.ColumnHeadersVisible = false;
|
||||
this.dataGridView_BaseInclude.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.colincimg,
|
||||
this.colincname});
|
||||
this.dataGridView_BaseInclude.Location = new System.Drawing.Point(15, 182);
|
||||
this.dataGridView_BaseInclude.Name = "dataGridView_BaseInclude";
|
||||
this.dataGridView_BaseInclude.RowHeadersVisible = false;
|
||||
this.dataGridView_BaseInclude.Size = new System.Drawing.Size(548, 150);
|
||||
this.dataGridView_BaseInclude.TabIndex = 24;
|
||||
this.dataGridView_BaseInclude.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGrid_BaseInclude_CellClick);
|
||||
//
|
||||
// dataGridView_BaseExclude
|
||||
//
|
||||
this.dataGridView_BaseExclude.AllowUserToAddRows = false;
|
||||
this.dataGridView_BaseExclude.AllowUserToDeleteRows = false;
|
||||
this.dataGridView_BaseExclude.AllowUserToResizeColumns = false;
|
||||
this.dataGridView_BaseExclude.AllowUserToResizeRows = false;
|
||||
this.dataGridView_BaseExclude.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
|
||||
this.dataGridView_BaseExclude.AutoSizeRowsMode = System.Windows.Forms.DataGridViewAutoSizeRowsMode.DisplayedCells;
|
||||
this.dataGridView_BaseExclude.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dataGridView_BaseExclude.ColumnHeadersVisible = false;
|
||||
this.dataGridView_BaseExclude.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.colexcimg,
|
||||
this.colexcname});
|
||||
this.dataGridView_BaseExclude.Location = new System.Drawing.Point(15, 364);
|
||||
this.dataGridView_BaseExclude.Name = "dataGridView_BaseExclude";
|
||||
this.dataGridView_BaseExclude.RowHeadersVisible = false;
|
||||
this.dataGridView_BaseExclude.Size = new System.Drawing.Size(548, 150);
|
||||
this.dataGridView_BaseExclude.TabIndex = 27;
|
||||
this.dataGridView_BaseExclude.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGrid_BaseExclude_CellClick);
|
||||
//
|
||||
// label7
|
||||
//
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label7.Location = new System.Drawing.Point(12, 348);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(410, 13);
|
||||
this.label7.TabIndex = 26;
|
||||
this.label7.Text = "Item Base that are goind to be excluded, even if their type is enabled.";
|
||||
//
|
||||
// label8
|
||||
//
|
||||
this.label8.AutoSize = true;
|
||||
this.label8.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label8.Location = new System.Drawing.Point(12, 335);
|
||||
this.label8.Name = "label8";
|
||||
this.label8.Size = new System.Drawing.Size(122, 13);
|
||||
this.label8.TabIndex = 25;
|
||||
this.label8.Text = "Base(s) - Exclude";
|
||||
//
|
||||
// button_Close
|
||||
//
|
||||
this.button_Close.Location = new System.Drawing.Point(400, 520);
|
||||
this.button_Close.Name = "button_Close";
|
||||
this.button_Close.Size = new System.Drawing.Size(163, 23);
|
||||
this.button_Close.TabIndex = 40;
|
||||
this.button_Close.Text = "Close";
|
||||
this.button_Close.UseVisualStyleBackColor = true;
|
||||
this.button_Close.Click += new System.EventHandler(this.button_Close_Click);
|
||||
//
|
||||
// button_Save
|
||||
//
|
||||
this.button_Save.Location = new System.Drawing.Point(15, 520);
|
||||
this.button_Save.Name = "button_Save";
|
||||
this.button_Save.Size = new System.Drawing.Size(163, 23);
|
||||
this.button_Save.TabIndex = 39;
|
||||
this.button_Save.Text = "Save";
|
||||
this.button_Save.UseVisualStyleBackColor = true;
|
||||
this.button_Save.Click += new System.EventHandler(this.button_Save_Click);
|
||||
//
|
||||
// pictureBox_AddBaseInclude
|
||||
//
|
||||
this.pictureBox_AddBaseInclude.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox_AddBaseInclude.Image")));
|
||||
this.pictureBox_AddBaseInclude.Location = new System.Drawing.Point(539, 155);
|
||||
this.pictureBox_AddBaseInclude.Name = "pictureBox_AddBaseInclude";
|
||||
this.pictureBox_AddBaseInclude.Size = new System.Drawing.Size(24, 24);
|
||||
this.pictureBox_AddBaseInclude.TabIndex = 41;
|
||||
this.pictureBox_AddBaseInclude.TabStop = false;
|
||||
this.pictureBox_AddBaseInclude.Click += new System.EventHandler(this.pictureBox_AddBaseInclude_Click);
|
||||
//
|
||||
// pictureBox_AddBaseExclude
|
||||
//
|
||||
this.pictureBox_AddBaseExclude.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox_AddBaseExclude.Image")));
|
||||
this.pictureBox_AddBaseExclude.Location = new System.Drawing.Point(539, 337);
|
||||
this.pictureBox_AddBaseExclude.Name = "pictureBox_AddBaseExclude";
|
||||
this.pictureBox_AddBaseExclude.Size = new System.Drawing.Size(24, 24);
|
||||
this.pictureBox_AddBaseExclude.TabIndex = 42;
|
||||
this.pictureBox_AddBaseExclude.TabStop = false;
|
||||
this.pictureBox_AddBaseExclude.Click += new System.EventHandler(this.pictureBox_AddBaseExclude_Click);
|
||||
//
|
||||
// colincimg
|
||||
//
|
||||
this.colincimg.HeaderText = "colincimg";
|
||||
this.colincimg.Name = "colincimg";
|
||||
//
|
||||
// colincname
|
||||
//
|
||||
this.colincname.HeaderText = "colincname";
|
||||
this.colincname.Name = "colincname";
|
||||
//
|
||||
// colexcimg
|
||||
//
|
||||
this.colexcimg.HeaderText = "colexcimg";
|
||||
this.colexcimg.Name = "colexcimg";
|
||||
//
|
||||
// colexcname
|
||||
//
|
||||
this.colexcname.HeaderText = "colexcname";
|
||||
this.colexcname.Name = "colexcname";
|
||||
//
|
||||
// TierForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(575, 549);
|
||||
this.Controls.Add(this.pictureBox_AddBaseExclude);
|
||||
this.Controls.Add(this.pictureBox_AddBaseInclude);
|
||||
this.Controls.Add(this.button_Close);
|
||||
this.Controls.Add(this.button_Save);
|
||||
this.Controls.Add(this.dataGridView_BaseExclude);
|
||||
this.Controls.Add(this.label7);
|
||||
this.Controls.Add(this.label8);
|
||||
this.Controls.Add(this.dataGridView_BaseInclude);
|
||||
this.Controls.Add(this.label6);
|
||||
this.Controls.Add(this.label5);
|
||||
this.Controls.Add(this.label4);
|
||||
this.Controls.Add(this.label3);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.checkBox_Dagger);
|
||||
this.Controls.Add(this.checkBox_Helmet);
|
||||
this.Controls.Add(this.checkBox_Gloves);
|
||||
this.Controls.Add(this.checkBox_Boots);
|
||||
this.Controls.Add(this.checkBox_BodyArmour);
|
||||
this.Controls.Add(this.checkBox_Quiver);
|
||||
this.Controls.Add(this.checkBox_Shield);
|
||||
this.Controls.Add(this.checkBox_Wand);
|
||||
this.Controls.Add(this.checkBox_Staff);
|
||||
this.Controls.Add(this.checkBox_Sceptre);
|
||||
this.Controls.Add(this.checkBox_Claw);
|
||||
this.Controls.Add(this.checkBox_Bow);
|
||||
this.Controls.Add(this.checkBox_TwoHandSword);
|
||||
this.Controls.Add(this.checkBox_OneHandSword);
|
||||
this.Controls.Add(this.checkBox_TwoHandMace);
|
||||
this.Controls.Add(this.checkBox_OneHandMace);
|
||||
this.Controls.Add(this.checkBox_TwoHandAxe);
|
||||
this.Controls.Add(this.checkBox_OneHandAxe);
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.Name = "TierForm";
|
||||
this.Text = "Tiers";
|
||||
this.Load += new System.EventHandler(this.TierForm_Load);
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView_BaseInclude)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView_BaseExclude)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox_AddBaseInclude)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox_AddBaseExclude)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.CheckBox checkBox_OneHandAxe;
|
||||
private System.Windows.Forms.CheckBox checkBox_TwoHandAxe;
|
||||
private System.Windows.Forms.CheckBox checkBox_OneHandMace;
|
||||
private System.Windows.Forms.CheckBox checkBox_TwoHandMace;
|
||||
private System.Windows.Forms.CheckBox checkBox_OneHandSword;
|
||||
private System.Windows.Forms.CheckBox checkBox_TwoHandSword;
|
||||
private System.Windows.Forms.CheckBox checkBox_Bow;
|
||||
private System.Windows.Forms.CheckBox checkBox_Claw;
|
||||
private System.Windows.Forms.CheckBox checkBox_Sceptre;
|
||||
private System.Windows.Forms.CheckBox checkBox_Staff;
|
||||
private System.Windows.Forms.CheckBox checkBox_Wand;
|
||||
private System.Windows.Forms.CheckBox checkBox_Shield;
|
||||
private System.Windows.Forms.CheckBox checkBox_Quiver;
|
||||
private System.Windows.Forms.CheckBox checkBox_BodyArmour;
|
||||
private System.Windows.Forms.CheckBox checkBox_Boots;
|
||||
private System.Windows.Forms.CheckBox checkBox_Gloves;
|
||||
private System.Windows.Forms.CheckBox checkBox_Helmet;
|
||||
private System.Windows.Forms.CheckBox checkBox_Dagger;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.Label label5;
|
||||
private System.Windows.Forms.Label label6;
|
||||
private System.Windows.Forms.DataGridView dataGridView_BaseInclude;
|
||||
private System.Windows.Forms.DataGridView dataGridView_BaseExclude;
|
||||
private System.Windows.Forms.Label label7;
|
||||
private System.Windows.Forms.Label label8;
|
||||
private System.Windows.Forms.Button button_Close;
|
||||
private System.Windows.Forms.Button button_Save;
|
||||
private System.Windows.Forms.PictureBox pictureBox_AddBaseInclude;
|
||||
private System.Windows.Forms.PictureBox pictureBox_AddBaseExclude;
|
||||
private System.Windows.Forms.DataGridViewImageColumn colincimg;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colincname;
|
||||
private System.Windows.Forms.DataGridViewImageColumn colexcimg;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colexcname;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,132 @@
|
|||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Filsonator
|
||||
{
|
||||
public partial class TierForm : Form
|
||||
{
|
||||
public static Image imgDel = Image.FromFile(@"img\delete.png");
|
||||
|
||||
public TierForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void TierForm_Load(object sender, EventArgs e)
|
||||
{
|
||||
StructureForm.Settings j = JsonConvert.DeserializeObject<StructureForm.Settings>(File.ReadAllText("settings.json"));
|
||||
checkBox_OneHandAxe.Checked = j.tier1HAxe;
|
||||
checkBox_TwoHandAxe.Checked = j.tier2HAxe;
|
||||
checkBox_OneHandMace.Checked = j.tier1HMace;
|
||||
checkBox_TwoHandMace.Checked = j.tier2HMace;
|
||||
checkBox_OneHandSword.Checked = j.tier1HSword;
|
||||
checkBox_TwoHandSword.Checked = j.tier2HSword;
|
||||
checkBox_Bow.Checked = j.tierBow;
|
||||
checkBox_Claw.Checked = j.tierClaw;
|
||||
checkBox_Dagger.Checked = j.tierDagger;
|
||||
checkBox_Sceptre.Checked = j.tierSceptre;
|
||||
checkBox_Staff.Checked = j.tierStaff;
|
||||
checkBox_Wand.Checked = j.tierWand;
|
||||
checkBox_Quiver.Checked = j.tierQuiver;
|
||||
checkBox_Shield.Checked = j.tierShield;
|
||||
checkBox_BodyArmour.Checked = j.tierBody;
|
||||
checkBox_Boots.Checked = j.tierBoots;
|
||||
checkBox_Gloves.Checked = j.tierGloves;
|
||||
checkBox_Helmet.Checked = j.tierHelmet;
|
||||
|
||||
foreach (var inc in j.tierBaseInclude)
|
||||
{
|
||||
dataGridView_BaseInclude.Rows.Add(imgDel, inc);
|
||||
}
|
||||
|
||||
foreach (var exc in j.tierBaseExclude)
|
||||
{
|
||||
dataGridView_BaseExclude.Rows.Add(imgDel, exc);
|
||||
}
|
||||
}
|
||||
|
||||
private void button_Close_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void button_Save_Click(object sender, EventArgs e)
|
||||
{
|
||||
string json = File.ReadAllText($@"settings.json");
|
||||
dynamic jo = JsonConvert.DeserializeObject(json);
|
||||
|
||||
JArray tierBaseInclude = new JArray();
|
||||
foreach (DataGridViewRow row in dataGridView_BaseInclude.Rows)
|
||||
{
|
||||
tierBaseInclude.Add(row.Cells[1].Value);
|
||||
}
|
||||
JArray tierBaseExclude = new JArray();
|
||||
foreach (DataGridViewRow row in dataGridView_BaseExclude.Rows)
|
||||
{
|
||||
tierBaseExclude.Add(row.Cells[1].Value);
|
||||
}
|
||||
|
||||
jo["tier1HAxe"] = checkBox_OneHandAxe.Checked;
|
||||
jo["tier2HAxe"] = checkBox_TwoHandAxe.Checked;
|
||||
jo["tierBow"] = checkBox_Bow.Checked;
|
||||
jo["tierClaw"] = checkBox_Claw.Checked;
|
||||
jo["tierDagger"] = checkBox_Dagger.Checked;
|
||||
jo["tier1HMace"] = checkBox_OneHandMace.Checked;
|
||||
jo["tier2HMace"] = checkBox_TwoHandMace.Checked;
|
||||
jo["tierSceptre"] = checkBox_Sceptre.Checked;
|
||||
jo["tierStaff"] = checkBox_Staff.Checked;
|
||||
jo["tier1HSword"] = checkBox_OneHandSword.Checked;
|
||||
jo["tier2HSword"] = checkBox_TwoHandSword.Checked;
|
||||
jo["tierWand"] = checkBox_Wand.Checked;
|
||||
jo["tierBody"] = checkBox_BodyArmour.Checked;
|
||||
jo["tierBoots"] = checkBox_Boots.Checked;
|
||||
jo["tierGloves"] = checkBox_Gloves.Checked;
|
||||
jo["tierHelmet"] = checkBox_Helmet.Checked;
|
||||
jo["tierShield"] = checkBox_Shield.Checked;
|
||||
jo["tierQuiver"] = checkBox_Quiver.Checked;
|
||||
|
||||
jo["tierBaseInclude"] = tierBaseInclude;
|
||||
jo["tierBaseExclude"] = tierBaseExclude;
|
||||
string output = JsonConvert.SerializeObject(jo, Formatting.Indented);
|
||||
File.WriteAllText($@"settings.json", output);
|
||||
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void dataGrid_BaseInclude_CellClick(object sender, DataGridViewCellEventArgs e)
|
||||
{
|
||||
if (dataGridView_BaseInclude.CurrentCell.ColumnIndex.Equals(0))
|
||||
{
|
||||
dataGridView_BaseInclude.Rows.RemoveAt(dataGridView_BaseInclude.CurrentRow.Index);
|
||||
}
|
||||
}
|
||||
|
||||
private void dataGrid_BaseExclude_CellClick(object sender, DataGridViewCellEventArgs e)
|
||||
{
|
||||
if (dataGridView_BaseExclude.CurrentCell.ColumnIndex.Equals(0))
|
||||
{
|
||||
dataGridView_BaseExclude.Rows.RemoveAt(dataGridView_BaseExclude.CurrentRow.Index);
|
||||
}
|
||||
}
|
||||
|
||||
private void pictureBox_AddBaseInclude_Click(object sender, EventArgs e)
|
||||
{
|
||||
dataGridView_BaseInclude.Rows.Add(imgDel, "");
|
||||
}
|
||||
|
||||
private void pictureBox_AddBaseExclude_Click(object sender, EventArgs e)
|
||||
{
|
||||
dataGridView_BaseExclude.Rows.Add(imgDel, "");
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -96,5 +96,90 @@ namespace Filsonator.Utilities
|
|||
//imageFile.Save(@"data\groundtilelol.png", ImageFormat.Bmp);
|
||||
return imageFile;
|
||||
}
|
||||
|
||||
public static Image DrawStructure(Color cfont, Color cbackground, Color cborder, int fontsize, string text)
|
||||
{
|
||||
int H = 0;
|
||||
int W = 0;
|
||||
int X = 0;
|
||||
int Y = 0;
|
||||
int fS = fontsize;
|
||||
switch (fontsize)
|
||||
{
|
||||
case 45:
|
||||
W = 210;
|
||||
H = 30;
|
||||
X = 5;
|
||||
Y = 5;
|
||||
fS = fontsize / 2;
|
||||
break;
|
||||
case 40:
|
||||
W = 190;
|
||||
H = 28;
|
||||
X = 5;
|
||||
Y = 7;
|
||||
fS = fontsize / 3;
|
||||
break;
|
||||
case 38:
|
||||
W = 160;
|
||||
H = 25;
|
||||
X = 5;
|
||||
Y = 10;
|
||||
fS = fontsize / 3;
|
||||
break;
|
||||
case 35:
|
||||
W = 150;
|
||||
H = 25;
|
||||
X = 5;
|
||||
Y = 10;
|
||||
fS = fontsize / 3;
|
||||
break;
|
||||
case 33:
|
||||
W = 140;
|
||||
H = 23;
|
||||
X = 5;
|
||||
Y = 11;
|
||||
fS = fontsize / 3;
|
||||
break;
|
||||
case 30:
|
||||
W = 130;
|
||||
H = 20;
|
||||
X = 5;
|
||||
Y = 10;
|
||||
fS = fontsize / 3;
|
||||
break;
|
||||
case 25:
|
||||
W = 120;
|
||||
H = 18;
|
||||
X = 5;
|
||||
Y = 10;
|
||||
fS = fontsize / 3;
|
||||
break;
|
||||
}
|
||||
var fontFamily = new FontFamily("Verdana");
|
||||
var vfont = new Font(fontFamily, 12, FontStyle.Regular, GraphicsUnit.Pixel);
|
||||
Image imageFile = Image.FromFile(@"img\groundtile.png");
|
||||
Graphics newGraphics = Graphics.FromImage(imageFile);
|
||||
// Create pen.
|
||||
Pen border = new Pen(cborder, 2);
|
||||
SolidBrush back = new SolidBrush(cbackground);
|
||||
SolidBrush font = new SolidBrush(cfont);
|
||||
|
||||
int imgH = imageFile.Height;
|
||||
int imgW = imageFile.Width;
|
||||
// Create rectangle.
|
||||
Rectangle rect = new Rectangle(X, Y, W, H);
|
||||
|
||||
// Draw rectangle to screen.
|
||||
newGraphics.DrawRectangle(border, rect);
|
||||
newGraphics.FillRectangle(back, rect);
|
||||
StringFormat stringFormat = new StringFormat();
|
||||
stringFormat.Alignment = StringAlignment.Center;
|
||||
stringFormat.LineAlignment = StringAlignment.Center;
|
||||
newGraphics.DrawString(text, vfont, font, rect, stringFormat);
|
||||
|
||||
//imageFile.Save(@"data\groundtilelol.png", ImageFormat.Bmp);
|
||||
return imageFile;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 4.3 KiB |
Binary file not shown.
Loading…
Reference in New Issue