Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Commit

Permalink
version 3.1 prep
Browse files Browse the repository at this point in the history
  • Loading branch information
user-grinch committed Feb 4, 2022
1 parent 34c50c0 commit e3d3584
Show file tree
Hide file tree
Showing 10 changed files with 57 additions and 53 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
4. [Plugin SDK](https://github.com/DK22Pac/plugin-sdk)

All credits are given in Menu/About tab.

## Images
<details>
<summary>Show Images</summary>
Expand All @@ -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)

*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)
*If you just want more player skins without much hassel use this*
Expand Down
57 changes: 30 additions & 27 deletions src/cheatmenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,33 +226,10 @@ void CheatMenu::ShowAnniversaryPage()
Ui::CenterdText("Happy Anniversary!");
ImGui::NewLine();

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();

static bool showHistory = false;
ImGui::Checkbox("Show backstory", &showHistory);

static bool showHistory;
if (showHistory)
{
ImGui::Checkbox("Show backstory", &showHistory);
ImGui::BeginChild("BACKSTORY");
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.");
Expand All @@ -265,11 +242,11 @@ void CheatMenu::ShowAnniversaryPage()

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"
"really tedious.");
" really tedious.");

ImGui::NewLine();
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.");

ImGui::NewLine();
Expand All @@ -286,6 +263,32 @@ void CheatMenu::ShowAnniversaryPage()

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()
Expand Down
3 changes: 1 addition & 2 deletions src/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ void MenuThread(void* param)

CheatMenu menu;


// Checking for updates once a day
SYSTEMTIME st;
GetSystemTime(&st);
Expand All @@ -73,8 +72,8 @@ void MenuThread(void* param)

while (true)
{
Sleep(5000);
Updater::Process();
Sleep(5000);
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/version.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once
#define MENU_NAME "Cheat Menu"
#define MENU_VERSION_NUMBER "3.1"
#define MENU_VERSION MENU_VERSION_NUMBER"-beta"
#define BUILD_NUMBER "20220128"
#define MENU_VERSION MENU_VERSION_NUMBER
#define BUILD_NUMBER "20220204"
#define MENU_TITLE MENU_NAME " v" MENU_VERSION
20 changes: 10 additions & 10 deletions tools/DebugAll.bat
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ call "tools\Setup.bat"
MsBuild CheatMenu.sln /property:Configuration=Debug
del %SA_DIR%"\CheatMenuSA.asi" /Q
del %SA_DIR%"\CheatMenuSA.pdb" /Q
del %SA_DIR%"\CheatMenuVC.asi" /Q
del %SA_DIR%"\CheatMenuVC.pdb" /Q
del %SA_DIR%"\CheatMenuIII.asi" /Q
del %SA_DIR%"\CheatMenuIII.pdb" /Q
%systemroot%\System32\xcopy /s "build\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 "build\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 "build\bin\CheatMenuVC.pdb" %VC_DIR% /K /D /H /Y
%systemroot%\System32\xcopy /s "build\bin\CheatMenuIII.pdb" %III_DIR% /K /D /H /Y
del %VC_DIR%"\CheatMenuVC.asi" /Q
del %VC_DIR%"\CheatMenuVC.pdb" /Q
del %III_DIR%"\CheatMenuIII.asi" /Q
del %III_DIR%"\CheatMenuIII.pdb" /Q
%systemroot%\System32\xcopy /s "bin\CheatMenuSA.asi" %SA_DIR% /K /D /H /Y
%systemroot%\System32\xcopy /s "bin\CheatMenuVC.asi" %VC_DIR% /K /D /H /Y
%systemroot%\System32\xcopy /s "bin\CheatMenuIII.asi" %III_DIR% /K /D /H /Y
%systemroot%\System32\xcopy /s "bin\CheatMenuSA.pdb" %SA_DIR% /K /D /H /Y
%systemroot%\System32\xcopy /s "bin\CheatMenuVC.pdb" %VC_DIR% /K /D /H /Y
%systemroot%\System32\xcopy /s "bin\CheatMenuIII.pdb" %III_DIR% /K /D /H /Y
4 changes: 2 additions & 2 deletions tools/DebugIII.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ echo --------------------------------------------------
echo[
call "tools\Setup.bat"
MsBuild CheatMenu.sln /property:Configuration=Debug /t:CheatMenuIII
del %SA_DIR%"\CheatMenuIII.asi" /Q
del %SA_DIR%"\CheatMenuIII.pdb" /Q
del %III_DIR%"\CheatMenuIII.asi" /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.pdb" %III_DIR% /K /D /H /Y
4 changes: 2 additions & 2 deletions tools/DebugVC.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ echo --------------------------------------------------
echo[
call "tools\Setup.bat"
MsBuild CheatMenu.sln /property:Configuration=Debug /t:CheatMenuVC
del %SA_DIR%"\CheatMenuVC.asi" /Q
del %SA_DIR%"\CheatMenuVC.pdb" /Q
del %VC_DIR%"\CheatMenuVC.asi" /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.pdb" %VC_DIR% /K /D /H /Y
10 changes: 5 additions & 5 deletions tools/ReleaseAll.bat
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ echo[
call "tools\Setup.bat"
MsBuild CheatMenu.sln /property:Configuration=Release
del %SA_DIR%"\CheatMenuSA.asi" /Q
del %SA_DIR%"\CheatMenuVC.asi" /Q
del %SA_DIR%"\CheatMenuIII.asi" /Q
%systemroot%\System32\xcopy /s "build\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 "build\bin\CheatMenuIII.asi" %III_DIR% /K /D /H /Y
del %VC_DIR%"\CheatMenuVC.asi" /Q
del %III_DIR%"\CheatMenuIII.asi" /Q
%systemroot%\System32\xcopy /s "bin\CheatMenuSA.asi" %SA_DIR% /K /D /H /Y
%systemroot%\System32\xcopy /s "bin\CheatMenuVC.asi" %VC_DIR% /K /D /H /Y
%systemroot%\System32\xcopy /s "bin\CheatMenuIII.asi" %III_DIR% /K /D /H /Y
2 changes: 1 addition & 1 deletion tools/ReleaseIII.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ echo --------------------------------------------------
echo[
call "tools\Setup.bat"
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
2 changes: 1 addition & 1 deletion tools/ReleaseVC.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ echo --------------------------------------------------
echo[
call "tools\Setup.bat"
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

0 comments on commit e3d3584

Please sign in to comment.