public static IDraw Button(this IDraw draw, string buttonText, Action buttonAction, GUIStyle style = null, Color?color = null, bool lossFocus = false, float?height = null, float?maxHeight = null, float?minHeight = null, bool?expandHeight = null, float?width = null, float?maxWidth = null, float?minWidth = null, bool?expandWidth = null) { var opts = LayoutOptionsCache.ExtractLayoutOptions(height, maxHeight, minHeight, expandHeight, width, maxWidth, minWidth, expandWidth); ButtonDraw.Draw(buttonText, buttonAction, style, opts, color, lossFocus); return(draw); }
public static IDraw S_Button(this IDraw draw, string buttonText, Action buttonAction, GUIStyle style = null, Color?color = null, bool lossFocus = false) { ButtonDraw.Draw(buttonText, buttonAction, style, null, color, lossFocus); return(draw); }