Allow people to see my clever seed names if I set to something other than random seed hash.
--- a/QTfrontend/gamecfgwidget.cpp Sun Dec 26 23:38:02 2010 -0500
+++ b/QTfrontend/gamecfgwidget.cpp Mon Dec 27 12:43:29 2010 -0500
@@ -332,6 +332,9 @@
}
if (param == "SEED") {
pMapContainer->setSeed(value);
+ if (!QRegExp("\\{[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\\}").exactMatch(value)) {
+ pMapContainer->seedEdit->setVisible(true);
+ }
return;
}
if (param == "THEME") {
--- a/QTfrontend/mapContainer.h Sun Dec 26 23:38:02 2010 -0500
+++ b/QTfrontend/mapContainer.h Mon Dec 27 12:43:29 2010 -0500
@@ -56,6 +56,7 @@
QByteArray getDrawnMapData();
DrawMapScene * getDrawMapScene();
void mapDrawingFinished();
+ QLineEdit* seedEdit;
public slots:
void askForGeneratedPreview();
@@ -102,7 +103,6 @@
QListWidget* lwThemes;
HWMap* pMap;
QString m_seed;
- QLineEdit* seedEdit;
QPushButton* seedSet;
QLabel* seedLabel;
int hhLimit;