Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Commit

Permalink
1.1.1 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JKAnderson committed Jan 30, 2019
1 parent 234afab commit d31dbdd
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 9 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ As far as we know, *any* edits to the regulation file (where params are stored)
Only use modified params in offline mode. Back up your save file and restore it before going online again if you're doing anything that could affect it.

# Changelog
### 1.1.1
* Fix name in create row dialog not doing anything
* Fix duplicated rows being unsaveable sometimes

### 1.1
* Ctrl+Shift+N: Duplicate selected row
* Ctrl+F: Search for row by name
Expand Down
13 changes: 8 additions & 5 deletions Yapped/FormMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -503,19 +503,21 @@ private void addRowToolStripMenuItem_Click(object sender, EventArgs e)

private void duplicateRowToolStripMenuItem_Click(object sender, EventArgs e)
{
if (dgvCells.DataSource == null)
if (dgvRows.SelectedCells.Count == 0)
{
ShowError("You can't duplicate a row without one loaded!");
ShowError("You can't duplicate a row without one selected!");
return;
}

var oldRow = (PARAM64.Cell[])dgvCells.DataSource;
int index = dgvRows.SelectedCells[0].RowIndex;
ParamWrapper wrapper = (ParamWrapper)rowSource.DataSource;
PARAM64.Row oldRow = wrapper.Rows[index];
PARAM64.Row newRow;
if ((newRow = CreateRow("Duplicate a row...")) != null)
{
for (int i = 0; i < oldRow.Length; i++)
for (int i = 0; i < oldRow.Cells.Count; i++)
{
newRow.Cells[i].Value = oldRow[i].Value;
newRow.Cells[i].Value = oldRow.Cells[i].Value;
}
}
}
Expand Down Expand Up @@ -550,6 +552,7 @@ private PARAM64.Row CreateRow(string prompt)
dgvRows.FirstDisplayedScrollingRowIndex = Math.Max(0, index - displayedRows / 2);
dgvRows.ClearSelection();
dgvRows.Rows[index].Selected = true;
dgvRows.Refresh();
}
}
return result;
Expand Down
2 changes: 1 addition & 1 deletion Yapped/FormNewRow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public FormNewRow(string prompt)
private void btnCreate_Click(object sender, EventArgs e)
{
ResultID = (long)nudID.Value;
Name = txtName.Text.Length > 0 ? txtName.Text : null;
ResultName = txtName.Text.Length > 0 ? txtName.Text : null;
DialogResult = DialogResult.OK;
Close();
}
Expand Down
4 changes: 2 additions & 2 deletions Yapped/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,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.1.0.0")]
[assembly: AssemblyFileVersion("1.1")]
[assembly: AssemblyVersion("1.1.1.0")]
[assembly: AssemblyFileVersion("1.1.1")]
6 changes: 5 additions & 1 deletion dist/readme.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

--| Yapped 1.1
--| Yapped 1.1.1
--| https://www.nexusmods.com/darksouls3/mods/298
--| https://github.com/JKAnderson/Yapped

Expand Down Expand Up @@ -42,6 +42,10 @@ Because the regulation is only loaded once when the game boots, changes will onl

--| Changelog

1.1.1
Fix name in create row dialog not doing anything
Fix duplicated rows being unsaveable sometimes

1.1
Ctrl+Shift+N: Duplicate selected row
Ctrl+F: Search for row by name
Expand Down

0 comments on commit d31dbdd

Please sign in to comment.