Skip to content

Commit 7fd5438

Browse files
committed
兼容旧版本
1 parent 0b831b0 commit 7fd5438

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

Assets/Script/Core/Editor/Data/DataEditorWindow.cs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ private void DrawGridItem(Vector2 startPos,int heightStartIndex,int heightEndInd
552552
{
553553

554554

555-
modifiIndex = new Vector2Int(i - 2, j);
555+
modifiIndex = new TableIndex(i - 2, j);
556556
if (i == 0)
557557
{
558558
TableConfigFieldInfo f = new TableConfigFieldInfo();
@@ -973,7 +973,7 @@ private object DrawTextureGUI(string text, object value)
973973

974974
return value;
975975
}
976-
private Vector2Int modifiIndex = new Vector2Int();
976+
private TableIndex modifiIndex = new TableIndex();
977977

978978

979979
/// <summary>
@@ -1592,4 +1592,16 @@ public class TableConfigFieldInfo
15921592

15931593
}
15941594

1595+
public struct TableIndex
1596+
{
1597+
public TableIndex(int x ,int y)
1598+
{
1599+
this.x = x;
1600+
this.y = y;
1601+
}
1602+
1603+
public int x;
1604+
public int y;
1605+
}
1606+
15951607

0 commit comments

Comments
 (0)