Skip to content

Commit d1eea0f

Browse files
committed
Bug fixes and updates
1 parent dbbd4ab commit d1eea0f

9 files changed

Lines changed: 5467 additions & 14 deletions

File tree

AdvancedDataGridView/DataCache.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ public void Init(bool force = false)
4747
if ((row?.ItemArray.Length ?? 0) == 0)
4848
return;
4949

50+
if (row.RowState == DataRowState.Deleted || row.RowState == DataRowState.Detached)
51+
return;
52+
53+
if (row[PrimaryKey.ColumnName] == DBNull.Value)
54+
return;
55+
5056
int key = (int)row[PrimaryKey.ColumnName];
5157
var data = row.ItemArray;
5258
Cache.TryAdd(key, SerializeObject(data)); //Store the JSON variant
@@ -142,6 +148,9 @@ private void UpdateColumnDataCount(int key, string[] data)
142148
#region Search
143149
public Point Search(string text, bool exact, StringComparison comparison = StringComparison.CurrentCultureIgnoreCase, bool includestart = false)
144150
{
151+
if (this.CurrentCell == null)
152+
this.SetSelectedCellCore(0, 0, true);
153+
145154
var startcell = this.CurrentCell; //Our original
146155
var startindex = startcell.RowIndex;
147156
var startcolumn = startcell.ColumnIndex;

WDBXEditor/Common/Constants.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace WDBXEditor.Common
1111
{
1212
public static class Constants
1313
{
14-
public const string VERSION = "1.0.5";
14+
public const string VERSION = "1.0.6";
1515
public const string AUTO_GENERATED = "AutoGenerated";
1616
public const string PADDING = "Padding";
1717
public const StringComparison IGNORECASE = StringComparison.CurrentCultureIgnoreCase;
@@ -282,6 +282,7 @@ public static string BuildText(int build)
282282
{22578,"Legion 7.1.0"},
283283
{23360,"Legion 7.1.5"},
284284
{23835,"Legion 7.2.0"},
285+
{24492,"Legion 7.3.0"},
285286
};
286287
#endregion
287288

WDBXEditor/Definitions/Legion 7.2.0 (23835).xml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,10 @@
304304
<Field Name="FromArtifactPowerID" Type="ushort" />
305305
<Field Name="ToArtifactPowerID" Type="ushort" />
306306
</Table>
307+
<Table Name="ArtifactPowerPicker" Build="23835">
308+
<Field Name="m_ID" Type="int" IsIndex="true" />
309+
<Field Name="field00" Type="int" />
310+
</Table>
307311
<Table Name="ArtifactPowerRank" Build="23835">
308312
<Field Name="m_ID" Type="int" IsIndex="true" />
309313
<Field Name="SpellID" Type="uint" />
@@ -316,6 +320,14 @@
316320
<Field Name="m_ID" Type="int" IsIndex="true" />
317321
<Field Name="Exp" Type="uint" ArraySize="10" />
318322
</Table>
323+
<Table Name="ArtifactTier" Build="23835">
324+
<Field Name="m_ID" Type="int" IsIndex="true" />
325+
<Field Name="field00" Type="int" />
326+
<Field Name="field04" Type="int" />
327+
<Field Name="field08" Type="int" />
328+
<Field Name="field0C" Type="int" />
329+
<Field Name="field10" Type="int" />
330+
</Table>
319331
<Table Name="ArtifactUnlock" Build="23835">
320332
<Field Name="m_ID" Type="int" IsIndex="true" />
321333
<Field Name="field4" Type="ushort" />
@@ -2860,6 +2872,12 @@
28602872
<Field Name="MaxPlayers" Type="byte" />
28612873
<Field Name="TimeOffset" Type="byte" />
28622874
</Table>
2875+
<Table Name="MapCelestialBody" Build="23835">
2876+
<Field Name="m_ID" Type="int" IsIndex="true" />
2877+
<Field Name="field00" Type="ushort" />
2878+
<Field Name="field02" Type="ushort" />
2879+
<Field Name="field04" Type="int" />
2880+
</Table>
28632881
<Table Name="MapChallengeMode" Build="23835">
28642882
<Field Name="m_ID" Type="int" IsIndex="true" />
28652883
<Field Name="field04" Type="string" />
@@ -3692,6 +3710,15 @@
36923710
<Field Name="field0" Type="string" />
36933711
<Field Name="m_ID" Type="int" ArraySize="4" IsIndex="true" />
36943712
</Table>
3713+
<Table Name="SoundBusOverride" Build="23835">
3714+
<Field Name="m_ID" Type="int" IsIndex="true" />
3715+
<Field Name="field04" Type="float" />
3716+
<Field Name="field08" Type="byte" />
3717+
<Field Name="field09" Type="byte" />
3718+
<Field Name="field0A" Type="byte" />
3719+
<Field Name="field0B" Type="int" />
3720+
<Field Name="field0F" Type="int" />
3721+
</Table>
36953722
<Table Name="SoundEmitterPillPoints" Build="23835">
36963723
<Field Name="m_ID" Type="int" IsIndex="true" />
36973724
<Field Name="field04" Type="int" ArraySize="3" />
@@ -4481,6 +4508,12 @@
44814508
<Field Name="DifficultyID" Type="byte" />
44824509
<Field Name="Priority" Type="byte" />
44834510
</Table>
4511+
<Table Name="StartupFiles" Build="23835">
4512+
<Field Name="m_ID" Type="int" IsIndex="true" />
4513+
<Field Name="field00" Type="int" />
4514+
<Field Name="field04" Type="int" />
4515+
<Field Name="field08" Type="int" />
4516+
</Table>
44844517
<Table Name="Startup_Strings" Build="23835">
44854518
<Field Name="m_ID" Type="int" IsIndex="true" />
44864519
<Field Name="field4" Type="string" />

0 commit comments

Comments
 (0)