@@ -25,6 +25,7 @@ cOFED::cOFED(QWidget *parent) : QMainWindow(parent) {
2525 mToolboxTiles = 0 ;
2626 mToolboxSprites = 0 ;
2727 mMapSub = 0 ;
28+ mMapView = 0 ;
2829
2930 delete ui.mSurface ;
3031 g_Window = std::make_shared<cWindowQT> (ui.centralWidget );
@@ -64,6 +65,8 @@ cOFED::cOFED(QWidget *parent) : QMainWindow(parent) {
6465 QObject::connect (ui.actionNew_Mission , &QAction::triggered, this , &cOFED::Mission_AddNew);
6566 QObject::connect (ui.actionNew_Phase , &QAction::triggered, this , &cOFED::Phase_AddNew);
6667
68+ QObject::connect (ui.actionMap_Overview , &QAction::triggered, this , &cOFED::ShowDialog_MapOverview);
69+
6770 g_Debugger = std::make_shared<cDebugger>();
6871 g_Fodder = std::make_shared<cFodder>(g_Window);
6972
@@ -876,6 +879,11 @@ void cOFED::AddCliff() {
876879 setCursorTiles (Tiles);
877880}
878881
882+ void cOFED::ShowDialog_MapOverview () {
883+ mMapView = new cMapView (this );
884+ mMapView ->show ();
885+ }
886+
879887void cOFED::ShowDialog_NewCampaign () {
880888
881889 QString fileName = QFileDialog::getSaveFileName (this ,
@@ -1023,6 +1031,9 @@ void cOFED::Create_NewMap(const std::string& pTileSet, const std::string& pTileS
10231031 // Update the Toolboxes
10241032 mToolboxSprites ->RenderSprites ();
10251033 mToolboxTiles ->RenderTiles ();
1034+
1035+ if (mMapView )
1036+ mMapView ->RenderTiles ();
10261037 return ;
10271038 }
10281039 }
@@ -1089,6 +1100,8 @@ void cOFED::LoadMap() {
10891100 g_Fodder->Mission_Sprites_Handle ();
10901101 g_Fodder->mWindow ->FrameEnd ();
10911102
1103+ if (mMapView )
1104+ mMapView ->RenderTiles ();
10921105}
10931106
10941107/* *
0 commit comments