HelpGUIs for internals

Posts 110 of 10 · Page 1 of 1
GUIs for internals
Hey, can you recommend any GUI libraries for internal cheats? And please, don't mention ImGui. Something different.
try the gui from ayyware or avoz or something they have pretty nice ones if you don't want to work with ImGui
Make your own! Draw some boxes and strings, do something if your mouse is hovering over and or pressed and work your way up from there.


Yes, I do have my own menu and ImGui running at the same time but the ugly one is made from scratch by me, I'm using ImGui for color picker.

Some examples of my code:
Code:
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());
	}
};
Quote Originally Posted by affe2626 View Post
Make your own! Draw some boxes and strings, do something if your mouse is hovering over and or pressed and work your way up from there.


Yes, I do have my own menu and ImGui running at the same time but the ugly one is made from scratch by me, I'm using ImGui for color picker.

Some examples of my code:
Code:
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());
	}
};
looks good.
You could try out nuklear, search it up on github
OSHGui and Nuklear are rlly good. But try ImGUI, you can do amazing stuff with it.
Quote Originally Posted by adni3down View Post
OSHGui and Nuklear are rlly good. But try ImGUI, you can do amazing stuff with it.
Quote Originally Posted by andrikela View Post
And please, don't mention ImGui.
lel/tooshort
Quote Originally Posted by Quanto View Post
lel/tooshort
Have no idea why people are against ImGUI, people actually can make amazing menu's with it.
I didn't say ImGUI is shit, it's really nice GUI, but I wanted something different.
Thank you all guys.
Posts 110 of 10 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?