Ejemplo n.º 1
0
 public Frame(UIObject frameParent, Texture2D frameTexture, UDim framePosition, UDim frameSize)
 {
     Parent   = frameParent ?? Game1.WINDOW_HANDLE;
     Position = framePosition;
     Size     = frameSize;
     Texture  = frameTexture;
 }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 3
0
 public Button(UIObject buttonParent, Texture2D buttonTexture, UDim buttonPosition, UDim buttonSize, Action buttonOnClick) : this(buttonParent, buttonTexture, buttonPosition, buttonSize, buttonOnClick, 1.0f)
 {
 }