Refactor polyline tool instructions.

Follows 8fc0d7a808
This commit is contained in:
Bruno Perdigão
2025-01-23 09:27:14 -03:00
parent 88dc9d7633
commit 8b678309fd
3 changed files with 54 additions and 39 deletions
@@ -433,6 +433,18 @@ class DrawPolylineWall(bpy.types.Operator, PolylineOperator):
"""
self.handle_instructions(context, wall_config)
custom_instructions = {
'Choose Axis': {'icons':True, 'keys': ['EVENT_X', 'EVENT_Y']}
}
wall_config = [
f"Direction: {props.direction_sense}",
f"Offset Type: {props.offset_type}",
f"Offset Value: {tool.Polyline.format_input_ui_units(props.offset * self.unit_scale)}",
]
self.handle_instructions(context, custom_instructions, wall_config)
self.handle_mouse_move(context, event, should_round=True)
self.choose_axis(event)