version 3.1 prep

This commit is contained in:
Grinch_ 2022-02-04 11:24:50 +06:00
parent 34c50c0f6e
commit e3d358411e
10 changed files with 57 additions and 53 deletions

View File

@ -66,6 +66,8 @@ You can either open a issue here or directly contact me on discord (Recommended)
3. [MinHook](https://github.com/TsudaKageyu/minhook) 3. [MinHook](https://github.com/TsudaKageyu/minhook)
4. [Plugin SDK](https://github.com/DK22Pac/plugin-sdk) 4. [Plugin SDK](https://github.com/DK22Pac/plugin-sdk)
All credits are given in Menu/About tab.
## Images ## Images
<details> <details>
<summary>Show Images</summary> <summary>Show Images</summary>
@ -92,7 +94,7 @@ You can either open a issue here or directly contact me on discord (Recommended)
## How to add ___ to CheatMenu (SA Only) ## How to add ___ to CheatMenu (SA Only)
*Be careful about editing 'json' files, especially commas! Check [here](https://en.wikipedia.org/wiki/JSON)* *Be careful about editing 'json' files, especially commas! Check [here](https://en.wikipedia.org/wiki/JSON). Use [Magic TXD](https://gtaforums.com/topic/851436-relopensrc-magictxd/) to open **.txd** files*
### Player Skins (Recommended) ### Player Skins (Recommended)
*If you just want more player skins without much hassel use this* *If you just want more player skins without much hassel use this*

View File

@ -226,33 +226,10 @@ void CheatMenu::ShowAnniversaryPage()
Ui::CenterdText("Happy Anniversary!"); Ui::CenterdText("Happy Anniversary!");
ImGui::NewLine(); ImGui::NewLine();
ImGui::TextWrapped("On this day, in 2019, the first public version of menu was released in MixMods Forum." static bool showHistory;
" It's been a blast working on it and I've learned a lot in the process.\n\nThanks to you and everyone who used or"
" contributed to the modification in any form or shape.");
ImGui::NewLine();
ImGui::TextWrapped("Feel free to star the GitHub repo or join the discord server and provide feedback, ideas, or suggestions.");
ImGui::NewLine();
if (ImGui::Button("Discord server", ImVec2(Ui::GetSize(2))))
{
ShellExecute(nullptr, "open", DISCORD_INVITE, nullptr, nullptr, SW_SHOWNORMAL);
}
ImGui::SameLine();
if (ImGui::Button("GitHub repo", ImVec2(Ui::GetSize(2))))
{
ShellExecute(nullptr, "open", GITHUB_LINK, nullptr, nullptr, SW_SHOWNORMAL);
}
ImGui::NewLine();
static bool showHistory = false;
ImGui::Checkbox("Show backstory", &showHistory);
if (showHistory) if (showHistory)
{ {
ImGui::Checkbox("Show backstory", &showHistory);
ImGui::BeginChild("BACKSTORY"); ImGui::BeginChild("BACKSTORY");
ImGui::TextWrapped("I wanted to share the backstory behind the initial idea or plan behind the menu." ImGui::TextWrapped("I wanted to share the backstory behind the initial idea or plan behind the menu."
" This is gonna be long so feel free to skip it if you're not interested."); " This is gonna be long so feel free to skip it if you're not interested.");
@ -265,11 +242,11 @@ void CheatMenu::ShowAnniversaryPage()
ImGui::TextWrapped("In 2018, I finally got an opportunity to learn CLEO or GTA3Script after Junior released" ImGui::TextWrapped("In 2018, I finally got an opportunity to learn CLEO or GTA3Script after Junior released"
" his tutorial. I started from basics but it soon became apparent that due to the limitations of CLEO, creating menus were" " his tutorial. I started from basics but it soon became apparent that due to the limitations of CLEO, creating menus were"
"really tedious."); " really tedious.");
ImGui::NewLine(); ImGui::NewLine();
ImGui::TextWrapped("Later that year I found Moonloader, which had ImGui support. Meaning I could make menus" ImGui::TextWrapped("Later that year I found Moonloader, which had ImGui support. Meaning I could make menus"
" without brainfucking myself (kudos to everyone who writes 100s of lines in CLEO). I recall starting working on" " without brain fucking myself (kudos to everyone who writes 100s of lines in CLEO). I recall starting working on"
" the menu in October/November that same year."); " the menu in October/November that same year.");
ImGui::NewLine(); ImGui::NewLine();
@ -286,6 +263,32 @@ void CheatMenu::ShowAnniversaryPage()
ImGui::EndChild(); ImGui::EndChild();
} }
else
{
ImGui::TextWrapped("On this day, in 2019, the first public version of menu was released in MixMods Forum."
" It's been a blast working on it and I've learned a lot in the process.\n\nThanks to you and everyone who used or"
" contributed to the modification in any form or shape.");
ImGui::NewLine();
ImGui::TextWrapped("Feel free to star the GitHub repo or join the discord server and provide feedback, ideas, or suggestions.");
ImGui::NewLine();
if (ImGui::Button("Discord server", ImVec2(Ui::GetSize(2))))
{
ShellExecute(nullptr, "open", DISCORD_INVITE, nullptr, nullptr, SW_SHOWNORMAL);
}
ImGui::SameLine();
if (ImGui::Button("GitHub repo", ImVec2(Ui::GetSize(2))))
{
ShellExecute(nullptr, "open", GITHUB_LINK, nullptr, nullptr, SW_SHOWNORMAL);
}
ImGui::NewLine();
ImGui::Checkbox("Show backstory", &showHistory);
}
} }
void CheatMenu::ShowWelcomePage() void CheatMenu::ShowWelcomePage()

View File

@ -61,7 +61,6 @@ void MenuThread(void* param)
CheatMenu menu; CheatMenu menu;
// Checking for updates once a day // Checking for updates once a day
SYSTEMTIME st; SYSTEMTIME st;
GetSystemTime(&st); GetSystemTime(&st);
@ -73,8 +72,8 @@ void MenuThread(void* param)
while (true) while (true)
{ {
Sleep(5000);
Updater::Process(); Updater::Process();
Sleep(5000);
} }
} }

