-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor text setting methods and remove ldoc files
- Loading branch information
Showing
26 changed files
with
158 additions
and
544 deletions.
There are no files selected for viewing
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
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
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
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
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 |
---|---|---|
@@ -1,2 +1,55 @@ | ||
---@class druid.widget: druid.base_component | ||
---@field druid druid_instance | ||
---@field druid druid_instance | ||
|
||
---@class GUITextMetrics | ||
---@field width number | ||
---@field height number | ||
---@field max_ascent number | ||
---@field max_descent number | ||
|
||
---@class utf8 | ||
---@field len fun(s: string):number | ||
---@field sub fun(s: string, start_index: number, length: number) | ||
---@field reverse fun() | ||
---@field char fun() | ||
---@field unicode fun() | ||
---@field gensub fun() | ||
---@field byte fun() | ||
---@field find fun() | ||
---@field match fun(s: string, m: string) | ||
---@field gmatch fun(s: string, m: string) | ||
---@field gsub fun() | ||
---@field dump fun() | ||
---@field format fun() | ||
---@field lower fun() | ||
---@field upper fun() | ||
---@field rep fun() | ||
|
||
---@class action | ||
---@field value number The amount of input given by the user. This is usually 1 for buttons and 0-1 for analogue inputs. This is not present for mouse movement. | ||
---@field pressed boolean If the input was pressed this frame. This is not present for mouse movement. | ||
---@field released boolean If the input was released this frame. This is not present for mouse movement. | ||
---@field repeated boolean If the input was repeated this frame. This is similar to how a key on a keyboard is repeated when you hold it down. This is not present for mouse movement. | ||
---@field x number The x value of a pointer device, if present. | ||
---@field y number The y value of a pointer device, if present. | ||
---@field screen_x number The screen space x value of a pointer device, if present. | ||
---@field screen_y number The screen space y value of a pointer device, if present. | ||
---@field dx number The change in x value of a pointer device, if present. | ||
---@field dy number The change in y value of a pointer device, if present. | ||
---@field screen_dx number The change in screen space x value of a pointer device, if present. | ||
---@field screen_dy number The change in screen space y value of a pointer device, if present. | ||
---@field gamepad number The index of the gamepad device that provided the input. | ||
---@field touch touch[] List of touch input, one element per finger, if present. See table below about touch input | ||
|
||
---@class touch | ||
---@field id number A number identifying the touch input during its duration. | ||
---@field pressed boolean True if the finger was pressed this frame. | ||
---@field released boolean True if the finger was released this frame. | ||
---@field tap_count number Number of taps, one for single, two for double-tap, etc | ||
---@field x number The x touch location. | ||
---@field y number The y touch location. | ||
---@field dx number The change in x value. | ||
---@field dy number The change in y value. | ||
---@field acc_x number|nil Accelerometer x value (if present). | ||
---@field acc_y number|nil Accelerometer y value (if present). | ||
---@field acc_z number|nil Accelerometer z value (if present). |
Oops, something went wrong.