enablespriteaction
Enable or disable a sprite action, name, in the Compose user interface. enablespriteaction is only available in the Compose GUI.
Syntax
enablespriteaction(name, enable)
Inputs
- name
- The name of the sprite action.
- enable
- True or false flag.
Examples
addribbonpagegroup('Test2','Comments');
addspriteactiongroup('Test2', 'Comments', 'TestSG4', 'Uncomment',0,80);
movesprite('TestSG4', 0, -5);
addspriteaction('TestSG4', 'TestActionLabel4','TestAction4','HandleUncomment', 'Uncomment-80.png','','',true);
addspriteactiongroup('Test2', 'Comments', 'TestSG5', 'Comment',0,80);
movesprite('TestSG5', -10, -5);
addspriteaction('TestSG5', 'TestActionLabel5','TestAction5','HandleComment', 'Comment-80.png','','',true);
function HandleUncomment()
disp('Uncomment is handled');
end
function HandleComment()
disp('Comment is handled');
end
enablespriteaction('TestActionLabel5', false);