./genki_news.lua

  1. Genki_news_doc_handle = -1 
  2.  
  3. local Bottom_grp_h = -1 
  4. local Words_grp_h = -1 
  5. local Image_grp_h = -1 
  6. local Ticker_txt_h = -1 
  7.  
  8. local Anim_in_h = -1 
  9. local Anim_out_h = -1 
  10. local Ticker_anim_h = -1 
  11. local Image_down_anim_h = -1 
  12. local Image_up_anim_h = -1 
  13. local Words_anim_h = -1 
  14.  
  15.  
  16. function genki_news_init() 
  17. 	 
  18. 	Genki_news_doc_handle = vint_document_find("genki_news") 
  19. 	 
  20. 	Bottom_grp_h = vint_object_find("bottom_grp", 0, Genki_news_doc_handle) 
  21. 	Words_grp_h = vint_object_find("words_grp", 0, Genki_news_doc_handle) 
  22. 	Image_grp_h = vint_object_find("image_grp", 0, Genki_news_doc_handle) 
  23. 	Ticker_txt_h = vint_object_find("ticker_txt", 0, Genki_news_doc_handle) 
  24. 	 
  25. 	Anim_in_h = vint_object_find("anim_in") 
  26. 	Anim_out_h = vint_object_find("anim_out") 
  27. 	Ticker_anim_h = vint_object_find("ticker_anim") 
  28. 	Image_down_anim_h = vint_object_find("image_down_anim") 
  29. 	Image_up_anim_h = vint_object_find("image_up_anim") 
  30. 	Words_anim_h = vint_object_find("words_anim") 
  31. 	 
  32. 	 
  33. 	vint_set_property(Image_grp_h, "visible", false) 
  34. 	vint_set_property(Bottom_grp_h, "visible", false) 
  35. 	vint_set_property(Words_grp_h, "visible", false) 
  36. 	 
  37. 	 
  38. 	 
  39. 	--Dump pause map... 
  40. 	pause_map_dump() 
  41. end 
  42.  
  43. function genki_news_1() 
  44. 	vint_set_property(Words_grp_h, "visible", false) 
  45. 	vint_set_property(Image_grp_h, "visible", false) 
  46. 	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...") 
  47. 	vint_set_property(Bottom_grp_h, "visible", true) 
  48. 	vint_apply_start_values(Anim_in_h) 
  49. 	vint_apply_start_values(Ticker_anim_h) 
  50. 	lua_play_anim(Anim_in_h) 
  51. 	lua_play_anim(Ticker_anim_h) 
  52. 	if Hud_msg_doc ~= nil or Hud_msg_doc ~= 0 then 
  53. 		hud_msg_subtitle_top() 
  54. 	end 
  55. end 
  56.  
  57. function genki_news_5() 
  58. 	vint_set_property(Words_grp_h, "visible", true) 
  59. 	vint_apply_start_values(Words_anim_h) 
  60. 	lua_play_anim(Words_anim_h) 
  61. end 
  62.  
  63. function genki_news_6() 
  64. 	vint_set_property(Image_grp_h, "visible", true) 
  65. 	vint_apply_start_values(Image_down_anim_h) 
  66. 	lua_play_anim(Image_down_anim_h) 
  67. end 
  68.  
  69. function genki_news_7() 
  70. 	vint_set_property(Image_grp_h, "visible", false) 
  71. end 
  72.  
  73. function genki_news_8() 
  74. 	vint_set_property(Image_grp_h, "visible", true) 
  75. 	vint_apply_start_values(Image_up_anim_h) 
  76. 	lua_play_anim(Image_up_anim_h) 
  77. end 
  78.  
  79. function genki_news_12() 
  80. 	vint_apply_start_values(Anim_out_h) 
  81. 	lua_play_anim(Anim_out_h) 
  82. end 
  83.  
  84. function genki_news_cleanup() 
  85. 	if Hud_msg_doc ~= nil or Hud_msg_doc ~= 0 then 
  86. 		hud_msg_subtitle_bottom() 
  87. 	end 
  88. 	 
  89. 	--restore pause map... 
  90. 	pause_map_restore() 
  91. end 
  92.