build/EBJB_BattleCommands.rb
#--------------------------------------------------------------------------
# * 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,24,rect.height)
    rects[1] = Rect.new(rect.x,rect.y,rect.width,rect.height)
    rects[2] = Rect.new(rect.x,rect.y,32,rect.height)
    rects[1].x += rects[0].width
    rects[1].width = rect.width - rects[0].width - rects[2].width - spacing
    rects[2].x += rect.width - rects[2].width
    return rects
  end
def determine_rects ( rect , spacing ) rects = [ ] rects [ 0 ] = Rect . new ( rect . x , rect . y , 24 , rect . height ) rects [ 1 ] = Rect . new ( rect . x , rect . y , rect . width , rect . height ) rects [ 2 ] = Rect . new ( rect . x , rect . y , 32 , rect . height ) rects [ 1 ] . x += rects [ 0 ] . width rects [ 1 ] . width = rect . width - rects [ 0 ] . width - rects [ 2 ] . width - spacing rects [ 2 ] . x += rect . width - rects [ 2 ] . 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 # ucIcon # Nothing to do # cSkillName # cSkillMpCost
rect
<not_specific>
spacing
<not_specific>