Skip to content

Commit 7853b00

Browse files
committed
Minor fixes from #124 review
1 parent bde01ee commit 7853b00

File tree

7 files changed

+17
-19
lines changed

7 files changed

+17
-19
lines changed

api/app_command.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ Executes the given command named `CommandName` with the specified parameters.
137137
* app.command.NewSpriteFromSelection
138138
* Creates a new sprite from the current selection mask
139139
* app.command.OpenBrowser <sup>[[UI]](#requiresUI "Requires UI")</sup>
140-
* Open the given `filename` in the internal text browser
140+
* Open the given `filename` in the internal text browser
141141
* [app.command.OpenFile](command/OpenFile.md#openfile)
142142
* app.command.OpenGroup
143143
* Opens the active layer group
@@ -197,7 +197,7 @@ Executes the given command named `CommandName` with the specified parameters.
197197
* app.command.SelectionAsGrid
198198
* Set the grid bounds to the current selection mask
199199
* app.command.SetColorSelector <sup>[[UI]](#requiresUI "Requires UI")</sup>
200-
* Changes the color selector to the `type`: "`spectrum`", `"tint-shade-tone"`, `"rgb-wheel"`, `"ryb-wheel"` or `"normal-map-wheel"`
200+
* Changes the color selector to the `type`: `"spectrum"`, `"tint-shade-tone"`, `"rgb-wheel"`, `"ryb-wheel"` or `"normal-map-wheel"`
201201
* [app.command.SetInkType](command/SetInkType.md) <sup>[[UI]](#requiresUI "Requires UI")</sup>
202202
* [app.command.SetLoopSection](command/SetLoopSection.md "Sets the looping property of the given frame range")
203203
* app.command.SetPaletteEntrySize <sup>[[UI]](#requiresUI "Requires UI")</sup>
@@ -260,7 +260,7 @@ Executes the given command named `CommandName` with the specified parameters.
260260
261261
## Error Handling
262262

263-
If the command fails to run or is disabled, it will return `false`.
263+
If the command fails to run or is disabled, it will return `false`.
264264
To check if a command is enabled and can be run, you can use `app.command.[COMMAND NAME].enabled` before calling it.
265265

266266
## Source

api/command/ChangeBrush.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22

33
```lua
44
app.command.ChangeBrush {
5-
change=string
6-
slot=int
5+
change=string
6+
slot=int
77
}
88
```
99

10-
Changes the brush of the active tool
11-
12-
* `change`: Can be: "increment-size", "decrement-size", "increment-angle", "decrement-angle", "flip-x", "flip-y", "flip-d", "rotate-90cw", "custom"
13-
* `slot`: Custom brush slot (optional, only for "custom" change)
10+
Changes the brush of the active tool.
1411

12+
* `change`: Can be `"increment-size"`, `"decrement-size"`, `"increment-angle"`, `"decrement-angle"`, `"flip-x"`, `"flip-y"`, `"flip-d"`, `"rotate-90cw"`, `"custom"`
13+
* `slot`: Custom brush slot (optional, only for `"custom"` change)

api/command/Flip.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ Flips the whole sprite or the current selection mask, either vertically or horiz
1111

1212
Note: When specifying `target=mask` without a UI or with no active mask, the entire sprite will be flipped.
1313

14-
* `target`: Can be `"mask"` or `"sprite"`. Defaults to "`sprite`".
15-
* `change`: Can be `"vertical"` or `"horizontal"`. Defaults to "`horizontal`".
14+
* `target`: Can be `"mask"` or `"sprite"`. Defaults to `"sprite"`.
15+
* `change`: Can be `"vertical"` or `"horizontal"`. Defaults to `"horizontal"`.

api/command/FrameProperties.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ app.command.FrameProperties {
88

99
Shows the Frame Properties dialog
1010

11-
* `target`: Can be `"all"`, `"current"` or the frame number. Defaults to "`all`".
11+
* `target`: Can be `"all"`, `"current"` or the frame number. Defaults to `"current"`.

api/command/FrameTagProperties.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# FrameProperties
1+
# FrameTagProperties
22

33
```lua
4-
app.command.FrameProperties {
4+
app.command.FrameTagProperties {
55
name=string
66
}
77
```
88

99
Shows the Frame Tag Properties dialog for the given name, or the first tag if no name is given.
1010

11-
`name`: Tag name.
11+
`name`: Tag name.

api/command/LoadMask.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@ app.command.LoadMask {
1010
Loads a mask from the given *.msk file.
1111

1212
* `ui`: Shows the file picker dialog with `filename` pre-completed, `true` by default. Set to
13-
`false` to load `filename`directly without user confirmation.
13+
`false` to load `filename` directly without user confirmation.
1414
* `filename`: A path to a *.msk file or a path to pre-load into the file picker dialog.
15-

api/command/Zoom.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ app.command.Zoom {
1010

1111
Performs a zoom on the active editor.
1212

13-
* `action`: One of `"in"`, `"out"`, or "`set`"
13+
* `action`: One of `"in"`, `"out"`, or `"set"`
1414
* `percentage`: The amount to set the zoom to (ignores `action`)
15-
* `focus`: From where we are doing the zoom, can be `center` or `mouse`
15+
* `focus`: From where we are doing the zoom, can be `center` or `mouse`

0 commit comments

Comments
 (0)