Hi,
I released my first D3D menu, i know i'm a noob still using d3d, the menu is working on all the games that i've tested on them but the problem is i don't know how to attach my Hacks with it.
a part of the code:
I will appreciate any help is coming from you guys.
I released my first D3D menu, i know i'm a noob still using d3d, the menu is working on all the games that i've tested on them but the problem is i don't know how to attach my Hacks with it.
a part of the code:
C++:
void MenuManager::CreateItems()
{
m_Items.emplace(HK_TESTE1, new MenuItem("Item 1", false));
m_Items.emplace(HK_TESTE2, new MenuItem("Item 2", true));
m_Items.emplace(HK_TESTE3, new MenuItem("Item 3", {"[str1]", "[str2]", "[str3]"}));
}
void MenuManager::HackActions()
{
//I think its here where i need to add my hacks
//ON/OFF
if (GetActived(HK_TESTE1))
{
g_Draw->DrawTextA("Item 1 Activated", 500, 300, Verde, 2);
}
if (GetActived(HK_TESTE2))
{
g_Draw->DrawTextA("Item 2 Activated", 500, 320, Verde, 2);
}
//ARRAY VALUE - Examples
{
auto arrPos = GetArrayPos(HK_TESTE3);
DWORD color;
if (arrPos == 0)
color = 0xFFFF0000;
else if (arrPos == 1)
color = 0xFF00FF00;
else if (arrPos == 2)
color = 0xFF0000FF;
char buff[128];
sprintf_s(buff, "ArrayPos Item 3: %d", arrPos);
g_Draw->DrawTextA(buff, 500, 340, color, 2);
}
}