./ss_grid.lua

  1. function ss_grid_init() 
  2. 	ss_grid_vehicle() 
  3. end 
  4.  
  5. function ss_grid_cleanup() 
  6. end 
  7.  
  8. function ss_grid_vehicle() 
  9. 	local thirds = vint_object_find("thirds") 
  10. 	vint_set_property(thirds, "visible", false) 
  11. 	local golden_ratio = vint_object_find("golden_ratio") 
  12. 	vint_set_property(golden_ratio, "visible", false) 
  13. 	local center = vint_object_find("center") 
  14. 	vint_set_property(center, "visible", false) 
  15. 	local vehicle = vint_object_find("vehicle") 
  16. 	vint_set_property(vehicle, "visible", true) 
  17. end 
  18.  
  19. function ss_grid_golden_ratio() 
  20. 	local thirds = vint_object_find("thirds") 
  21. 	vint_set_property(thirds, "visible", false) 
  22. 	local golden_ratio = vint_object_find("golden_ratio") 
  23. 	vint_set_property(golden_ratio, "visible", true) 
  24. 	local center = vint_object_find("center") 
  25. 	vint_set_property(center, "visible", true) 
  26. 	local vehicle = vint_object_find("vehicle") 
  27. 	vint_set_property(vehicle, "visible", false) 
  28. end 
  29.  
  30. function ss_grid_thirds() 
  31. 	local thirds = vint_object_find("thirds") 
  32. 	vint_set_property(thirds, "visible", true) 
  33. 	local golden_ratio = vint_object_find("golden_ratio") 
  34. 	vint_set_property(golden_ratio, "visible", false) 
  35. 	local center = vint_object_find("center") 
  36. 	vint_set_property(center, "visible", true) 
  37. 	local vehicle = vint_object_find("vehicle") 
  38. 	vint_set_property(vehicle, "visible", false) 
  39. 	 
  40. end 
  41.  
  42. function ss_grid_hide() 
  43. 	local thirds = vint_object_find("thirds") 
  44. 	vint_set_property(thirds, "visible", false) 
  45. 	local golden_ratio = vint_object_find("golden_ratio") 
  46. 	vint_set_property(golden_ratio, "visible", false) 
  47. 	local center = vint_object_find("center") 
  48. 	vint_set_property(center, "visible", false) 
  49. 	local vehicle = vint_object_find("vehicle") 
  50. 	vint_set_property(vehicle, "visible", false) 
  51. end