Skip to content

Commit b2dac58

Browse files
committed
Shorten tooltips
1 parent 5457413 commit b2dac58

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

spritesheetExporter/ui.py

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ class CommonSettings(QFormLayout):
4444
def __init__(self):
4545
super().__init__()
4646

47-
self.name.setToolTip("The name of the exported spritesheet file")
48-
self.directory.setToolTip("The directory the spritesheet will be exported to")
47+
self.name.setToolTip("Name of the exported spritesheet file")
48+
self.directory.setToolTip("Directory to export the spritesheet to")
4949

50-
self.change_dir.setToolTip("Open a file picker to choose the export directory")
50+
self.change_dir.setToolTip("Open a file picker for the export directory")
5151
self.reset_dir.setToolTip(
5252
"Reset export directory to the current document's directory"
5353
)
@@ -91,12 +91,11 @@ def __init__(self):
9191
self.setCheckable(True)
9292
self.setChecked(False)
9393

94-
self.custom_dir.setToolTip("Manually define the images' export directory")
9594
self.toggle_custom_dir(Qt.Unchecked)
9695
self.custom_dir.stateChanged.connect(self.toggle_custom_dir)
9796

98-
self.directory.setToolTip("The directory the images will be exported to")
99-
self.change_dir.setToolTip("Open a file picker to choose the images directory")
97+
self.directory.setToolTip("Directory the images will be exported to")
98+
self.change_dir.setToolTip("Open a file picker for the images directory")
10099
self.reset_dir.setToolTip("Reset images directory based on the export path")
101100

102101
self.force_new.setToolTip(
@@ -152,10 +151,10 @@ def __init__(self):
152151
self.setHorizontalSpacing(12)
153152

154153
self.h_dir.setChecked(True)
155-
self.h_dir.setToolTip("Order the sprites horizontally")
154+
self.h_dir.setToolTip("Order sprites horizontally")
156155

157156
v_dir = QRadioButton("Vertical")
158-
v_dir.setToolTip("Order the sprites vertically")
157+
v_dir.setToolTip("Order sprites vertically")
159158

160159
self.size.setSpecialValueText("Auto")
161160
self.size.setToolTip("Number of columns or rows in the spritesheet")
@@ -211,7 +210,7 @@ def __init__(self):
211210
self.start.setToolTip("First frame time of the animation (inclusive)")
212211
self.end.setToolTip("Last frame time of the animation (inclusive)")
213212
self.step.setToolTip(
214-
"Only export each 'step' number of frames.\nDefaults to every frame"
213+
"Only export each 'step' numbered frame. Defaults to every frame"
215214
)
216215

217216
self.addRow("Start:", self.start)
@@ -253,7 +252,7 @@ def _make_spin_box(edge: str) -> QSpinBox:
253252
spin_box = QSpinBox(value=0, minimum=-99, maximum=99)
254253
spin_box.setSuffix("px")
255254
spin_box.setToolTip(
256-
f"Pads the {edge} edge of each sprite, or clips it if negative"
255+
f"Pad the {edge} edge of each sprite, or clip it if negative"
257256
)
258257
return spin_box
259258

@@ -290,7 +289,7 @@ def __init__(self):
290289
self.frames.reset_dir.clicked.connect(self.reset_frames_dir)
291290

292291
self.layers_as_animation.setToolTip(
293-
"Whether to treat each layer as a frame instead of using the animation timeline"
292+
"Treat each layer as a frame instead of using the animation timeline"
294293
)
295294

296295
self.dialog_buttons.accepted.connect(self.confirm_button)

0 commit comments

Comments
 (0)