mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
added button for auto switch weapon. adjusted some spacing
This commit is contained in:
parent
79d495233f
commit
e5629675a3
|
@ -1048,6 +1048,12 @@ static void menu2_render_settings_player(RECT main_view)
|
|||
if (ui2_do_button(&config.dynamic_camera, "Dynamic camera", config.dynamic_camera, &button, ui2_draw_checkbox, 0))
|
||||
config.dynamic_camera ^= 1;
|
||||
|
||||
ui2_hsplit_t(&main_view, 20.0f, &button, &main_view);
|
||||
if (ui2_do_button(&config.autoswitch_weapons, "Switch weapon on pickup", config.autoswitch_weapons, &button, ui2_draw_checkbox, 0))
|
||||
config.autoswitch_weapons ^= 1;
|
||||
|
||||
ui2_hsplit_t(&main_view, 20.0f, &button, &main_view);
|
||||
|
||||
ui2_hsplit_t(&main_view, 20.0f, &button, &main_view);
|
||||
if (ui2_do_button(&config.player_color_body, "Custom colors", config.player_use_custom_color, &button, ui2_draw_checkbox, 0))
|
||||
config.player_use_custom_color = config.player_use_custom_color?0:1;
|
||||
|
|
Loading…
Reference in a new issue