forked from TypesettingTools/Aegisub
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
1,300 additions
and
11 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
Automation 4 Gui Functions | ||
|
||
This document describes the available Automation 4 functions for | ||
controlling the editor's graphical interface. These all reside in the | ||
table aegisub.gui . | ||
|
||
--- | ||
|
||
Getting and setting the selection and cursor in the text edit box | ||
|
||
This set of functions controls the selection in the text edit box. | ||
All indices are counted starting from 1, following Lua conventions. | ||
The setter functions are applied after all subtitle changes have been | ||
applied. Only the latest update is applied. | ||
The getter functions return the state after the latest update by | ||
the setter functions, or the original state if there were none. | ||
|
||
|
||
function aegisub.gui.get_cursor() | ||
|
||
Returns: 1 number | ||
1. The position of the cursor in the text edit field. | ||
|
||
--- | ||
|
||
function aegisub.get_selection() | ||
|
||
Returns: 2 values, all numbers. | ||
1. Starting position of the selection. | ||
2. Ending position of the selection, always larger or equal | ||
than the stating position. | ||
|
||
--- | ||
|
||
function aegisub.gui.set_cursor(position) | ||
|
||
@position (number) | ||
The new position of the cursor. | ||
|
||
Returns: 0 values | ||
|
||
--- | ||
|
||
function aegisub.gui.set_selection(start, end) | ||
|
||
@start (number) | ||
The new start of the selection. | ||
|
||
@end (number) | ||
The new end of the selection, i.e. where the cursor will be. | ||
Can be smaller than the start, in which case the cursor will | ||
be on the left side of the selection. | ||
|
||
Returns: 0 values | ||
|
||
--- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.