Add download house option

This commit is contained in:
elasota
2021-05-11 00:41:35 -04:00
parent 75923ad7b0
commit ac56badffa
14 changed files with 320 additions and 3 deletions

View File

@@ -6,7 +6,7 @@
//============================================================================
//#include <Balloons.h>
#include "PLDrivers.h"
#include "PLNumberFormatting.h"
#include "PLKeyEncoding.h"
#include "PLHacks.h"
@@ -17,6 +17,7 @@
#include "Externs.h"
#include "Environ.h"
#include "House.h"
#include "IGpSystemServices.h"
#include "MenuManager.h"
#include "ObjectEdit.h"
@@ -143,9 +144,17 @@ void UpdateMenusHouseOpen (void)
}
if (houseUnlocked)
{
EnableMenuItem(exportMenu, iExportGliderPROHouse);
if (PLDrivers::GetSystemServices()->GetOperatingSystem() == GpOperatingSystems::kWeb)
EnableMenuItem(exportMenu, iDownloadHouse);
}
else
{
DisableMenuItem(exportMenu, iExportGliderPROHouse);
if (PLDrivers::GetSystemServices()->GetOperatingSystem() == GpOperatingSystems::kWeb)
DisableMenuItem(exportMenu, iDownloadHouse);
}
}
//-------------------------------------------------------------- UpdateMenusHouseClosed
@@ -486,6 +495,9 @@ void DoExportMenu(short theItem)
case iExportGliderPROHouse:
ExportHouse();
break;
case iDownloadHouse:
DownloadHouse();
break;
};
}