View File

@ -1,6 +1,6 @@
#pragma once #pragma once
#define MENU_NAME "Cheat Menu" #define MENU_NAME "Cheat Menu"
#define MENU_VERSION_NUMBER "3.1" #define MENU_VERSION_NUMBER "3.1"
#define MENU_VERSION MENU_VERSION_NUMBER"-beta" #define MENU_VERSION MENU_VERSION_NUMBER
#define BUILD_NUMBER "20220128" #define BUILD_NUMBER "20220204"
#define MENU_TITLE MENU_NAME " v" MENU_VERSION #define MENU_TITLE MENU_NAME " v" MENU_VERSION

View File

@ -7,13 +7,13 @@ call "tools\Setup.bat"
MsBuild CheatMenu.sln /property:Configuration=Debug MsBuild CheatMenu.sln /property:Configuration=Debug
del %SA_DIR%"\CheatMenuSA.asi" /Q del %SA_DIR%"\CheatMenuSA.asi" /Q
del %SA_DIR%"\CheatMenuSA.pdb" /Q del %SA_DIR%"\CheatMenuSA.pdb" /Q
del %SA_DIR%"\CheatMenuVC.asi" /Q del %VC_DIR%"\CheatMenuVC.asi" /Q
del %SA_DIR%"\CheatMenuVC.pdb" /Q del %VC_DIR%"\CheatMenuVC.pdb" /Q
del %SA_DIR%"\CheatMenuIII.asi" /Q del %III_DIR%"\CheatMenuIII.asi" /Q
del %SA_DIR%"\CheatMenuIII.pdb" /Q del %III_DIR%"\CheatMenuIII.pdb" /Q
%systemroot%\System32\xcopy /s "build\bin\CheatMenuSA.asi" %SA_DIR% /K /D /H /Y %systemroot%\System32\xcopy /s "bin\CheatMenuSA.asi" %SA_DIR% /K /D /H /Y
%systemroot%\System32\xcopy /s "build\bin\CheatMenuVC.asi" %VC_DIR% /K /D /H /Y %systemroot%\System32\xcopy /s "bin\CheatMenuVC.asi" %VC_DIR% /K /D /H /Y
%systemroot%\System32\xcopy /s "build\bin\CheatMenuIII.asi" %III_DIR% /K /D /H /Y %systemroot%\System32\xcopy /s "bin\CheatMenuIII.asi" %III_DIR% /K /D /H /Y
%systemroot%\System32\xcopy /s "build\bin\CheatMenuSA.pdb" %SA_DIR% /K /D /H /Y %systemroot%\System32\xcopy /s "bin\CheatMenuSA.pdb" %SA_DIR% /K /D /H /Y
%systemroot%\System32\xcopy /s "build\bin\CheatMenuVC.pdb" %VC_DIR% /K /D /H /Y %systemroot%\System32\xcopy /s "bin\CheatMenuVC.pdb" %VC_DIR% /K /D /H /Y
%systemroot%\System32\xcopy /s "build\bin\CheatMenuIII.pdb" %III_DIR% /K /D /H /Y %systemroot%\System32\xcopy /s "bin\CheatMenuIII.pdb" %III_DIR% /K /D /H /Y

View File

