66 lines
1.9 KiB
C#
66 lines
1.9 KiB
C#
using ClickableTransparentOverlay;
|
|
using GmodCheatx64s;
|
|
using ImGuiNET;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Numerics;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Veldrid.OpenGLBinding;
|
|
|
|
namespace GmodCheatx64
|
|
{
|
|
public class renderer : Overlay
|
|
{
|
|
bool checkBoxValue= false;
|
|
int loveMeter = 0;
|
|
string input = "";
|
|
string input2 = "";
|
|
|
|
bool enableOverlay = false;
|
|
public bool enableHealthCheck = false;
|
|
Vector2 screenSize = new Vector2(2560, 1440);
|
|
Vector2 drawPosition = new Vector2(150, 150);
|
|
|
|
|
|
protected override void Render()
|
|
{
|
|
DrawMenu();
|
|
DrawOverlay();
|
|
}
|
|
|
|
void DrawMenu()
|
|
{
|
|
ImGui.Begin("Gmod x64 Made by Finn");
|
|
ImGui.Checkbox("Draw Overlay", ref enableOverlay);
|
|
ImGui.BeginChild("Aimbot");
|
|
ImGui.Checkbox("CheckIfEntityHealth 0", ref enableHealthCheck);
|
|
ImGui.EndChild();
|
|
ImGui.End();
|
|
}
|
|
|
|
void DrawOverlay()
|
|
{
|
|
if (enableOverlay)
|
|
{
|
|
ImGui.SetNextWindowSize(screenSize);
|
|
ImGui.SetNextWindowPos(new Vector2(0, 0));
|
|
ImGui.Begin("Overlayxx", ImGuiWindowFlags.NoDecoration
|
|
| ImGuiWindowFlags.NoBackground
|
|
| ImGuiWindowFlags.NoBringToFrontOnFocus
|
|
| ImGuiWindowFlags.NoMove
|
|
| ImGuiWindowFlags.NoInputs
|
|
| ImGuiWindowFlags.NoCollapse
|
|
| ImGuiWindowFlags.NoScrollbar
|
|
| ImGuiWindowFlags.NoScrollWithMouse
|
|
);
|
|
|
|
ImDrawListPtr drawList = ImGui.GetWindowDrawList();
|
|
|
|
drawList.AddCircle(drawPosition, 50,ImGui.ColorConvertFloat4ToU32(new Vector4(1,0,0,1))); //Red
|
|
}
|
|
}
|
|
}
|
|
}
|