Cte_news_doc_handle = -1
local News_14_grp_h = -1
local News_23_grp_h = -1
local News_23_pre_grp_h = -1
local Span_09_grp_h = -1
local Span_ms_grp_h = -1
local Psa_grp_h = -1
local Span_ms_anim_h = -1
function cte_news_init()
Cte_news_doc_handle = vint_document_find("cte_news")
News_14_grp_h = vint_object_find("news_14_grp", 0, Cte_news_doc_handle)
News_23_grp_h = vint_object_find("news_23_grp", 0, Cte_news_doc_handle)
News_23_pre_grp_h = vint_object_find("news_23_pre_grp", 0, Cte_news_doc_handle)
Span_09_grp_h = vint_object_find("span_09_grp", 0, Cte_news_doc_handle)
Span_ms_grp_h = vint_object_find("span_ms_grp", 0, Cte_news_doc_handle)
Psa_grp_h = vint_object_find("psa_grp", 0, Cte_news_doc_handle)
Span_ms_anim_h = vint_object_find("span_ms_anim")
vint_set_property(News_14_grp_h, "visible", false)
vint_set_property(News_23_grp_h, "visible", false)
vint_set_property(News_23_pre_grp_h, "visible", false)
vint_set_property(Span_09_grp_h, "visible", false)
vint_set_property(Span_ms_grp_h, "visible", false)
vint_set_property(Psa_grp_h, "visible", false)
--Dump pause map...
pause_map_dump()
end
-------------
--news
-------------
function cte_news_14in_4()
local news_14_anim_h = vint_object_find("news_14_anim")
local news_14_ticker_h = vint_object_find("ticker_txt_14")
vint_set_property(News_14_grp_h, "visible", true)
vint_set_property(news_14_ticker_h, "text_tag", "...Local boy nags parents into purchasing adult elephant as pet...Two children found guilty of using illegal immigrants to supply lemonade stand...Technically Legal fined by health inspectors for 6th outbreak of gonorrhea in as many days...")
lua_play_anim(news_14_anim_h)
if Hud_msg_doc ~= nil or Hud_msg_doc ~= 0 then
hud_msg_subtitle_top()
end
end
function cte_news_14in_9()
vint_set_property(News_14_grp_h, "visible", false)
if Hud_msg_doc ~= nil or Hud_msg_doc ~= 0 then
hud_msg_subtitle_bottom()
end
end
function cte_news_23out_5()
local news_23_pre_anim_h = vint_object_find("news_23_pre_anim")
local news_23_pre_ticker_h = vint_object_find("ticker_txt_23_pre")
vint_set_property(News_23_pre_grp_h, "visible", true)
vint_set_property(news_23_pre_ticker_h, "text_tag", "...Memorial service for boy trampled to death by elephant to be held tomorrow...Saints Flow recalled after recent positive tests for HGH...Free cheeseburger day at Freckle Bitch's leaves 6 dead; dozens more injured...")
lua_play_anim(news_23_pre_anim_h)
if Hud_msg_doc ~= nil or Hud_msg_doc ~= 0 then
hud_msg_subtitle_top()
end
end
function cte_news_23out_6()
vint_set_property(News_23_pre_grp_h, "visible", false)
if Hud_msg_doc ~= nil or Hud_msg_doc ~= 0 then
hud_msg_subtitle_bottom()
end
end
function cte_news_23out_12()
local news_23_anim_h = vint_object_find("news_23_anim")
local news_23_ticker_h = vint_object_find("ticker_txt_23")
vint_set_property(News_23_grp_h, "visible", true)
vint_set_property(news_23_ticker_h, "text_tag", "...Memorial service for boy trampled to death by elephant to be held tomorrow...Saints Flow recalled after recent positive tests for HGH...Free cheeseburger day at Freckle Bitch's leaves 6 dead; dozens more injured...")
lua_play_anim(news_23_anim_h)
if Hud_msg_doc ~= nil or Hud_msg_doc ~= 0 then
hud_msg_subtitle_top()
end
end
function cte_news_23out_15()
vint_set_property(News_23_grp_h, "visible", false)
if Hud_msg_doc ~= nil or Hud_msg_doc ~= 0 then
hud_msg_subtitle_bottom()
end
end
-------------
--span 09
-------------
function cte_news_09out_11()
local span_09_anim_h = vint_object_find("span_09_anim")
vint_set_property(Span_09_grp_h, "visible", true)
lua_play_anim(span_09_anim_h)
if Hud_msg_doc ~= nil or Hud_msg_doc ~= 0 then
hud_msg_subtitle_top()
end
end
-------------
--span ms
-------------
function cte_news_ms_4()
vint_set_property(Span_ms_grp_h, "visible", true)
lua_play_anim(Span_ms_anim_h)
if Hud_msg_doc ~= nil or Hud_msg_doc ~= 0 then
hud_msg_subtitle_top()
end
end
function cte_news_ms_5()
vint_set_property(Span_ms_grp_h, "visible",false)
if Hud_msg_doc ~= nil or Hud_msg_doc ~= 0 then
hud_msg_subtitle_bottom()
end
end
function cte_news_ms_6()
vint_set_property(Span_ms_grp_h, "visible", true)
lua_play_anim(Span_ms_anim_h)
if Hud_msg_doc ~= nil or Hud_msg_doc ~= 0 then
hud_msg_subtitle_top()
end
end
function cte_news_ms_7()
vint_set_property(Span_ms_grp_h, "visible",false)
if Hud_msg_doc ~= nil or Hud_msg_doc ~= 0 then
hud_msg_subtitle_bottom()
end
end
function cte_news_ms_8()
vint_set_property(Span_ms_grp_h, "visible", true)
lua_play_anim(Span_ms_anim_h)
if Hud_msg_doc ~= nil or Hud_msg_doc ~= 0 then
hud_msg_subtitle_top()
end
end
function cte_news_ms_9()
vint_set_property(Span_ms_grp_h, "visible",false)
if Hud_msg_doc ~= nil or Hud_msg_doc ~= 0 then
hud_msg_subtitle_bottom()
end
end
-------------
--span ms jumbo
-------------
function cte_news_ms_jumbo_1()
vint_set_property(Span_ms_grp_h, "visible", true)
lua_play_anim(Span_ms_anim_h)
end
-------------
--psa
-------------
function cte_news_11out_7()
local psa_anim_h = vint_object_find("psa_anim")
vint_set_property(Psa_grp_h, "visible", true)
lua_play_anim(psa_anim_h)
end
function cte_news_11out_8()
vint_set_property(Psa_grp_h, "visible", false)
end
function cte_news_cleanup()
if Hud_msg_doc ~= nil or Hud_msg_doc ~= 0 then
hud_msg_subtitle_bottom()
end
--restore pause map...
pause_map_restore()
end