final ports and first fixes
This commit is contained in:
1 parent
77690cbd96
commit
6f3556009a
23 files changed
+2302
-41
No files matched your search
+13
-4
@@ -31,6 +31,7 @@
|
||||
#include "Global.h"
|
||||
#include "Messg.h"
|
||||
#include "NoTerm.h"
|
||||
#include "Start.h"
|
||||
#include "localplayer/LocalPlayer.h"
|
||||
|
||||
#include "Cevo/CevoScreenTools.h"
|
||||
@@ -82,6 +83,12 @@ DirectDlg::DirectDlg(QWidget *parent) : DrawDlg(parent)
|
||||
GameServer::brainRandom->lookupName = QStringLiteral("RANDOMAI");
|
||||
}
|
||||
|
||||
void DirectDlg::setStartDlg(StartDlg *dlg)
|
||||
{
|
||||
m_startDlg = dlg;
|
||||
m_background = dlg ? dlg->background() : nullptr;
|
||||
}
|
||||
|
||||
void DirectDlg::showEvent(QShowEvent *event)
|
||||
{
|
||||
DrawDlg::showEvent(event);
|
||||
@@ -240,10 +247,12 @@ void DirectDlg::dlgNotify(GameServer::NotifyId id, int index)
|
||||
case NotifyId::StartGoRefreshMaps:
|
||||
if (m_quick) {
|
||||
close();
|
||||
} else {
|
||||
// TODO: StartDlg::updateFormerGames()/updateMaps() not ported.
|
||||
if (m_startDlg)
|
||||
m_startDlg->show();
|
||||
} else if (m_startDlg) {
|
||||
if (id == NotifyId::StartGoRefresh)
|
||||
m_startDlg->updateFormerGames();
|
||||
else if (id == NotifyId::StartGoRefreshMaps)
|
||||
m_startDlg->updateMaps(false);
|
||||
m_startDlg->show();
|
||||
}
|
||||
break;
|
||||
case NotifyId::ChangeClient:
|
||||
|
||||
Reference in new issue
Block a user