public LNNode(SpriteBatchScreen screen, int x, int y, int width, int height) { this.SetLocation(x, y); this._rotation = 0f; this.scale[0] = 1f; this.scale[1] = 1f; this._scale.x = 1f; this._scale.y = 1f; this._alpha = 1f; this._left = 0; this._top = 0; this._screen = screen; this._color = new LColor(0xff, 0xff, 0xff, 0xff); this._actionList = new List <LNAction>(); this._limitMove = true; this._locked = true; this._size_width = width; this._size_height = height; this._screenRect = LSystem.screenRect; if (this._size_width == 0) { this._size_width = 10; } if (this._size_height == 0) { this._size_height = 10; } }
public virtual void SetScreen(SpriteBatchScreen s) { if (s == _screen) { return; } this._screen = s; this._input = s.GetInput(); }
public LNNode(SpriteBatchScreen screen, RectBox rect) : this(screen, rect.X(), rect.Y(), rect.width, rect.height) { }