public Frame(UIObject frameParent, Texture2D frameTexture, UDim framePosition, UDim frameSize) { Parent = frameParent ?? Game1.WINDOW_HANDLE; Position = framePosition; Size = frameSize; Texture = frameTexture; }
public Button(UIObject buttonParent, Texture2D buttonTexture, UDim buttonPosition, UDim buttonSize, Action buttonOnClick, float buttonDebounce) { Parent = buttonParent ?? Game1.WINDOW_HANDLE; Position = buttonPosition; Size = buttonSize; OnClick = buttonOnClick; Texture = buttonTexture; clickDebounce = buttonDebounce; }
public Button(UIObject buttonParent, Texture2D buttonTexture, UDim buttonPosition, UDim buttonSize, Action buttonOnClick) : this(buttonParent, buttonTexture, buttonPosition, buttonSize, buttonOnClick, 1.0f) { }