public GUIButtonBase(GUIButtonData data, Action<GUIButtonBase> buttonAction) : base(data.rect) { text = data.text; usePersonalArea = data.usePersonalArea; anchor.Set(data.anchor); SetSelectable(data.isSelectable); OnButtonPressed += buttonAction; }
public GUIButtonData(GUIButtonData dataToCopy) { icon = dataToCopy.icon; text = dataToCopy.text; anchor = dataToCopy.anchor; isSelectable = dataToCopy.isSelectable; usePersonalArea = dataToCopy.usePersonalArea; x = dataToCopy.x; y = dataToCopy.y; width = dataToCopy.width; height = dataToCopy.height; }
public GUIButtonBase(GUIButtonData data) : this(data,null) { }
public GUISquareButton(GUIButtonData data, float aSize) : base(data) { width.AddBehavior(ResetLayoutOptions); height.AddBehavior(ResetLayoutOptions); size = aSize; ResetLayoutOptions(); }
public GUIButtonIcon(GUIButtonData data) : base(data) { icon = data.icon; }