public GUIText() { gameObject = GamePullController.CreateText(); OnLanguageChange(); GUIController.Add(this); isClickable = false; }
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 GUIImage(bool make = true) { if (make) { gameObject = GamePullController.CreateImage(); GUIController.Add(this); isClickable = false; } }
public GUIButtonAlpha() : base(false) { gameObject = GamePullController.CreateButtonAlpha(); animation = new ObjectAnimation(gameObject); isClickable = true; GUIController.Add(gameObject, this); }
public GUIImageAlpha(bool _isExpensive = false) : base(false) { if (isExpensive) { gameObject = GamePullController.CreateImageAlphaExpensive(); } else { gameObject = GamePullController.CreateImageAlpha(); } isExpensive = _isExpensive; GUIController.Add(this); }