void keybinds() {
#define DEFX 300
#define DEFY 300
#define DARK_COL Color(6, 21, 39)
#define LIGHT_COL Color(8, 27, 55)
#define WHITE_COL Color(230, 230, 230)
#define WHITED_COL Color(210, 210, 210)
if (!g_options.visuals_keybinds)
return;
static int x = DEFX;
static int y = DEFY;
static int _drag_x = DEFX;
static int _drag_y = DEFY;
static int w = 260;
static bool _dragging = false;
bool _click = false;
if (GetAsyncKeyState(VK_LBUTTON)) _click = true;
if (_dragging && !_click) _dragging = false;
Vector2D _mouse_pos = g_render.mouse_position();
if (_dragging && _click) {
x = _mouse_pos.x - _drag_x;
y = _mouse_pos.y - _drag_y;
}
if (g_render.mouse_in_region(x, y, w, 28)) {
_dragging = true;
_drag_x = _mouse_pos.x - x;
_drag_y = _mouse_pos.y - y;
}
using namespace std;
static Vector2D toggledSZ = g_render.get_size(g_fonts.other, "toggled");
static Vector2D holdingSZ = g_render.get_size(g_fonts.other, "holding ON");
vector<pair<string, bool>> inds;
// header
g_render.filled_box_wh(x, y, w, 28, DARK_COL);
g_render.text(g_fonts.other, "Keybinds", x + 6, y + 4, WHITED_COL);
// other
if (interfaces::engine_client->is_in_game() && g_local->is_alive()) {
if (g_options.visuals_thirdperson_toggle)
inds.push_back(pair<string, bool>(string("thirdperson"), 0));
if (g_options.ragebot_desync_flip_key_toggle)
inds.push_back(pair<string, bool>(string("desync_flip"), 0)); // asd
if (GetAsyncKeyState(g_options.ragebot_antiaim_fakeduck_key) & 0x8000)
inds.push_back(pair<string, bool>(string("fakeduck"), 1));
if (g_options.other_toggle_doubletaptoggle)
inds.push_back(pair<string, bool>(string("doubletap"), 0));
if (g_options.ragebot_baim_on_key_toggle)
inds.push_back(pair<string, bool>(string("force_body"), 0));
if (g_options.ragebot_hitbox_override_toggle)
inds.push_back(pair<string, bool>(string("hitboxes_override"), 0)); // asd
if (g_options.ragebot_damage_override_toggle)
inds.push_back(pair<string, bool>(string("damage_override"), 0)); // asd
int to_add = 0;
for (auto i : inds) {
g_render.filled_box_wh(x, y + 28 + to_add, w, 24, LIGHT_COL);
g_render.text(g_fonts.other, i.first, x + 6, y + 28 + to_add + 6, WHITE_COL);
g_render.text(g_fonts.other, i.second ? "holding ON" : "toggled", x + w - (i.second ? holdingSZ.x : toggledSZ.x) - 4, y + 28 + to_add + 4, WHITE_COL);
to_add += 24;
}
g_render.filled_box_wh(x, y + 28 + to_add, w, 14, LIGHT_COL);
}
}