@ -5,7 +5,7 @@ echo --------------------------------------------------
echo[ echo[
call "tools\Setup.bat" call "tools\Setup.bat"
MsBuild CheatMenu.sln /property:Configuration=Debug /t:CheatMenuIII MsBuild CheatMenu.sln /property:Configuration=Debug /t:CheatMenuIII
del %SA_DIR%"\CheatMenuIII.asi" /Q del %III_DIR%"\CheatMenuIII.asi" /Q
del %SA_DIR%"\CheatMenuIII.pdb" /Q del %III_DIR%"\CheatMenuIII.pdb" /Q
%systemroot%\System32\xcopy /s "bin\CheatMenuIII.asi" %III_DIR% /K /D /H /Y %systemroot%\System32\xcopy /s "bin\CheatMenuIII.asi" %III_DIR% /K /D /H /Y
%systemroot%\System32\xcopy /s "bin\CheatMenuIII.pdb" %III_DIR% /K /D /H /Y %systemroot%\System32\xcopy /s "bin\CheatMenuIII.pdb" %III_DIR% /K /D /H /Y

View File

@ -5,7 +5,7 @@ echo --------------------------------------------------
echo[ echo[
call "tools\Setup.bat" call "tools\Setup.bat"
MsBuild CheatMenu.sln /property:Configuration=Debug /t:CheatMenuVC MsBuild CheatMenu.sln /property:Configuration=Debug /t:CheatMenuVC
del %SA_DIR%"\CheatMenuVC.asi" /Q del %VC_DIR%"\CheatMenuVC.asi" /Q
del %SA_DIR%"\CheatMenuVC.pdb" /Q del %VC_DIR%"\CheatMenuVC.pdb" /Q
%systemroot%\System32\xcopy /s "bin\CheatMenuVC.asi" %VC_DIR% /K /D /H /Y %systemroot%\System32\xcopy /s "bin\CheatMenuVC.asi" %VC_DIR% /K /D /H /Y
%systemroot%\System32\xcopy /s "bin\CheatMenuVC.pdb" %VC_DIR% /K /D /H /Y %systemroot%\System32\xcopy /s "bin\CheatMenuVC.pdb" %VC_DIR% /K /D /H /Y

View File

@ -6,8 +6,8 @@ echo[
call "tools\Setup.bat" call "tools\Setup.bat"
MsBuild CheatMenu.sln /property:Configuration=Release MsBuild CheatMenu.sln /property:Configuration=Release
del %SA_DIR%"\CheatMenuSA.asi" /Q del %SA_DIR%"\CheatMenuSA.asi" /Q
del %SA_DIR%"\CheatMenuVC.asi" /Q del %VC_DIR%"\CheatMenuVC.asi" /Q
del %SA_DIR%"\CheatMenuIII.asi" /Q del %III_DIR%"\CheatMenuIII.asi" /Q
%systemroot%\System32\xcopy /s "build\bin\CheatMenuSA.asi" %SA_DIR% /K /D /H /Y %systemroot%\System32\xcopy /s "bin\CheatMenuSA.asi" %SA_DIR% /K /D /H /Y
%systemroot%\System32\xcopy /s "build\bin\CheatMenuVC.asi" %VC_DIR% /K /D /H /Y %systemroot%\System32\xcopy /s "bin\CheatMenuVC.asi" %VC_DIR% /K /D /H /Y
%systemroot%\System32\xcopy /s "build\bin\CheatMenuIII.asi" %III_DIR% /K /D /H /Y %systemroot%\System32\xcopy /s "bin\CheatMenuIII.asi" %III_DIR% /K /D /H /Y

View File

@ -5,5 +5,5 @@ echo --------------------------------------------------
echo[ echo[
call "tools\Setup.bat" call "tools\Setup.bat"
MsBuild CheatMenu.sln /property:Configuration=Release /t:CheatMenuIII MsBuild CheatMenu.sln /property:Configuration=Release /t:CheatMenuIII
del %SA_DIR%"\CheatMenuIII.asi" /Q del %III_DIR%"\CheatMenuIII.asi" /Q
%systemroot%\System32\xcopy /s "bin\CheatMenuIII.asi" %III_DIR% /K /D /H /Y %systemroot%\System32\xcopy /s "bin\CheatMenuIII.asi" %III_DIR% /K /D /H /Y

View File

@ -5,5 +5,5 @@ echo --------------------------------------------------
echo[ echo[
call "tools\Setup.bat" call "tools\Setup.bat"
MsBuild CheatMenu.sln /property:Configuration=Release /t:CheatMenuVC MsBuild CheatMenu.sln /property:Configuration=Release /t:CheatMenuVC
del %SA_DIR%"\CheatMenuVC.asi" /Q del %VC_DIR%"\CheatMenuVC.asi" /Q
%systemroot%\System32\xcopy /s "bin\CheatMenuVC.asi" %VC_DIR% /K /D /H /Y %systemroot%\System32\xcopy /s "bin\CheatMenuVC.asi" %VC_DIR% /K /D /H /Y