toolbar standardgui - Mud-H/TorqueLab GitHub Wiki
new GuiIconButtonCtrl() {
internalName = "MyIconCodeName";
superClass = "ToolbarIcon";
iconBitmap = "tlab/art/icons/generic/base/my_icon_path.png";
command = "DoThis.onPressed($ThisControl);";
tooltip = "This is what people see when hovering my icon.";
//Optional fields
buttonType = "ToggleButton"; //Optional default
buttonMargin = "1 1"; //Adjust the icon margin
sizeIconToButton = "0";// Make your icon fit in button. (For larger icons)
makeIconSquare = "0"; //Force the icon to be square
autoSize = "0";
};
Some other parameters are controlled by TorqueLab and would be overwritten with the defaults.
//
iconLocation = "Center";
textLocation = "Left";
textMargin = "4";
groupNum = "-1";
useMouseEvents = "1";
position = "8 0";
extent = "30 32";
minExtent = "8 2";
horizSizing = "right";
vertSizing = "bottom";
profile = "ToolsIconButton";
visible = "1";
active = "1";
tooltipProfile = "ToolsToolTipProfile";
hovertime = "1000";
isContainer = "0";
canSave = "1";
canSaveDynamicFields = "1";