Save_warning_doc_handle = -1
function save_warning_init()
Save_warning_doc_handle = vint_document_find("save_warning")
local autosave_grp_h = vint_object_find("autosave_grp", 0, Save_warning_doc_handle)
local spin_h = vint_object_find("autosave_spin_1", 0, Save_warning_doc_handle)
local text_h = vint_object_find("saving_text", 0, Save_warning_doc_handle)
local spin_size_width, spin_size_height = element_get_actual_size(spin_h)
local text_size_width, text_size_height = element_get_actual_size(text_h)
local total_size = spin_size_width + text_size_width + 12
local x,y = vint_get_property(autosave_grp_h, "anchor")
local position = x - (total_size/2)
vint_set_property(autosave_grp_h, "anchor", position, y)
--play spin animation
local save_anim_h = vint_object_find("autosave_loop_anim", 0, Save_warning_doc_handle)
local flow_anim_h = vint_object_find("flow_anim", 0, Save_warning_doc_handle)
lua_play_anim(save_anim_h)
lua_play_anim(flow_anim_h)
end
function save_warning_cleanup()
end