Improved "Create new map" dialog for map editor (#5187)

* Improve  "Create new map" dialog

* Tweaks

* Tweaks

* Final tweaking

Optimized UI to look more consistent. Removed help button.

* Add files via upload

* Reworked dialog

* Formatting fix

* Add files via upload

* Add files via upload

* Add files via upload

* Fix seed condition

* Remove help button

* Remove help button

* Fixed labels

* Fix for Humans vs Computers combo

* Removed not needed connections + better radio names

* Update mapeditor/windownewmap.cpp

Co-authored-by: Andrey Filipenkov <kambaladecapitator@gmail.com>

* Improve map size selection grabbing

* Remove QRegularExpression

* Reformat mapSizes

---------

Co-authored-by: Andrey Filipenkov <kambaladecapitator@gmail.com>
This commit is contained in:
George King
2025-01-06 14:39:14 +02:00
committed by GitHub
co-authored by Andrey Filipenkov
parent c3952b31f1
commit 6c72aa4cbe
8 changed files with 616 additions and 435 deletions
+3 -1
View File
@@ -25,7 +25,9 @@ MapSettings::MapSettings(MapController & ctrl, QWidget *parent) :
controller(ctrl)
{
ui->setupUi(this);
setWindowFlags(Qt::Dialog | Qt::WindowTitleHint | Qt::WindowCloseButtonHint);
assert(controller.map());
show();
+2
View File
@@ -62,6 +62,8 @@ Translations::Translations(CMapHeader & mh, QWidget *parent) :
setAttribute(Qt::WA_DeleteOnClose, true);
ui->setupUi(this);
setWindowFlags(Qt::Dialog | Qt::WindowTitleHint | Qt::WindowCloseButtonHint);
//fill languages list
std::set<int> indexFoundLang;
int foundLang = -1;