예제 #1
0
 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);
 }
예제 #2
0
 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);
 }