Attaching a function to a button without an icon, Creating multiple nodes with one function – Apple Shake 4 User Manual
Page 377
![background image](/manuals/547483/377/background.png)
Chapter 14
Customizing Shake
377
•
The file name is TabName.Whatever.nri. This example is therefore called
Image.Flock.nri.
•
The icon border is added automatically by Shake.
The section that says Flock(0,0,0) is the function of what that button actually does. You
can assign any function to these—read in scripts, call multiple nodes, and so on. If the
function does not have default values for its parameters, they must be provided here.
Attaching a Function to a Button Without an Icon
In the ui directory:
nuiPushToolBox(“Image”);
nuiToolBoxItem(“@Flock”, Flock(0,0,0));
nuiPopToolBox();
Note the @ sign before the icon name. This creates a button with whatever text you
supply.
Creating Multiple Nodes With One Function
In the ui directory:
nuiToolBoxItem(
“QuickShape”,
Blur(QuickShape())
);