Cte_binoc_only_doc_handle = -1
local Binoc_grp_h = -1
local Binoc_h = -1
function cte_binoc_only_init()
pause_map_dump()
-- Delay loading new peg until pause map is fully dumped.
thread_new("cte_binoc_only_peg_delay_load")
Cte_binoc_only_doc_handle = vint_document_find("cte_binoc_only")
Binoc_grp_h = vint_object_find("binoc_grp", 0, Cte_binoc_only_doc_handle)
Binoc_h = vint_object_find("binoc", 0, Cte_binoc_only_doc_handle)
vint_set_property(Binoc_grp_h, "visible", false)
end
function cte_binoc_only_peg_delay_load()
delay(2)
cte_binoc_only_peg_load()
end
function cte_binoc_only_peg_load()
game_peg_load_with_cb("cte_binoc_only_peg_load_complete",1,"ui_cte_binoc")
end
function cte_binoc_only_peg_load_complete()
vint_set_property(Binoc_h, "image", "ui_cte_binoc")
end
--binoc
function cte_binoc_only_on()
vint_set_property(Binoc_grp_h, "visible", true)
end
function cte_binoc_only_off()
vint_set_property(Binoc_grp_h, "visible", false)
end
function cte_binoc_only_cleanup()
game_peg_unload("ui_cte_binoc")
pause_map_restore()
end