GUIs for internals
Hey, can you recommend any GUI libraries for internal cheats? And please, don't mention ImGui. Something different.
class CBox : public CMenuObject
{
int m_nIncreaseDecreaseBy;
int m_nMaxValue;
int m_nMinValue;
public:
CBox(int x, int y, std::wstring wstrName, int max = 1, int min = 0, int nIncDecBy = 1)
{
this->m_x = x;
this->m_y = y;
this->m_wstrName = wstrName;
this->m_nMaxValue = max;
this->m_nMinValue = min;
this->m_nIncreaseDecreaseBy = nIncDecBy;
}
virtual void Draw()
{
if (MouseInArea(MousePos, this->m_x, this->m_y, this->m_x + 15, this->m_y + 15))
{
if (LClicked)
{
this->m_nValue += this->m_nIncreaseDecreaseBy;
if (this->m_nValue > this->m_nMaxValue)
this->m_nValue = this->m_nMinValue;
}
if (RClicked)
{
this->m_nValue -= this->m_nIncreaseDecreaseBy;
if (this->m_nValue < this->m_nMinValue)
this->m_nValue = this->m_nMaxValue;
}
pDrawing->DrawOutlinedRect(m_x, m_y, m_x + 15, m_y + 15, Colors::Blue);
}
else
{
pDrawing->DrawOutlinedRect(m_x, m_y, m_x + 15, m_y + 15, Colors::Red);
}
pDrawing->DrawString(m_x + 15 + 5, m_y, Fonts::MenuFont, Colors::White, (this->m_wstrName + L": " + std::to_wstring(this->m_nValue)).c_str());
}
};
class CButton : public CMenuObject
{
FunctionFn m_pFunction;
public:
CButton(int x, int y, const wchar_t* wstrName, FunctionFn pFunction)
{
this->m_x = x;
this->m_y = y;
this->m_wstrName = wstrName;
this->m_pFunction = pFunction;
}
virtual void Draw()
{
if (MouseInArea(MousePos, this->m_x, this->m_y, this->m_x + 15, this->m_y + 15))
{
if (LClicked)
m_pFunction();
pDrawing->DrawOutlinedRect(m_x, m_y, m_x + 15, m_y + 15, Colors::Blue);
}
else
{
pDrawing->DrawOutlinedRect(m_x, m_y, m_x + 15, m_y + 15, Colors::Red);
}
pDrawing->DrawString(m_x + 15 + 5, m_y, Fonts::MenuFont, Colors::White, this->m_wstrName.c_str());
}
};