sr2lua/cte_news6.lua

  1. Cte_news6 = {} 
  2. CTE_NEWS6_DOC_HANDLE = -1 
  3. function cte_news6_init() 
  4. 	CTE_NEWS6_DOC_HANDLE = vint_document_find("cte_news6") 
  5. 	--vint_set_property(CTE_NEWS6_DOC_HANDLE, "depth", -50) 
  6. 	peg_load("ui_cts_news6") 
  7.  
  8. 	--Store handles 
  9. 	Cte_news6.handles = {} 
  10. 	Cte_news6.handles.logo_grp = vint_object_find("logo_grp") 
  11. 	Cte_news6.handles.main_grp = vint_object_find("main_grp") 
  12. 	Cte_news6.handles.text_ticker = vint_object_find("text_ticker") 
  13. 	 
  14. 	local ticker_string = "Ultor Breaks New Grounds In Controling Gang Violence : Rim Jobs Offers Ways to Customize Cars : Superstar Michael Clarke Duncan set to play Benjamin King in upcoming biopic : Image As Designed in malpractice suit : Freckle Bitches Father Disowns : Elysian Fields Trailer Park host features Junk art by local residents : How safe is stilwater water to drink? : Man gets hit with bottle in a bar while watching local news : Mysterious lack of marine life in Stilwater lake :  " 
  15. 	 
  16. 	vint_set_property(Cte_news6.handles.text_ticker, "text_tag", ticker_string) 
  17. 	 
  18. 	--Hide all objects 
  19. 	vint_set_property(Cte_news6.handles.logo_grp, "visible", false) 
  20. 	vint_set_property(Cte_news6.handles.main_grp, "visible", false) 
  21. end 
  22.  
  23. function cte_news6_show_logo() 
  24. 	--show logo 
  25. 	vint_set_property(Cte_news6.handles.logo_grp, "visible", true) 
  26. end 
  27.  
  28. function cte_news6_hide_logo() 
  29. 	--show logo 
  30. 	vint_set_property(Cte_news6.handles.logo_grp, "visible", false) 
  31. end 
  32.  
  33. function cte_news6_show_full() 
  34. 	--show logo 
  35. 	vint_set_property(Cte_news6.handles.main_grp, "visible", true) 
  36. end 
  37.  
  38. function cte_news6_hide_full() 
  39. 	--show logo 
  40. 	vint_set_property(Cte_news6.handles.main_grp, "visible", false) 
  41. end 
  42.  
  43. function cte_news6_cleanup() 
  44. 	peg_unload("ui_cts_news6") 
  45. end 
  46.