示例#1
0
 /// <description>
 /// Add a row to the list control.
 /// </description>
 /// <param name="label">The text to display on the row as a label.</param>
 /// <param name="options">A tab separated list of options.</param>
 /// <param name="wrapOptions">Specify true to allow options to wrap at each end or false to prevent wrapping.</param>
 /// <param name="callback">Name of a script function to use as a callback when this row is activated.</param>
 /// <param name="icon">[optional] Index of the icon to use as a marker.</param>
 /// <param name="yPad">[optional] An extra amount of height padding before the row. Does nothing on the first row.</param>
 /// <param name="enabled">[optional] If this row is initially enabled.</param>
 public void AddKeybindRow(string label, string bitmapName, string callback, int icon = -1, int yPad = 0, bool enabled = true, string tooltip = "")
 {
     InternalUnsafeMethods.AddKeybindRow__Args _args = new InternalUnsafeMethods.AddKeybindRow__Args()
     {
         label      = label,
         bitmapName = bitmapName,
         callback   = callback,
         icon       = icon,
         yPad       = yPad,
         enabled    = enabled,
         tooltip    = tooltip,
     };
     InternalUnsafeMethods.AddKeybindRow()(ObjectPtr, _args);
 }