function vdo_grid_button_init()
end
function vdo_grid_button_cleanup()
end
-- Inherited from Vdo_base_object
Vdo_grid_button = Vdo_base_object:new_base()
-- Sets the check box
function Vdo_grid_button:set_check_box(is_checked,is_locked)
end
--sets the lock icon for the grid button
function Vdo_grid_button:set_lock(is_locked)
end
--sets the icon for the grid button
function Vdo_grid_button:set_icon(new_icon)
--debug_print("vint", "button: Icon is: " .. new_icon .. "\n")
local icon = Vdo_base_object:new("grid_icon", self.handle, self.doc_handle)
icon:set_property("image", new_icon)
end
--sets the icon for the grid button using a crc of the image name
--Used by the mp badge selection screen
function Vdo_grid_button:set_icon_crc(new_icon_crc)
local icon = Vdo_base_object:new("grid_icon", self.handle, self.doc_handle)
icon:set_property("image_crc", new_icon_crc)
end
-- Sets the width of the grid button
function Vdo_grid_button:set_size(width,height)
local icon = Vdo_base_object:new("grid_icon", self.handle, self.doc_handle)
icon:set_screen_size(width, height)
end
-- Sets the highlighted state of the grid button to on or off
function Vdo_grid_button:set_highlight(is_highlighted)
local icon = Vdo_base_object:new("grid_icon", self.handle, self.doc_handle)
local main = Vdo_base_object:new("safe_frame", self.handle, self.doc_handle)
if is_highlighted then
icon:set_alpha(1.0)
main:set_property("alpha",1.0)
--main:set_property("scale",1.1,1.1)
--main:set_property("anchor",-5,-5)
else
--icon:set_alpha(0.4)
--main:set_property("alpha",0.4)
--main:set_property("scale",1,1)
--main:set_property("anchor",0,0)
end
end
function Vdo_grid_button:set_highlight_color()
end