public GUIButtonAlpha(string _texture, float?leftPos, float?topPos, float?rightPos, float?botPos, float widthInPixels, float heightInPixels, float _layer = 0, bool _useScale = false) : base(false) { gameObject = GamePullController.CreateButtonAlpha(); animation = new ObjectAnimation(gameObject); layer = _layer; useScale = _useScale; textureName = _texture; sizeInPixels = new Vector2(widthInPixels, heightInPixels); if (leftPos != null) { left = leftPos; } if (topPos != null) { top = topPos; } if (rightPos != null) { right = rightPos; } if (botPos != null) { bottom = botPos; } isClickable = true; GUIController.Add(gameObject, this); }
public GUIButtonAlpha() : base(false) { gameObject = GamePullController.CreateButtonAlpha(); animation = new ObjectAnimation(gameObject); isClickable = true; GUIController.Add(gameObject, this); }