local Hud_gsi_whored
function hud_whored_init()
--Destroy base hud subscriptions to GSI
vint_datagroup_remove_subscription("sr2_local_player_gameplay_indicator_status", "insert", "hud_gsi_vdo_update", HUD_DOC_HANDLE)
vint_datagroup_remove_subscription("sr2_local_player_gameplay_indicator_status", "update", "hud_gsi_vdo_update", HUD_DOC_HANDLE)
--Destroy base hud GSI
if Hud_gsi ~= -1 then
Hud_gsi:object_destroy()
Hud_gsi = -1
end
Hud_gsi_whored = Vdo_gsi_whored:new("gsi_whored")
Hud_gsi_whored:open()
--Subscribe
vint_datagroup_add_subscription("sr2_local_player_gameplay_indicator_status", "insert", "hud_whored_gsi_update")
vint_datagroup_add_subscription("sr2_local_player_gameplay_indicator_status", "update", "hud_whored_gsi_update")
end
function hud_whored_cleanup()
if Hud_gsi_whored ~= nil then
Hud_gsi_whored:object_destroy()
end
end
function hud_whored_gsi_update(di_h)
Hud_gsi_whored:update(di_h)
end