./vdo_spinner.lua

  1. ---------------------------------------------------------------------------  
  2. -- Vdo_spinner 
  3. -- 
  4. -- Spinning image to use when a 3D asset is not loaded yet. 
  5. --------------------------------------------------------------------------- 
  6.  
  7. -- Inherited from Vdo_base_object 
  8. Vdo_spinner = Vdo_base_object:new_base() 
  9.  
  10. function vdo_spinner_init() 
  11. end 
  12.  
  13. function vdo_spinner_cleanup() 
  14. end 
  15.  
  16. function Vdo_spinner:init() 
  17. 	self.spinner_anim_h = vint_object_find("spinner_anim", self.handle) 
  18. 	vint_set_property(self.spinner_anim_h, "target_handle", self.handle) 
  19. 	lua_play_anim(self.spinner_anim_h, 0)	 
  20. end