diff --git a/hdnesPackEditor/gameObjNode.cpp b/hdnesPackEditor/gameObjNode.cpp
index 343f5cd..a72e70f 100644
--- a/hdnesPackEditor/gameObjNode.cpp
+++ b/hdnesPackEditor/gameObjNode.cpp
@@ -1,3 +1,4 @@
+#include "coreData.h"
#include "gameObjNode.h"
#include "gameTile.h"
#include "paletteSwap.h"
@@ -302,7 +303,7 @@ string gameObjNode::writeConditionNames(){
string gameObjNode::writeLine(){
stringstream stream;
- stream << fileName << "," << brightness << "," << hScrollRate << "," << vScrollRate << "," << (showBehindBgSprites ? "Y" : "N") ;
+ stream << fileName << "," << brightness << "," << hScrollRate << "," << vScrollRate << "," << (coreData::cData->verNo >= 106 ? (showBehindBgSprites ? "0" : "10") : (showBehindBgSprites ? "Y" : "N")) ;
return stream.str();
}
diff --git a/hdnesPackEditor/hdnesPackEditor.cbp b/hdnesPackEditor/hdnesPackEditor.cbp
index 4ba6344..3c8a83d 100644
--- a/hdnesPackEditor/hdnesPackEditor.cbp
+++ b/hdnesPackEditor/hdnesPackEditor.cbp
@@ -78,6 +78,8 @@
+
+
@@ -86,6 +88,9 @@
+
+
+
diff --git a/hdnesPackEditor/hdnesPackEditor.depend b/hdnesPackEditor/hdnesPackEditor.depend
index a4447b1..59ac49c 100644
--- a/hdnesPackEditor/hdnesPackEditor.depend
+++ b/hdnesPackEditor/hdnesPackEditor.depend
@@ -7245,14 +7245,15 @@
1561782682 d:\work\hdnes\trunk\hdnespackeditor\image.h
"common.h"
-1585990029 d:\work\hdnes\trunk\hdnespackeditor\hdnespackeditormainform.h
+1605864412 d:\work\hdnes\trunk\hdnespackeditor\hdnespackeditormainform.h
"common.h"
"mainForm.h"
"colourDialogClient.h"
+ "paletteDialogClient.h"
"gameObjNode.h"
"classList.h"
-1585989500 d:\work\hdnes\trunk\hdnespackeditor\mainform.h
+1605854357 d:\work\hdnes\trunk\hdnespackeditor\mainform.h
@@ -7518,7 +7519,8 @@
1561782682 d:\work\hdnes\trunk\hdnespackeditor\hdnespackeditornewprojectdialog.h
"mainForm.h"
-1605196382 source:d:\work\hdnes\trunk\hdnespackeditor\gameobjnode.cpp
+1605370594 source:d:\work\hdnes\trunk\hdnespackeditor\gameobjnode.cpp
+ "coreData.h"
"gameObjNode.h"
"gameTile.h"
"paletteSwap.h"
@@ -7572,11 +7574,12 @@
"wx/gdicmn.h"
"wx/dialog.h"
-1605196382 source:d:\work\hdnes\trunk\hdnespackeditor\hdnespackeditormainform.cpp
+1605888118 source:d:\work\hdnes\trunk\hdnespackeditor\hdnespackeditormainform.cpp
"hdnesPackEditormainForm.h"
"hdnesPackEditornewProjectDialog.h"
"hdnesPackEditorcolourSelectDialog.h"
"hdnesPackEditorreplacementDialog.h"
+ "hdnesPackEditorpaletteDialog.h"
"coreData.h"
"main.h"
"common.h"
@@ -7661,7 +7664,7 @@
"hdnesPackEditormainForm.h"
"main.h"
-1585989500 source:d:\work\hdnes\trunk\hdnespackeditor\mainform.cpp
+1605855896 source:d:\work\hdnes\trunk\hdnespackeditor\mainform.cpp
"mainForm.h"
1604761296 source:d:\work\hdnes\trunk\hdnespackeditor\paletteswap.cpp
@@ -7673,3 +7676,17 @@
"coreData.h"
"main.h"
+1605863515 d:\work\hdnes\trunk\hdnespackeditor\hdnespackeditorpalettedialog.h
+ "common.h"
+ "mainForm.h"
+ "colourDialogClient.h"
+ "paletteDialogClient.h"
+ "hdnesPackEditorcolourSelectDialog.h"
+
+1605863618 source:d:\work\hdnes\trunk\hdnespackeditor\hdnespackeditorpalettedialog.cpp
+ "hdnesPackEditorpaletteDialog.h"
+ "coreData.h"
+ "main.h"
+
+1605862953 d:\work\hdnes\trunk\hdnespackeditor\palettedialogclient.h
+
diff --git a/hdnesPackEditor/hdnesPackEditor.fbp b/hdnesPackEditor/hdnesPackEditor.fbp
index 6a49f41..d611f22 100644
--- a/hdnesPackEditor/hdnesPackEditor.fbp
+++ b/hdnesPackEditor/hdnesPackEditor.fbp
@@ -10652,7 +10652,7 @@
-