mirror of
https://github.com/nzp-team/quakec.git
synced 2025-03-01 23:21:27 +00:00
MENU: menu_coop.qc: only show note when buttons not hovered
This commit is contained in:
parent
ac55f3875d
commit
5c516618ff
1 changed files with 7 additions and 1 deletions
|
@ -139,11 +139,17 @@ void() Menu_Coop_Browse =
|
|||
static vector serverlist_scrollofs;
|
||||
vector vsize = sui_current_frame_size();
|
||||
Menu_ServerList("cbm_serverlist", [0, 0], [vsize.x, vsize.y / 2], serverlist_scrollofs, num_cached_servers);
|
||||
sui_text([0, (vsize.y / -3) + 16], MENU_TEXT_SMALL, "NOTE: Mouse input only.", [1, 1, 1], 1, 0);
|
||||
|
||||
Menu_Button(-2, "cbm_refresh", "REFRESH", "Refresh server list.") ? Menu_Coop_RefreshCache() : 0;
|
||||
Menu_Button(-1, "cbm_back", "BACK", "Return to Join Game Menu.") ? current_menu = MENU_COOPJOIN : 0;
|
||||
|
||||
// draw tooltip
|
||||
if (!sui_is_hovered("cbm_refresh") && !sui_is_hovered("cbm_back"))
|
||||
{
|
||||
sui_set_align([SUI_ALIGN_CENTER, SUI_ALIGN_END]);
|
||||
sui_text([0, -30], MENU_TEXT_MEDIUM, "NOTE: Keyboard or gamepad is not supported for server selection.", [1, 1, 1], 1, 0);
|
||||
}
|
||||
|
||||
sui_pop_frame();
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue