sr2lua/ss_grid.lua

  1. function ss_grid_init() 
  2. end 
  3.  
  4. function ss_grid_cleanup() 
  5. end 
  6.  
  7.  
  8. function ss_grid_golden_ratio() 
  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", true) 
  13. end 
  14.  
  15. function ss_grid_thirds() 
  16. 	local thirds = vint_object_find("thirds") 
  17. 	vint_set_property(thirds, "visible", true) 
  18. 	local golden_ratio = vint_object_find("golden_ratio") 
  19. 	vint_set_property(golden_ratio, "visible", false) 
  20. end 
  21.  
  22. function ss_grid_hide() 
  23. 	local thirds = vint_object_find("thirds") 
  24. 	vint_set_property(thirds, "visible", false) 
  25. 	local golden_ratio = vint_object_find("golden_ratio") 
  26. 	vint_set_property(golden_ratio, "visible", false) 
  27. end