showspriteaction
Show or hide a sprite action, name, in the Compose user interface. showspriteaction is only available in the Compose GUI.
Syntax
showspriteaction(name, show)
Inputs
- name
- The name of the sprite action.
- show
- True or false flag.
Examples
Show or hide the given sprite
action:
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
showspriteaction('TestActionLabel5', false);