./save_warning.lua

  1. Save_warning_doc_handle = -1 
  2.  
  3. function save_warning_init() 
  4.  
  5. 	Save_warning_doc_handle = vint_document_find("save_warning") 
  6. 	 
  7. 	local autosave_grp_h = vint_object_find("autosave_grp", 0, Save_warning_doc_handle) 
  8. 	local spin_h = vint_object_find("autosave_spin_1", 0, Save_warning_doc_handle) 
  9. 	local text_h = vint_object_find("saving_text", 0, Save_warning_doc_handle) 
  10. 	local spin_size_width, spin_size_height = element_get_actual_size(spin_h) 
  11. 	local text_size_width, text_size_height = element_get_actual_size(text_h) 
  12. 	local total_size = spin_size_width + text_size_width + 12 
  13. 	local x,y = vint_get_property(autosave_grp_h, "anchor") 
  14. 	local position = x - (total_size/2) 
  15. 	vint_set_property(autosave_grp_h, "anchor", position, y) 
  16. 	 
  17. 	--play spin animation 
  18. 	local anim_h = vint_object_find("autosave_loop_anim", 0, Save_warning_doc_handle) 
  19. 	lua_play_anim(anim_h) 
  20. end 
  21.  
  22.  
  23. function save_warning_cleanup() 
  24. end