Allow people to see my clever seed names if I set to something other than random seed hash.
authornemo
Mon, 27 Dec 2010 12:43:29 -0500
changeset 4720 a9f9c96db60c
parent 4719 a078324177a5
child 4721 5e50d8162a96
child 4722 038cd49777a7
Allow people to see my clever seed names if I set to something other than random seed hash.
QTfrontend/gamecfgwidget.cpp
QTfrontend/mapContainer.h
--- 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;