From: terencehill Date: Mon, 12 Mar 2018 21:38:18 +0000 (+0100) Subject: Quickmenu: fix ambiguity of hud_panel_quickmenu_translatecommands checkbox name;... X-Git-Tag: xonotic-v0.8.5~2235^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=aacc3913d8f710d27a09155af6d722cb29367b6b;p=xonotic%2Fxonotic-data.pk3dir.git Quickmenu: fix ambiguity of hud_panel_quickmenu_translatecommands checkbox name; reload current page when that checkbox is toggled --- diff --git a/qcsrc/client/hud/panel/quickmenu.qc b/qcsrc/client/hud/panel/quickmenu.qc index 077fac979..ba3e5f0cb 100644 --- a/qcsrc/client/hud/panel/quickmenu.qc +++ b/qcsrc/client/hud/panel/quickmenu.qc @@ -802,6 +802,8 @@ void QuickMenu_Default(string target_submenu) QUICKMENU_ENTRY_TC(CTX(_("QMCMD^nice one")), "say %s", ":-) / nice one", CTX(_("QMCMD^:-) / nice one"))) QUICKMENU_ENTRY_TC(CTX(_("QMCMD^good game")), "say %s", "good game", CTX(_("QMCMD^good game"))) QUICKMENU_ENTRY_TC(CTX(_("QMCMD^hi / good luck")), "say %s", "hi / good luck and have fun", CTX(_("QMCMD^hi / good luck and have fun"))) + if(prvm_language != "en") + QUICKMENU_ENTRY(CTX(_("QMCMD^Send in English")), "toggle hud_panel_quickmenu_translatecommands 0 1; quickmenu; wait; quickmenu default Chat") QUICKMENU_SMENU(_("Chat"), "Chat") if(teamplay) @@ -862,8 +864,6 @@ void QuickMenu_Default(string target_submenu) } QUICKMENU_ENTRY(CTX(_("QMCMD^Fullscreen")), "toggle vid_fullscreen; vid_restart") - if(prvm_language != "en") - QUICKMENU_ENTRY(CTX(_("QMCMD^Translate chat messages")), "toggle hud_panel_quickmenu_translatecommands") QUICKMENU_SMENU(CTX(_("QMCMD^Settings")), "Settings") QUICKMENU_SMENU(CTX(_("QMCMD^Call a vote")), "Call a vote")