build/EBJB_BattleCommands.rb
def determine_rects(rect, spacing)
    rects = []
    
    # Rects Initialization
    rects[0] = Rect.new(rect.x,rect.y,rect.width,rect.height)
    rects[1] = Rect.new(rect.x,rect.y,24,rect.height)
    
    # Rects Adjustments
    
    # cCommandName
    # Nothing to do
    
    # cArrow
    rects[1].x += rect.width - rects[1].width
    
    return rects
  end
#--------------------------------------------------------------------------
# * Determine rectangles to positions controls in the user control
#     rect : base rectangle to position the controls
#     spacing : spacing between controls
#--------------------------------------------------------------------------
Determine rectangles to positions controls in the user control
rect : base rectangle to position the controls
spacing : spacing between controls
Determine rectangles to positions controls in the user control rect : base rectangle to position the controls spacing : spacing between controls
def determine_rects(rect, spacing)
    rects = []
    rects[0] = Rect.new(rect.x,rect.y,rect.width,rect.height)
    rects[1] = Rect.new(rect.x,rect.y,24,rect.height)
    rects[1].x += rect.width - rects[1].width
    return rects
  end
def determine_rects ( rect , spacing ) rects = [ ] rects [ 0 ] = Rect . new ( rect . x , rect . y , rect . width , rect . height ) rects [ 1 ] = Rect . new ( rect . x , rect . y , 24 , rect . height ) rects [ 1 ] . x += rect . width - rects [ 1 ] . width return rects end
Determine rectangles to positions controls in the user control
rect : base rectangle to position the controls
spacing : spacing between controls
Determine rectangles to positions controls in the user control rect : base rectangle to position the controls spacing : spacing between controls
# Rects Initialization # Rects Adjustments # cCommandName # Nothing to do # cArrow
rect
spacing