Genki_news_doc_handle = -1
local Bottom_grp_h = -1
local Words_grp_h = -1
local Image_grp_h = -1
local Ticker_txt_h = -1
local Anim_in_h = -1
local Anim_out_h = -1
local Ticker_anim_h = -1
local Image_down_anim_h = -1
local Image_up_anim_h = -1
local Words_anim_h = -1
function genki_news_init()
Genki_news_doc_handle = vint_document_find("genki_news")
Bottom_grp_h = vint_object_find("bottom_grp", 0, Genki_news_doc_handle)
Words_grp_h = vint_object_find("words_grp", 0, Genki_news_doc_handle)
Image_grp_h = vint_object_find("image_grp", 0, Genki_news_doc_handle)
Ticker_txt_h = vint_object_find("ticker_txt", 0, Genki_news_doc_handle)
Anim_in_h = vint_object_find("anim_in")
Anim_out_h = vint_object_find("anim_out")
Ticker_anim_h = vint_object_find("ticker_anim")
Image_down_anim_h = vint_object_find("image_down_anim")
Image_up_anim_h = vint_object_find("image_up_anim")
Words_anim_h = vint_object_find("words_anim")
vint_set_property(Image_grp_h, "visible", false)
vint_set_property(Bottom_grp_h, "visible", false)
vint_set_property(Words_grp_h, "visible", false)
--Dump pause map...
pause_map_dump()
end
function genki_news_1()
vint_set_property(Words_grp_h, "visible", false)
vint_set_property(Image_grp_h, "visible", false)
vint_set_property(Ticker_txt_h, "text_tag", "... City officials caution residents to avoid going outside during Genkibowl events... Famed director Andy Zhen to begin filming \"Gangstas in Space\" in Steelport next month... Local boy Jimmy Torbitson, age 17, wows record crowd at the Steelport Science Fair... Johnny Gat alive? Rumors circulate about the notorious gangster's fate... Senator Monica Hughes set to announce presidential bid in the near future...")
vint_set_property(Bottom_grp_h, "visible", true)
vint_apply_start_values(Anim_in_h)
vint_apply_start_values(Ticker_anim_h)
lua_play_anim(Anim_in_h)
lua_play_anim(Ticker_anim_h)
if Hud_msg_doc ~= nil or Hud_msg_doc ~= 0 then
hud_msg_subtitle_top()
end
end
function genki_news_5()
vint_set_property(Words_grp_h, "visible", true)
vint_apply_start_values(Words_anim_h)
lua_play_anim(Words_anim_h)
end
function genki_news_6()
vint_set_property(Image_grp_h, "visible", true)
vint_apply_start_values(Image_down_anim_h)
lua_play_anim(Image_down_anim_h)
end
function genki_news_7()
vint_set_property(Image_grp_h, "visible", false)
end
function genki_news_8()
vint_set_property(Image_grp_h, "visible", true)
vint_apply_start_values(Image_up_anim_h)
lua_play_anim(Image_up_anim_h)
end
function genki_news_12()
vint_apply_start_values(Anim_out_h)
lua_play_anim(Anim_out_h)
end
function genki_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