mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 06:58:20 +00:00
fixed enter in server browser
This commit is contained in:
parent
6ffd661c78
commit
fe71008a9b
|
@ -643,8 +643,11 @@ void MENUS::render_serverbrowser(RECT main_view)
|
|||
ui_vmargin(&button, 2.0f, &button);
|
||||
//ui_vmargin(&button, 2.0f, &button);
|
||||
static int join_button = 0;
|
||||
if(ui_do_button(&join_button, "Connect", 0, &button, ui_draw_menu_button, 0)) // || inp_key_down(KEY_ENTER))
|
||||
if(ui_do_button(&join_button, "Connect", 0, &button, ui_draw_menu_button, 0) || enter_pressed)
|
||||
{
|
||||
client_connect(config.ui_server_address);
|
||||
enter_pressed = false;
|
||||
}
|
||||
|
||||
ui_hsplit_b(&button_box, 5.0f, &button_box, &button);
|
||||
ui_hsplit_b(&button_box, 20.0f, &button_box, &button);
|
||||
|
|
Loading…
Reference in a new issue