0% found this document useful (0 votes)
8 views2 pages

Draw Lean Client Script

The document outlines a code snippet for a settings menu in a game, featuring various options such as toggling shiftlock, enabling Discord RPC, and adjusting performance settings. It includes functions to draw checkboxes and labels for different categories: General Settings, Advanced, and Performance. The code also sets visual properties like color and font for the menu display.

Uploaded by

supermariogod95
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views2 pages

Draw Lean Client Script

The document outlines a code snippet for a settings menu in a game, featuring various options such as toggling shiftlock, enabling Discord RPC, and adjusting performance settings. It includes functions to draw checkboxes and labels for different categories: General Settings, Advanced, and Performance. The code also sets visual properties like color and font for the menu display.

Uploaded by

supermariogod95
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

// draw_pause()

c = 4

draw_set_color(0);
draw_set_alpha(0.8);
draw_rectangle(0,0,room_width,room_height,0);
draw_sprite_ext(spr_weed, 0, abs(global.winwidth/2) - 240, abs(global.winheight/2)
- 256, 1, 1, 0, 0, 0.5);

shiftlock = false
window_set_cursor(cr_arrow)

//Title
//draw_set_color(make_color_rgb(50, 178, 82));
draw_set_font(fnt_bold);

//Headers
//192.33
//616
//886.72
gx = ((room_width - string_width("General Settings"))/3.75) - 50;
ax = ((room_width - string_width("Advanced"))/2) - 60;
px = ((room_width - string_width("Performance"))/1.4) - 50;

draw_chat(gx, 96, "\c5General Settings");


draw_chat(px, 96, "\c5Performance");
draw_chat(ax, 96, "\c5Advanced");
draw_set_color(c_white);

//General Settings
SETTINGS_doshiftlock = draw_checkbox(gx,122 + c,SETTINGS_doshiftlock);
draw_chat(gx + 27,122,"Toggle shiftlock/ctrllock");
SETTINGS_doctrl = draw_checkbox(gx,150 + c,SETTINGS_doctrl);
draw_chat(gx + 27,150,"Use CTRL for shiftlock");
SETTINGS_Discord = draw_checkbox(gx,178 + c,SETTINGS_Discord);
draw_chat(gx + 27,178,"Enable/disable discord rpc");
FLYHACK = draw_checkbox(gx,206 + c,FLYHACK);
draw_chat(gx + 27,206,"\c5Fly \c1[space: up, shift: down]");
SUPERSPEED = draw_checkbox(gx,234 + c,SUPERSPEED);
draw_chat(gx + 27,234,"\c5Super Speed");
NOCLIP = draw_checkbox(gx,262 + c,NOCLIP);
draw_chat(gx + 27,262,"\c5Noclip");
ESP = draw_checkbox(gx,290 + c,ESP);
draw_chat(gx + 27,290,"\c5ESP");

//Advanced
SETTINGS_SaveSettings = draw_checkbox(ax,122 + c,SETTINGS_SaveSettings);
draw_chat(ax + 27,122,"Save settings");
SETTINGS_D3DMLF = draw_checkbox(ax,150 + c,SETTINGS_D3DMLF);
draw_chat(ax + 27,150,"D3DMLF (Requires restart)");
SETTINGS_CacheD3D = draw_checkbox(ax,178 + c,SETTINGS_CacheD3D);
draw_chat(ax + 27,178,"CacheD3D (Requires restart)");
AHACK = draw_checkbox(ax,206 + c,AHACK);
draw_chat(ax + 27,206,"\c5Announce chat commands");

//Performance
SETTINGS_Models = draw_checkbox(px,122 + c,SETTINGS_Models);
draw_chat(px + 27,122,"Show Meshes");
SETTINGS_Animations = draw_checkbox(px,150 + c,SETTINGS_Animations);
draw_chat(px + 27,150,"Show Figure Animation");
SETTINGS_GUI = draw_checkbox(px,178 + c,SETTINGS_GUI);
draw_chat(px + 27,178,"Show GUI");
SETTINGS_Shapes = draw_checkbox(px,206 + c,SETTINGS_Shapes);
draw_chat(px + 27,206,"Draw Shape Models and 'Fast Bricks'");

//Not sure if this is required so I'm keeping it just in case lol


pausemenu = true;

You might also like