Cte_crack_binoc_doc_handle = -1
local Crack_grp_h = -1
local Crack_02_anim_h = -1
local Crack_black_h = -1
local Crack_white_h = -1
function cte_crack_binoc_init()
pause_map_dump()
-- Delay loading new peg until pause map is fully dumped.
thread_new("cte_crack_binoc_peg_delay_load")
Cte_crack_binoc_doc_handle = vint_document_find("cte_crack_binoc")
Crack_grp_h = vint_object_find("crack_grp", 0, Cte_crack_binoc_doc_handle)
Crack_black_h = vint_object_find("crack_black", 0, Cte_crack_binoc_doc_handle)
Crack_white_h = vint_object_find("crack_white", 0, Cte_crack_binoc_doc_handle)
vint_set_property(Crack_grp_h, "visible", false)
end
function cte_crack_binoc_peg_delay_load()
delay(2)
cte_crack_binoc_peg_load()
end
function cte_crack_binoc_peg_load()
game_peg_load_with_cb("cte_crack_binoc_peg_load_complete",1,"ui_cte_crack")
end
function cte_crack_binoc_peg_load_complete()
vint_set_property(Crack_black_h, "image", "ui_cte_crack")
vint_set_property(Crack_white_h, "image", "ui_cte_crack")
end
function cte_crack_binoc_02out_16()
local crack_02_anim_h = vint_object_find("crack_02_anim", 0, Cte_crack_binoc_doc_handle)
vint_set_property(Crack_grp_h, "visible", true)
lua_play_anim(crack_02_anim_h)
end
function cte_crack_binoc_05out_13()
local crack_05_anim_h = vint_object_find("crack_05_anim", 0, Cte_crack_binoc_doc_handle)
vint_set_property(Crack_grp_h, "visible", true)
lua_play_anim(crack_05_anim_h)
end
function cte_crack_binoc_cleanup()
game_peg_unload("ui_cte_crack")
pause_map_restore()
end