[Custom Views] Forbid closing view with chat opened
This commit is contained in:
parent
89a8146717
commit
4a0d5474cd
1 changed files with 1 additions and 1 deletions
|
@ -350,7 +350,7 @@ function vmf.keybind_toggle_view(mod, view_name, keybind_transition_data, can_be
|
||||||
|
|
||||||
if is_view_active_for_current_level(view_name) then
|
if is_view_active_for_current_level(view_name) then
|
||||||
if _ingame_ui.current_view == view_name then
|
if _ingame_ui.current_view == view_name then
|
||||||
if keybind_transition_data.close_view_transition_name then
|
if keybind_transition_data.close_view_transition_name and not Managers.chat:chat_is_focused() then
|
||||||
if view_data.view_transitions[keybind_transition_data.close_view_transition_name] then
|
if view_data.view_transitions[keybind_transition_data.close_view_transition_name] then
|
||||||
mod:handle_transition(keybind_transition_data.close_view_transition_name, true,
|
mod:handle_transition(keybind_transition_data.close_view_transition_name, true,
|
||||||
keybind_transition_data.transition_fade,
|
keybind_transition_data.transition_fade,
|
||||||
|
|
Loading…
Add table
Reference in a new issue