function hud_voice_chat_init()
end
function hud_voice_chat_cleanup()
end
function hud_voice_chat_process()
end
function hud_voice_chat_update_voice_msg(b_visible, b_active, s_name)
--Update voice chat message
local chat_msg_h = vint_object_find("coop_voice_msg")
local bg = vint_object_find("bg", chat_msg_h)
local bg_body = vint_object_find("bg_body", chat_msg_h)
local bg_top = vint_object_find("bg_top", chat_msg_h)
local bg_top_small = vint_object_find("bg_top_small", chat_msg_h)
local bg_top_small_trim = vint_object_find("bg_top_small", chat_msg_h)
local party_msg = vint_object_find("party_msg", chat_msg_h)
local voice_msg = vint_object_find("voice_msg", chat_msg_h)
-- Set visibility for overall voice chat window.
vint_set_property(bg, "visible", b_visible)
-- Set visibility and color for User Name
vint_set_property(voice_msg, "text_tag", s_name)
vint_set_property(voice_msg, "visible", b_visible)
if b_active == true then
vint_set_property(voice_msg, "tint", 255/255, 147/255, 42/255)
else
vint_set_property(voice_msg, "tint", 1, 1, 1)
end
-- Set text for Voice Chat title
vint_set_property(party_msg, "text_tag", "VOICE_CHAT")
vint_set_property(party_msg, "visible", b_visible)
-- Disable elements we don't want to show...
vint_set_property(bg_top, "visible", false)
vint_set_property(bg_top_small, "visible", false)
vint_set_property(bg_top_small_trim, "visible", false)
vint_set_property(party_msg, "visible", false)
end