mirror of
https://github.com/YimMenu/YimMenuV2.git
synced 2026-10-10 03:43:15 +08:00
d84c78cb7a
* (feat) Bypass Casino Bans for all Tables/Slots * (feat) Bypass Casino Bans for all Tables/Slots (Fix) * (feat) Bypass Casino Bans (Refactor) added to a Tools section for global use instead of being directly in the slots section. * (feat) Casino Lucky Wheel * (feat) Casino Lucky Wheel Prizes * Refactor Casino Lucky Wheel * (feat) Refactor - Added Lucky Wheel Bypass * (feat) Removed Lucky Wheel Prize/Autospin for now. * (feat) Casino Rig Options - Removed Lucky Wheel and Slots Autospin (temporarily) Added notice on risk to bypassing the bans/cooldowns. * Removed Cyrillic due to crashing/bug issues Restyled UI to use FontAwesome * UI Updates * fix * UI alterations * Removed Cyrillic due to Crashing/Bugs Added FULL FontAwesome Icon support Altered UI with floating navigation. * Fix * (Improvement) UI Restyling with floating Navigation, Menu resizing/moving and full FontAwesome icon support. * (Fix) Explosive Ammo not working in SP + more * (Fix) Explosive Ammo - Added combo box for selecting different ammo types - Added magic_enum for dynamic Explosion type listings using ExplosionType.hpp * (Improved) Explosive Ammo with damage scale modifier and camera shake modifier In Progress - Weapon Damage modifier * (feat) Added Weapon Damage Modifier * Fixes: Moved Melee damage modifier from WeaponDamage to its own option Fixes reporting PAD natives in UIManager and restored them in GUI with proper impl Removed OnEnable from ExplosiveAmmo * Casino script work * Alterations: Removed casino bypass cooldown (per request) Removed magic_enum Added array of explosion types as an alternative * moved m_ShowContentWindow from public to private * Fixed Weapon Damage description Passed ExplosionTypeArray directly
71 lines
3.9 KiB
C++
71 lines
3.9 KiB
C++
#include "Self.hpp"
|
|
|
|
#include "core/util/Joaat.hpp"
|
|
#include "game/frontend/items/Items.hpp"
|
|
#include "Self/OutfitEditor.hpp"
|
|
#include "Self/Weapons.hpp"
|
|
|
|
namespace YimMenu::Submenus
|
|
{
|
|
Self::Self() :
|
|
#define ICON_FA_USER "\xef\x80\x87"
|
|
Submenu::Submenu("Self", ICON_FA_USER)
|
|
{
|
|
auto main = std::make_shared<Category>("Main");
|
|
auto globalsGroup = std::make_shared<Group>("Globals");
|
|
auto movementGroup = std::make_shared<Group>("Movement");
|
|
auto toolsGroup = std::make_shared<Group>("Tools", 2);
|
|
auto wantedGroup = std::make_shared<Group>("Wanted");
|
|
|
|
globalsGroup->AddItem(std::make_shared<BoolCommandItem>("godmode"_J));
|
|
globalsGroup->AddItem(std::make_shared<BoolCommandItem>("invis"_J));
|
|
movementGroup->AddItem(std::make_shared<ConditionalItem>("invis"_J, std::make_shared<BoolCommandItem>("localvis"_J)));
|
|
globalsGroup->AddItem(std::make_shared<BoolCommandItem>("otr"_J));
|
|
globalsGroup->AddItem(std::make_shared<BoolCommandItem>("noragdoll"_J));
|
|
globalsGroup->AddItem(std::make_shared<BoolCommandItem>("noidlekick"_J));
|
|
globalsGroup->AddItem(std::make_shared<BoolCommandItem>("unlimitedoxygen"_J));
|
|
globalsGroup->AddItem(std::make_shared<BoolCommandItem>("formatmoney"_J));
|
|
globalsGroup->AddItem(std::make_shared<BoolCommandItem>("mobileradio"_J));
|
|
globalsGroup->AddItem(std::make_shared<BoolCommandItem>("keepplayerclean"_J));
|
|
|
|
toolsGroup->AddItem(std::make_shared<CommandItem>("skipcutscene"_J));
|
|
toolsGroup->AddItem(std::make_shared<CommandItem>("skipconversation"_J));
|
|
toolsGroup->AddItem(std::make_shared<CommandItem>("suicide"_J));
|
|
toolsGroup->AddItem(std::make_shared<CommandItem>("heal"_J));
|
|
toolsGroup->AddItem(std::make_shared<CommandItem>("cleardamage"_J));
|
|
toolsGroup->AddItem(std::make_shared<CommandItem>("fillinventory"_J));
|
|
toolsGroup->AddItem(std::make_shared<CommandItem>("openwardrobe"_J));
|
|
|
|
auto clearWanted = std::make_shared<Group>("", 1);
|
|
clearWanted->AddItem(std::make_shared<ConditionalItem>("neverwanted"_J, std::make_shared<CommandItem>("clearwanted"_J), true));
|
|
clearWanted->AddItem(std::make_shared<BoolCommandItem>("neverwanted"_J));
|
|
auto setWanted = std::make_shared<Group>("", 1);
|
|
setWanted->AddItem(std::make_shared<IntCommandItem>("wantedslider"_J, "Level"));
|
|
setWanted->AddItem(std::make_shared<ConditionalItem>("freezewanted"_J, std::make_shared<CommandItem>("setwanted"_J), true));
|
|
setWanted->AddItem(std::make_shared<BoolCommandItem>("freezewanted"_J));
|
|
wantedGroup->AddItem(std::make_shared<ConditionalItem>("freezewanted"_J, clearWanted, true));
|
|
wantedGroup->AddItem(std::make_shared<ConditionalItem>("neverwanted"_J, setWanted, true));
|
|
|
|
movementGroup->AddItem(std::make_shared<BoolCommandItem>("standonvehicles"_J));
|
|
movementGroup->AddItem(std::make_shared<BoolCommandItem>("disableactionmode"_J));
|
|
movementGroup->AddItem(std::make_shared<BoolCommandItem>("superrun"_J));
|
|
movementGroup->AddItem(std::make_shared<ConditionalItem>("superrun"_J, std::make_shared<FloatCommandItem>("moverateoverride"_J, std::nullopt, false)));
|
|
movementGroup->AddItem(std::make_shared<ConditionalItem>("superrun"_J, std::make_shared<FloatCommandItem>("runsprintswimmultiplier"_J, std::nullopt, false)));
|
|
movementGroup->AddItem(std::make_shared<BoolCommandItem>("superjump"_J));
|
|
movementGroup->AddItem(std::make_shared<BoolCommandItem>("noclip"_J));
|
|
movementGroup->AddItem(std::make_shared<ConditionalItem>("noclip"_J, std::make_shared<FloatCommandItem>("noclipspeed"_J)));
|
|
movementGroup->AddItem(std::make_shared<BoolCommandItem>("freecam"_J));
|
|
movementGroup->AddItem(std::make_shared<ConditionalItem>("freecam"_J, std::make_shared<FloatCommandItem>("freecamspeed"_J)));
|
|
|
|
main->AddItem(globalsGroup);
|
|
main->AddItem(toolsGroup);
|
|
main->AddItem(wantedGroup);
|
|
main->AddItem(movementGroup);
|
|
AddCategory(std::move(main));
|
|
|
|
AddCategory(BuildWeaponsMenu());
|
|
|
|
auto outfitEditorCategory = YimMenu::CreateOutfitsMenu();
|
|
AddCategory(std::move(outfitEditorCategory));
|
|
}
|
|
} |