summary refs log blame commit diff stats
path: root/doc/pydoc/ranger.ext.relpath.html
blob: 246c5889cac171d475bda3f2df42bd8e6a0a10b5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
>pending.vertices < 2 then love.graphics.print("* Press 'p' to add a vertex to the rectangle", State.left+30,y) y = y + State.line_height else love.graphics.print('* Release the mouse button to finish drawing the rectangle', State.left+30,y) y = y + State.line_height love.graphics.print("* Press 'p' to replace the second vertex of the rectangle", State.left+30,y) y = y + State.line_height end elseif State.current_drawing_mode == 'square' then if #drawing.pending.vertices < 2 then love.graphics.print("* Press 'p' to add a vertex to the square", State.left+30,y) y = y + State.line_height else love.graphics.print('* Release the mouse button to finish drawing the square', State.left+30,y) y = y + State.line_height love.graphics.print("* Press 'p' to replace the second vertex of the square", State.left+30,y) y = y + State.line_height end end love.graphics.print("* Press 'esc' then release the mouse button to cancel the current shape", State.left+30,y) y = y + State.line_height y = y + State.line_height if State.current_drawing_mode ~= 'line' then love.graphics.print("* Press 'l' to switch to drawing lines", State.left+30,y) y = y + State.line_height end if State.current_drawing_mode ~= 'manhattan' then love.graphics.print("* Press 'm' to switch to drawing horizontal/vertical lines", State.left+30,y) y = y + State.line_height end if State.current_drawing_mode ~= 'circle' then love.graphics.print("* Press 'o' to switch to drawing circles/arcs", State.left+30,y) y = y + State.line_height end if State.current_drawing_mode ~= 'polygon' then love.graphics.print("* Press 'g' to switch to drawing polygons", State.left+30,y) y = y + State.line_height end if State.current_drawing_mode ~= 'rectangle' then love.graphics.print("* Press 'r' to switch to drawing rectangles", State.left+30,y) y = y + State.line_height end if State.current_drawing_mode ~= 'square' then love.graphics.print("* Press 's' to switch to drawing squares", State.left+30,y) y = y + State.line_height end App.color(Help_background_color) love.graphics.rectangle('fill', State.left,line_cache.starty, State.width, math.max(Drawing.pixels(drawing.h, State.width),y-line_cache.starty)) end function current_shape(State, shape) if State.current_drawing_mode == 'freehand' then return 'freehand stroke' elseif State.current_drawing_mode == 'line' then return 'straight line' elseif State.current_drawing_mode == 'manhattan' then return 'horizontal/vertical line' elseif State.current_drawing_mode == 'circle' and shape and shape.start_angle then return 'arc' else return State.current_drawing_mode end end function bullet_indent() return App.width(to_text('* ')) end