Skip to content

Commit

Permalink
fix: remove hardcoded mm suffix on all operator overlay parameter labels
Browse files Browse the repository at this point in the history
  • Loading branch information
tristan-hm committed Jan 29, 2022
1 parent 130f8ef commit c5a253e
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions ring_and_bolt.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,15 +170,15 @@ def draw_text_callback(self):

draw_property(
self,
"Inner Radius: {0:.1f}mm".format(self.inner_radius * 1000),
"Alt (±{0:.1f}mm) | Shift + Alt (±{1:.1f}mm)".format(self.base_inner_radius_factor * 1000, (self.base_inner_radius_factor / 10) * 1000),
"Inner Radius: {0:.1f}".format(self.inner_radius * 1000),
"Alt (±{0:.1f}) | Shift + Alt (±{1:.1f})".format(self.base_inner_radius_factor * 1000, (self.base_inner_radius_factor / 10) * 1000),
active=self.key_alt,
alt_mode=self.key_shift_alt)

draw_property(
self,
"Width: {0:.1f}mm".format(self.width * 2000),
"Ctrl (±{0:.1f}mm) | Shift + Ctrl (±{1:.1f}mm)".format(self.base_width_factor * 1000, (self.base_width_factor / 10) * 1000),
"Width: {0:.1f}".format(self.width * 2000),
"Ctrl (±{0:.1f}) | Shift + Ctrl (±{1:.1f})".format(self.base_width_factor * 1000, (self.base_width_factor / 10) * 1000),
active=self.key_ctrl,
alt_mode=self.key_shift_ctrl)

Expand Down
2 changes: 1 addition & 1 deletion screw.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def draw_text_callback(self):
draw_property(
self,
"Offset: {0:.3f}".format(self.offset),
"Ctrl + Alt (±{0:.1f}mm) | Shift + Ctrl + Alt (±{1:.1f}mm)".format(self.base_offset_factor * 1000, (self.base_offset_factor / 10) * 1000),
"Ctrl + Alt (±{0:.1f}) | Shift + Ctrl + Alt (±{1:.1f})".format(self.base_offset_factor * 1000, (self.base_offset_factor / 10) * 1000),
active=self.key_ctrl_alt,
alt_mode=self.key_shift_ctrl_alt)

Expand Down
8 changes: 4 additions & 4 deletions solidify.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ def draw_text_callback(self):

draw_property(
self,
"Thickness: {0:.1f}mm".format(self.thickness * 1000),
"(±{0:.1f}mm) | Shift + (±{1:.1f}mm)".format(self.base_thickness_factor * 1000, (self.base_thickness_factor / 10) * 1000),
"Thickness: {0:.1f}".format(self.thickness * 1000),
"(±{0:.1f}) | Shift + (±{1:.1f})".format(self.base_thickness_factor * 1000, (self.base_thickness_factor / 10) * 1000),
active=self.key_no_modifiers,
alt_mode=self.key_shift_no_modifiers)

Expand All @@ -151,8 +151,8 @@ def draw_text_callback(self):

draw_property(
self,
"Offset: {0:.1f}mm".format(self.offset * 1000),
"Ctrl (±{0:.1f}mm) | Shift + Ctrl (±{1:.1f}mm)".format(self.base_offset_factor * 1000, (self.base_offset_factor / 10) * 1000),
"Offset: {0:.1f}".format(self.offset * 1000),
"Ctrl (±{0:.1f}) | Shift + Ctrl (±{1:.1f})".format(self.base_offset_factor * 1000, (self.base_offset_factor / 10) * 1000),
active=self.key_ctrl,
alt_mode=self.key_shift_ctrl)

Expand Down
4 changes: 2 additions & 2 deletions vertex_bevel.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ def draw_text_callback(self):

draw_property(
self,
"Width: {0:.1f}mm".format(self.width * 1000),
"Alt (±{0:.1f}mm) | Shift + Alt (±{1:.1f}mm)".format(self.base_width_factor * 1000, (self.base_width_factor / 10) * 1000),
"Width: {0:.1f}".format(self.width * 1000),
"Alt (±{0:.1f}) | Shift + Alt (±{1:.1f})".format(self.base_width_factor * 1000, (self.base_width_factor / 10) * 1000),
active=self.key_alt,
alt_mode=self.key_shift_alt)

Expand Down
4 changes: 2 additions & 2 deletions weighted_normal_bevel.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ def draw_text_callback(self):

draw_property(
self,
"Width: {0:.1f}mm".format(self.width * 1000),
"(±{0:.1f}mm) | Shift (±{1:.1f}mm)".format(self.base_width_factor * 1000, (self.base_width_factor / 10) * 1000),
"Width: {0:.1f}".format(self.width * 1000),
"(±{0:.1f}) | Shift (±{1:.1f})".format(self.base_width_factor * 1000, (self.base_width_factor / 10) * 1000),
active=True,
alt_mode=self.key_shift_no_modifiers)

Expand Down

0 comments on commit c5a253e

Please sign in to comment.