function vdo_grid_button_canceled()
end
-- Inherited from Vdo_base_object
Vdo_grid_button_canceled = Vdo_base_object:new_base()
function Vdo_grid_button_canceled:init()
self.cancel_status = false
end
--gets the cancel icon status for the grid button
function Vdo_grid_button_canceled:get_cancel_status()
return self.cancel_status
end
--sets the cancel icon status for the grid button
function Vdo_grid_button_canceled:set_cancel(new_status)
local cancel_icon = Vdo_base_object:new("cancel_icon", self.handle, self.doc_handle)
self.cancel_status = new_status
cancel_icon:set_property("visible", self.cancel_status)
end
--toggles the cancel icon for the grid button
function Vdo_grid_button_canceled:toggle_cancel()
self:set_cancel(not self.cancel_status)
end
--sets the icon for the grid button
function Vdo_grid_button_canceled:set_icon(new_icon)
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_canceled: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_canceled:set_size(width,height)
--local lock = Vdo_base_object:new("grid_lock", self.handle, self.doc_handle)
local icon = Vdo_base_object:new("grid_icon", self.handle, self.doc_handle)
end
-- Sets the highlighted state of the grid button to on or off
function Vdo_grid_button_canceled: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)
else
main:set_property("scale",1,1)
end
end
function Vdo_grid_button_canceled:set_highlight_color()
end