public void SetBounds(int x, int y, int width, int height) { m_Width = width; m_Height = height; DrawType = UISlotsImageDrawTypes.Special; SpecialBounds = new Rectangle(x, y, (int)m_Width, (int)m_Height); }
public UISlotsImage DoubleTextureDraw(int firstDrawX, int firstDrawY, int firstDrawWidth, int firstDrawHeight, int secondDrawX, int secondDrawY, int secondDrawWidth, int secondDrawHeight, bool repeatX, bool repeatY) { DrawType = UISlotsImageDrawTypes.Double; DoubleDrawMargins = new DoubleDrawMargins { FirstX = firstDrawX, FirstY = firstDrawY, FirstWidth = firstDrawWidth, FirstHeight = firstDrawHeight, SecondX = secondDrawX, SecondY = secondDrawY, SecondWidth = secondDrawWidth, SecondHeight = secondDrawHeight }; DoubleDrawMargins.CalculateOrigins(repeatX, repeatY); return(this); }