This repository has been archived by the owner on Mar 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
668 additions
and
303 deletions.
There are no files selected for viewing
Submodule FA2pp
updated
9 files
+4 −4 | CCreateMap3A.h | |
+42 −8 | CFA2Logger.h | |
+2 −0 | CLoading.h | |
+2 −0 | CMapData.h | |
+1 −2 | CMinimap.h | |
+1 −0 | CMixFile.h | |
+2 −2 | CMyViewFrame.h | |
+4 −2 | CTileSetBrowserView.h | |
+3 −1 | CTileTypeClass.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#include <Helpers/Macro.h> | ||
#include <CCreateMap3A.h> | ||
#include <CLoading.h> | ||
|
||
#include "../../FA2sp.h" | ||
#include "../../Helpers/Translations.h" | ||
|
||
DEFINE_HOOK(4D2E80, CCreateMap3A_OnInitDialog, 5) | ||
{ | ||
GET(CCreateMap3A*, pThis, ECX); | ||
|
||
pThis->FA2CDialog::OnInitDialog(); | ||
auto pCBTheater = (ppmfc::CComboBox*)pThis->GetDlgItem(1046); | ||
pCBTheater->AddString(Translations::GetTranslationItem("TheaterNameTem", FA2sp::Buffer) ? FA2sp::Buffer : "TEMPERATE"); | ||
pCBTheater->AddString(Translations::GetTranslationItem("TheaterNameSno", FA2sp::Buffer) ? FA2sp::Buffer : "SNOW"); | ||
pCBTheater->AddString(Translations::GetTranslationItem("TheaterNameUrb", FA2sp::Buffer) ? FA2sp::Buffer : "URBAN"); | ||
if (CLoading::HasMdFile) | ||
{ | ||
pCBTheater->AddString(Translations::GetTranslationItem("TheaterNameUbn", FA2sp::Buffer) ? FA2sp::Buffer : "NEWURBAN"); | ||
pCBTheater->AddString(Translations::GetTranslationItem("TheaterNameLun", FA2sp::Buffer) ? FA2sp::Buffer : "LUNAR"); | ||
pCBTheater->AddString(Translations::GetTranslationItem("TheaterNameDes", FA2sp::Buffer) ? FA2sp::Buffer : "DESERT"); | ||
} | ||
pThis->TheaterIndex = 0; | ||
pThis->DefaultHeight = 0; | ||
pThis->MapWidth = pThis->MapHeight = 80; | ||
|
||
pThis->FA2CDialog::UpdateData(false); | ||
|
||
R->AL(true); | ||
|
||
return 0x4D2F3D; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#include <Helpers/Macro.h> | ||
|
||
#include "../../FA2sp.h" | ||
#include "../../Helpers/Translations.h" | ||
|
||
DEFINE_HOOK(499659, CMapD_UpdateDialog_TheaterName, 6) | ||
{ | ||
GET(ppmfc::CComboBox*, pCBTheater, ECX); | ||
GET(const char*, lpTheaterName, EDI); | ||
|
||
if (strcmp(lpTheaterName, "TEMPERATE") == 0) | ||
pCBTheater->SetWindowText((Translations::GetTranslationItem("TheaterNameTem", FA2sp::Buffer) ? FA2sp::Buffer : "TEMPERATE")); | ||
else if (strcmp(lpTheaterName, "SNOW") == 0) | ||
pCBTheater->SetWindowText(Translations::GetTranslationItem("TheaterNameSno", FA2sp::Buffer) ? FA2sp::Buffer : "SNOW"); | ||
else if (strcmp(lpTheaterName, "URBAN") == 0) | ||
pCBTheater->SetWindowText(Translations::GetTranslationItem("TheaterNameUrb", FA2sp::Buffer) ? FA2sp::Buffer : "URBAN"); | ||
else if (strcmp(lpTheaterName, "NEWURBAN") == 0) | ||
pCBTheater->SetWindowText(Translations::GetTranslationItem("TheaterNameUbn", FA2sp::Buffer) ? FA2sp::Buffer : "NEWURBAN"); | ||
else if (strcmp(lpTheaterName, "LUNAR") == 0) | ||
pCBTheater->SetWindowText(Translations::GetTranslationItem("TheaterNameLun", FA2sp::Buffer) ? FA2sp::Buffer : "LUNAR"); | ||
else if (strcmp(lpTheaterName, "DESERT") == 0) | ||
pCBTheater->SetWindowText(Translations::GetTranslationItem("TheaterNameDes", FA2sp::Buffer) ? FA2sp::Buffer : "DESERT"); | ||
else | ||
pCBTheater->SetWindowText(lpTheaterName); | ||
|
||
return 0x49965F; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.