function watermark_init()
local text_h = vint_object_find("timestamp_txt")
vint_set_property(text_h, "visible", false)
vint_dataresponder_request("build_date_dr", "watermark_set_timestamp", 0)
end
function watermark_set_timestamp(build_name, should_scale)
local scale = .5
local alpha = .7
if should_scale == true then
scale = .25
alpha = .4
end
local timestamp_txt_h = vint_object_find("timestamp_txt")
local values = {
[0] = build_name,
}
local str = vint_insert_values_in_string("PROPERTY OF THQ\nFOR INTERNAL USE ONLY\n{0}", values)
vint_set_property(timestamp_txt_h , "text_tag", str)
vint_set_property(timestamp_txt_h , "text_scale", scale, scale)
vint_set_property(timestamp_txt_h , "alpha", alpha)
vint_set_property(timestamp_txt_h , "visible", true)
end
function watermark_cleanup()
end