Skip to content

Commit

Permalink
Refactoring.
Browse files Browse the repository at this point in the history
* Improved Shop Editor's performance.
* Fixed a typo in Shop List.
* Fixed cell alignment bug in Object Editor and Shop Editor.
* Changed: Prevent some item slot in Shop Editor from being edited
(because they are determined in the game's data).
  • Loading branch information
RainThunder committed Mar 11, 2016
1 parent 208666a commit 569d343
Show file tree
Hide file tree
Showing 9 changed files with 307 additions and 197 deletions.
6 changes: 3 additions & 3 deletions SOSSE/BalanceForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion SOSSE/GeneralEditingForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions SOSSE/ItemEditingForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -497,9 +497,15 @@ private void dataGridView_CellFormatting(ContainerID containerID, DataGridViewCe
case 3:
if ((items[e.RowIndex].Index == 0xFFFF) ||
(Item.BaseQuality[items[e.RowIndex].Index] == -1))
{
e.CellStyle.BackColor = Color.LightGray;
dataGridView.Rows[e.RowIndex].Cells[e.ColumnIndex].ReadOnly = true;
}
else
{
e.CellStyle.BackColor = dataGridView.DefaultCellStyle.BackColor;
dataGridView.Rows[e.RowIndex].Cells[e.ColumnIndex].ReadOnly = false;
}
break;
}
}
Expand Down
2 changes: 1 addition & 1 deletion SOSSE/ObjectEditingForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ private void objectDataGridView_CellValueChanged(object sender, DataGridViewCell
objectDataGridView.Rows[e.RowIndex].Cells[1].Value = 1;
objectDataGridView.Rows[e.RowIndex].Cells[1].ReadOnly = false;
objectDataGridView.Rows[e.RowIndex].Cells[1].Style =
objectDataGridView.DefaultCellStyle;
objectQuantityColumn.DefaultCellStyle;
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion SOSSE/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.3")]
[assembly: AssemblyVersion("1.4")]
[assembly: AssemblyFileVersion("1.0.0.0")]
2 changes: 1 addition & 1 deletion SOSSE/Resources/ShopName.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
General Store
Carpenter Shop
Anique Shop
Antique Shop
Silk Country
Cabin Country
Sakura Country
Expand Down
234 changes: 119 additions & 115 deletions SOSSE/ShopEditingForm.Designer.cs

Large diffs are not rendered by default.

Loading

0 comments on commit 569d343

Please sign in to comment.