typescript-to-gdscript 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/README.md +229 -103
  2. package/dist/converter/common/index.d.ts +17 -1
  3. package/dist/converter/common/index.d.ts.map +1 -1
  4. package/dist/converter/common/index.js +69 -19
  5. package/dist/converter/common/index.js.map +1 -1
  6. package/dist/converter/ts-to-gd/class-members.d.ts.map +1 -1
  7. package/dist/converter/ts-to-gd/class-members.js +5 -5
  8. package/dist/converter/ts-to-gd/class-members.js.map +1 -1
  9. package/dist/converter/ts-to-gd/expressions.d.ts.map +1 -1
  10. package/dist/converter/ts-to-gd/expressions.js +1 -1
  11. package/dist/converter/ts-to-gd/expressions.js.map +1 -1
  12. package/dist/converter/ts-to-gd/file-scope.d.ts.map +1 -1
  13. package/dist/converter/ts-to-gd/file-scope.js +1 -1
  14. package/dist/converter/ts-to-gd/file-scope.js.map +1 -1
  15. package/dist/converter/ts-to-gd/gd-getset.js +2 -2
  16. package/dist/converter/ts-to-gd/gd-getset.js.map +1 -1
  17. package/dist/converter/ts-to-gd/index.d.ts.map +1 -1
  18. package/dist/converter/ts-to-gd/index.js +1 -0
  19. package/dist/converter/ts-to-gd/index.js.map +1 -1
  20. package/dist/converter/ts-to-gd/parameters.d.ts.map +1 -1
  21. package/dist/converter/ts-to-gd/parameters.js +2 -2
  22. package/dist/converter/ts-to-gd/parameters.js.map +1 -1
  23. package/dist/converter/ts-to-gd/statements.d.ts.map +1 -1
  24. package/dist/converter/ts-to-gd/statements.js +1 -1
  25. package/dist/converter/ts-to-gd/statements.js.map +1 -1
  26. package/dist/typings/override-system.d.ts.map +1 -1
  27. package/dist/typings/override-system.js +6 -0
  28. package/dist/typings/override-system.js.map +1 -1
  29. package/package.json +6 -1
  30. package/typings/classes/AnimationNodeBlendSpace1D.d.ts +2 -17
  31. package/typings/classes/AnimationNodeBlendSpace2D.d.ts +2 -17
  32. package/typings/classes/Area3D.d.ts +7 -14
  33. package/typings/classes/ArrayMesh.d.ts +0 -15
  34. package/typings/classes/AudioEffectAmplify.d.ts +2 -2
  35. package/typings/classes/AudioEffectBandLimitFilter.d.ts +1 -1
  36. package/typings/classes/AudioEffectBandPassFilter.d.ts +1 -1
  37. package/typings/classes/AudioEffectCapture.d.ts +9 -10
  38. package/typings/classes/AudioEffectChorus.d.ts +28 -57
  39. package/typings/classes/AudioEffectCompressor.d.ts +9 -11
  40. package/typings/classes/AudioEffectDelay.d.ts +15 -21
  41. package/typings/classes/AudioEffectDistortion.d.ts +10 -19
  42. package/typings/classes/AudioEffectEQ.d.ts +2 -2
  43. package/typings/classes/AudioEffectEQ10.d.ts +2 -2
  44. package/typings/classes/AudioEffectEQ21.d.ts +2 -2
  45. package/typings/classes/AudioEffectEQ6.d.ts +2 -2
  46. package/typings/classes/AudioEffectFilter.d.ts +9 -25
  47. package/typings/classes/AudioEffectHardLimiter.d.ts +5 -8
  48. package/typings/classes/AudioEffectHighPassFilter.d.ts +1 -1
  49. package/typings/classes/AudioEffectHighShelfFilter.d.ts +1 -1
  50. package/typings/classes/AudioEffectLimiter.d.ts +4 -9
  51. package/typings/classes/AudioEffectLowPassFilter.d.ts +1 -1
  52. package/typings/classes/AudioEffectLowShelfFilter.d.ts +1 -1
  53. package/typings/classes/AudioEffectNotchFilter.d.ts +1 -1
  54. package/typings/classes/AudioEffectPanner.d.ts +2 -7
  55. package/typings/classes/AudioEffectPhaser.d.ts +7 -9
  56. package/typings/classes/AudioEffectPitchShift.d.ts +3 -3
  57. package/typings/classes/AudioEffectReverb.d.ts +8 -17
  58. package/typings/classes/AudioEffectSpectrumAnalyzer.d.ts +5 -4
  59. package/typings/classes/AudioEffectStereoEnhance.d.ts +4 -7
  60. package/typings/classes/AudioServer.d.ts +2 -2
  61. package/typings/classes/AudioStreamPlaybackResampled.d.ts +0 -8
  62. package/typings/classes/BaseButton.d.ts +1 -1
  63. package/typings/classes/Basis.d.ts +0 -4
  64. package/typings/classes/Camera3D.d.ts +1 -1
  65. package/typings/classes/CameraAttributes.d.ts +0 -1
  66. package/typings/classes/CameraFeed.d.ts +0 -4
  67. package/typings/classes/CanvasItem.d.ts +1 -1
  68. package/typings/classes/CodeEdit.d.ts +0 -4
  69. package/typings/classes/CollisionObject2D.d.ts +0 -6
  70. package/typings/classes/CollisionPolygon2D.d.ts +0 -5
  71. package/typings/classes/CollisionShape2D.d.ts +0 -5
  72. package/typings/classes/Container.d.ts +0 -6
  73. package/typings/classes/Control.d.ts +0 -59
  74. package/typings/classes/DPITexture.d.ts +0 -14
  75. package/typings/classes/Decal.d.ts +0 -1
  76. package/typings/classes/Dictionary.d.ts +0 -1
  77. package/typings/classes/DisplayServer.d.ts +1 -128
  78. package/typings/classes/EditorDock.d.ts +2 -8
  79. package/typings/classes/EditorExportPlugin.d.ts +0 -5
  80. package/typings/classes/EditorFileSystem.d.ts +0 -2
  81. package/typings/classes/EditorInterface.d.ts +2 -4
  82. package/typings/classes/EditorSettings.d.ts +133 -197
  83. package/typings/classes/EditorSpinSlider.d.ts +0 -6
  84. package/typings/classes/Environment.d.ts +2 -7
  85. package/typings/classes/FileAccess.d.ts +1 -1
  86. package/typings/classes/FileDialog.d.ts +1 -1
  87. package/typings/classes/FoldableContainer.d.ts +1 -1
  88. package/typings/classes/Font.d.ts +2 -2
  89. package/typings/classes/GPUParticles3D.d.ts +0 -4
  90. package/typings/classes/GeometryInstance3D.d.ts +1 -1
  91. package/typings/classes/GradientTexture2D.d.ts +0 -2
  92. package/typings/classes/Image.d.ts +0 -1
  93. package/typings/classes/ImageTexture.d.ts +2 -0
  94. package/typings/classes/ImporterMesh.d.ts +0 -6
  95. package/typings/classes/Input.d.ts +13 -148
  96. package/typings/classes/InputEvent.d.ts +0 -8
  97. package/typings/classes/InputEventGesture.d.ts +3 -2
  98. package/typings/classes/InputEventMouse.d.ts +3 -2
  99. package/typings/classes/InputEventWithModifiers.d.ts +3 -2
  100. package/typings/classes/InputMap.d.ts +0 -3
  101. package/typings/classes/ItemList.d.ts +2 -9
  102. package/typings/classes/Joint3D.d.ts +0 -1
  103. package/typings/classes/LookAtModifier3D.d.ts +1 -2
  104. package/typings/classes/MainLoop.d.ts +0 -4
  105. package/typings/classes/NativeMenu.d.ts +3 -10
  106. package/typings/classes/Node.d.ts +5 -9
  107. package/typings/classes/OS.d.ts +2 -2
  108. package/typings/classes/Object.d.ts +2 -5
  109. package/typings/classes/OptionButton.d.ts +0 -6
  110. package/typings/classes/PCKPacker.d.ts +0 -4
  111. package/typings/classes/ParticleProcessMaterial.d.ts +0 -5
  112. package/typings/classes/PhysicsDirectBodyState2D.d.ts +1 -2
  113. package/typings/classes/PhysicsDirectBodyState3D.d.ts +1 -2
  114. package/typings/classes/PhysicsServer2D.d.ts +2 -2
  115. package/typings/classes/PhysicsServer2DExtension.d.ts +1 -1
  116. package/typings/classes/PhysicsServer3D.d.ts +42 -145
  117. package/typings/classes/PopupMenu.d.ts +8 -22
  118. package/typings/classes/PopupPanel.d.ts +0 -2
  119. package/typings/classes/PortableCompressedTexture2D.d.ts +2 -0
  120. package/typings/classes/ProjectSettings.d.ts +60 -44
  121. package/typings/classes/RDShaderSPIRV.d.ts +0 -30
  122. package/typings/classes/RDShaderSource.d.ts +0 -10
  123. package/typings/classes/RenderingDevice.d.ts +0 -104
  124. package/typings/classes/RenderingServer.d.ts +11 -213
  125. package/typings/classes/Resource.d.ts +2 -2
  126. package/typings/classes/ResourceImporterDynamicFont.d.ts +1 -3
  127. package/typings/classes/ResourceImporterSVG.d.ts +0 -10
  128. package/typings/classes/ResourceImporterTexture.d.ts +2 -2
  129. package/typings/classes/SceneTree.d.ts +29 -5
  130. package/typings/classes/ScriptEditor.d.ts +0 -6
  131. package/typings/classes/Shader.d.ts +0 -2
  132. package/typings/classes/Shape3D.d.ts +0 -1
  133. package/typings/classes/SplitContainer.d.ts +0 -6
  134. package/typings/classes/String.d.ts +1 -1
  135. package/typings/classes/SubViewport.d.ts +0 -4
  136. package/typings/classes/TextEdit.d.ts +0 -3
  137. package/typings/classes/TextServer.d.ts +0 -2
  138. package/typings/classes/TextServerExtension.d.ts +0 -2
  139. package/typings/classes/Texture2D.d.ts +0 -14
  140. package/typings/classes/TextureRect.d.ts +1 -4
  141. package/typings/classes/Tree.d.ts +2 -9
  142. package/typings/classes/TreeItem.d.ts +0 -8
  143. package/typings/classes/Tween.d.ts +0 -13
  144. package/typings/classes/Viewport.d.ts +0 -10
  145. package/typings/classes/VisualShader.d.ts +0 -2
  146. package/typings/classes/VisualShaderNodeColorFunc.d.ts +2 -2
  147. package/typings/classes/VoxelGIData.d.ts +0 -10
  148. package/typings/classes/Window.d.ts +0 -23
  149. package/typings/classes/XRCamera3D.d.ts +1 -1
  150. package/typings/classes/XRServer.d.ts +0 -2
  151. package/typings/classes/_globals.d.ts +86 -45
  152. package/typings/classes/index.d.ts +0 -5
  153. package/typings/godot-class-registry.json +108 -1254
  154. package/typings/classes/AccessibilityServer.d.ts +0 -405
  155. package/typings/classes/AwaitTweener.d.ts +0 -10
  156. package/typings/classes/BlitMaterial.d.ts +0 -22
  157. package/typings/classes/DrawableTexture2D.d.ts +0 -47
  158. package/typings/classes/VirtualJoystick.d.ts +0 -94
@@ -1,405 +0,0 @@
1
- // AUTO-GENERATED from Godot class documentation.
2
- // Manual overrides applied from typings-overrides/*.d.ts
3
-
4
- /** A server interface for screen reader support. */
5
- declare interface AccessibilityServer extends GodotObject {
6
- /**
7
- * Creates a new, empty accessibility element resource.
8
- * **Note:** An accessibility element is created and freed automatically for each {@link Node}. In general, this function should not be called manually.
9
- */
10
- create_element(window_id: int, role: int): RID;
11
- /**
12
- * Creates a new, empty accessibility sub-element resource. Sub-elements can be used to provide accessibility information for objects which are not {@link Node}s, such as list items, table cells, or menu items. Sub-elements are freed automatically when the parent element is freed, or can be freed early using the {@link free_element} method.
13
- */
14
- create_sub_element(parent_rid: RID, role: int, insert_pos?: int): RID;
15
- /**
16
- * Creates a new, empty accessibility sub-element from the shaped text buffer. Sub-elements are freed automatically when the parent element is freed, or can be freed early using the {@link free_element} method.
17
- * If `is_last_line` is `true`, no trailing newline is appended to the text content. Set to `true` for the last line in multi-line text fields and for single-line text fields.
18
- */
19
- create_sub_text_edit_elements(parent_rid: RID, shaped_text: RID, min_height: float, insert_pos?: int, is_last_line?: boolean): RID;
20
- /** Returns the metadata of the accessibility element `id`. */
21
- element_get_meta(id: RID): unknown;
22
- /** Sets the metadata of the accessibility element `id` to `meta`. */
23
- element_set_meta(id: RID, meta: unknown): void;
24
- /**
25
- * Frees the accessibility element `id` created by {@link create_element}, {@link create_sub_element}, or {@link create_sub_text_edit_elements}.
26
- */
27
- free_element(id: RID): void;
28
- /** Returns the main accessibility element of the OS native window. */
29
- get_window_root(window_id: int): RID;
30
- /** Returns `true` if `id` is a valid accessibility element. */
31
- has_element(id: RID): boolean;
32
- /** Returns `true` if screen reader is support by this implementation. */
33
- is_supported(): boolean;
34
- /**
35
- * Sets the window focused state for assistive apps.
36
- * **Note:** This method is implemented on Linux, macOS, and Windows.
37
- * **Note:** Advanced users only! {@link Window} objects call this method automatically.
38
- */
39
- set_window_focused(window_id: int, focused: boolean): void;
40
- /**
41
- * Sets window outer (with decorations) and inner (without decorations) bounds for assistive apps.
42
- * **Note:** This method is implemented on Linux, macOS, and Windows.
43
- * **Note:** Advanced users only! {@link Window} objects call this method automatically.
44
- */
45
- set_window_rect(window_id: int, rect_out: Rect2 | Rect2i, rect_in: Rect2 | Rect2i): void;
46
- /**
47
- * Adds a callback for the accessibility action (action which can be performed by using a special screen reader command or buttons on the Braille display), and marks this action as supported. The action callback receives one {@link Variant} argument, which value depends on action type.
48
- */
49
- update_add_action(id: RID, action: int, callable: Callable): void;
50
- /**
51
- * Adds a child accessibility element.
52
- * **Note:** {@link Node} children and sub-elements are added to the child list automatically.
53
- */
54
- update_add_child(id: RID, child_id: RID): void;
55
- /**
56
- * Adds support for a custom accessibility action. `action_id` is passed as an argument to the callback of {@link ACTION_CUSTOM} action.
57
- */
58
- update_add_custom_action(id: RID, action_id: int, action_description: string | NodePath): void;
59
- /** Adds an element that is controlled by this element. */
60
- update_add_related_controls(id: RID, related_id: RID): void;
61
- /** Adds an element that describes this element. */
62
- update_add_related_described_by(id: RID, related_id: RID): void;
63
- /** Adds an element that details this element. */
64
- update_add_related_details(id: RID, related_id: RID): void;
65
- /** Adds an element that this element flow into. */
66
- update_add_related_flow_to(id: RID, related_id: RID): void;
67
- /** Adds an element that labels this element. */
68
- update_add_related_labeled_by(id: RID, related_id: RID): void;
69
- /**
70
- * Adds an element that is part of the same radio group.
71
- * **Note:** This method should be called on each element of the group, using all other elements as `related_id`.
72
- */
73
- update_add_related_radio_group(id: RID, related_id: RID): void;
74
- /** Adds an element that is an active descendant of this element. */
75
- update_set_active_descendant(id: RID, other_id: RID): void;
76
- /** Sets element background color. */
77
- update_set_background_color(id: RID, color: Color): void;
78
- /** Sets element bounding box, relative to the node position. */
79
- update_set_bounds(id: RID, p_rect: Rect2 | Rect2i): void;
80
- /** Sets element accessibility label for Braille display. */
81
- update_set_braille_label(id: RID, name: string | NodePath): void;
82
- /** Sets element accessibility role description for Braille display. */
83
- update_set_braille_role_description(id: RID, description: string | NodePath): void;
84
- /** Sets element checked state. */
85
- update_set_checked(id: RID, checekd: boolean): void;
86
- /** Sets element class name. */
87
- update_set_classname(id: RID, classname: string | NodePath): void;
88
- /** Sets element color value. */
89
- update_set_color_value(id: RID, color: Color): void;
90
- /** Sets element accessibility description. */
91
- update_set_description(id: RID, description: string | NodePath): void;
92
- /** Sets an element which contains an error message for this element. */
93
- update_set_error_message(id: RID, other_id: RID): void;
94
- /** Sets element accessibility extra information added to the element name. */
95
- update_set_extra_info(id: RID, name: string | NodePath): void;
96
- /** Sets element flag. */
97
- update_set_flag(id: RID, flag: int, value: boolean): void;
98
- /** Sets currently focused element. */
99
- update_set_focus(id: RID): void;
100
- /** Sets element foreground color. */
101
- update_set_foreground_color(id: RID, color: Color): void;
102
- /** Sets target element for the link. */
103
- update_set_in_page_link_target(id: RID, other_id: RID): void;
104
- /** Sets element text language. */
105
- update_set_language(id: RID, language: string | NodePath): void;
106
- /** Sets number of items in the list. */
107
- update_set_list_item_count(id: RID, size: int): void;
108
- /** Sets list/tree item expanded status. */
109
- update_set_list_item_expanded(id: RID, expanded: boolean): void;
110
- /** Sets the position of the element in the list. */
111
- update_set_list_item_index(id: RID, index: int): void;
112
- /** Sets the hierarchical level of the element in the list. */
113
- update_set_list_item_level(id: RID, level: int): void;
114
- /** Sets list/tree item selected status. */
115
- update_set_list_item_selected(id: RID, selected: boolean): void;
116
- /** Sets the orientation of the list elements. */
117
- update_set_list_orientation(id: RID, vertical: boolean): void;
118
- /** Sets the priority of the live region updates. */
119
- update_set_live(id: RID, live: int): void;
120
- /** Sets the element to be a member of the group. */
121
- update_set_member_of(id: RID, group_id: RID): void;
122
- /** Sets element accessibility name. */
123
- update_set_name(id: RID, name: string | NodePath): void;
124
- /** Sets next element on the line. */
125
- update_set_next_on_line(id: RID, other_id: RID): void;
126
- /** Sets numeric value jump. */
127
- update_set_num_jump(id: RID, jump: float): void;
128
- /** Sets numeric value range. */
129
- update_set_num_range(id: RID, min: float, max: float): void;
130
- /** Sets numeric value step. */
131
- update_set_num_step(id: RID, step: float): void;
132
- /** Sets numeric value. */
133
- update_set_num_value(id: RID, position: float): void;
134
- /** Sets placeholder text. */
135
- update_set_placeholder(id: RID, placeholder: string | NodePath): void;
136
- /** Sets popup type for popup buttons. */
137
- update_set_popup_type(id: RID, popup: int): void;
138
- /** Sets previous element on the line. */
139
- update_set_previous_on_line(id: RID, other_id: RID): void;
140
- /** Sets element accessibility role. */
141
- update_set_role(id: RID, role: int): void;
142
- /** Sets element accessibility role description text. */
143
- update_set_role_description(id: RID, description: string | NodePath): void;
144
- /** Sets scroll bar x position. */
145
- update_set_scroll_x(id: RID, position: float): void;
146
- /** Sets scroll bar x range. */
147
- update_set_scroll_x_range(id: RID, min: float, max: float): void;
148
- /** Sets scroll bar y position. */
149
- update_set_scroll_y(id: RID, position: float): void;
150
- /** Sets scroll bar y range. */
151
- update_set_scroll_y_range(id: RID, min: float, max: float): void;
152
- /** Sets the list of keyboard shortcuts used by element. */
153
- update_set_shortcut(id: RID, shortcut: string | NodePath): void;
154
- /** Sets human-readable description of the current checked state. */
155
- update_set_state_description(id: RID, description: string | NodePath): void;
156
- /** Sets cell position in the table. */
157
- update_set_table_cell_position(id: RID, row_index: int, column_index: int): void;
158
- /** Sets cell row/column span. */
159
- update_set_table_cell_span(id: RID, row_span: int, column_span: int): void;
160
- /** Sets number of columns in the table. */
161
- update_set_table_column_count(id: RID, count: int): void;
162
- /** Sets position of the column. */
163
- update_set_table_column_index(id: RID, index: int): void;
164
- /** Sets number of rows in the table. */
165
- update_set_table_row_count(id: RID, count: int): void;
166
- /** Sets position of the row in the table. */
167
- update_set_table_row_index(id: RID, index: int): void;
168
- /** Sets element text alignment. */
169
- update_set_text_align(id: RID, align: int): void;
170
- /** Sets text underline/overline/strikethrough. */
171
- update_set_text_decorations(id: RID, underline: boolean, strikethrough: boolean, overline: boolean, color?: Color): void;
172
- /** Sets text orientation. */
173
- update_set_text_orientation(id: RID, vertical: boolean): void;
174
- /**
175
- * Sets text selection to the text field. `text_start_id` and `text_end_id` should be elements created by {@link create_sub_text_edit_elements}. Character offsets are relative to the corresponding element.
176
- */
177
- update_set_text_selection(id: RID, text_start_id: RID, start_char: int, text_end_id: RID, end_char: int): void;
178
- /** Sets tooltip text. */
179
- update_set_tooltip(id: RID, tooltip: string | NodePath): void;
180
- /** Sets element 2D transform. */
181
- update_set_transform(id: RID, transform: Transform2D): void;
182
- /** Sets link URL. */
183
- update_set_url(id: RID, url: string | NodePath): void;
184
- /** Sets element text value. */
185
- update_set_value(id: RID, value: string | NodePath): void;
186
-
187
- // enum AccessibilityRole
188
- /** Unknown or custom role. */
189
- readonly ROLE_UNKNOWN: int;
190
- /** Default dialog button element. */
191
- readonly ROLE_DEFAULT_BUTTON: int;
192
- /** Audio player element. */
193
- readonly ROLE_AUDIO: int;
194
- /** Video player element. */
195
- readonly ROLE_VIDEO: int;
196
- /** Non-editable text label. */
197
- readonly ROLE_STATIC_TEXT: int;
198
- /**
199
- * Container element. Elements with this role are used for internal structure and ignored by screen readers.
200
- */
201
- readonly ROLE_CONTAINER: int;
202
- /** Panel container element. */
203
- readonly ROLE_PANEL: int;
204
- /** Button element. */
205
- readonly ROLE_BUTTON: int;
206
- /** Link element. */
207
- readonly ROLE_LINK: int;
208
- /** Check box element. */
209
- readonly ROLE_CHECK_BOX: int;
210
- /** Radio button element. */
211
- readonly ROLE_RADIO_BUTTON: int;
212
- /** Check button element. */
213
- readonly ROLE_CHECK_BUTTON: int;
214
- /** Scroll bar element. */
215
- readonly ROLE_SCROLL_BAR: int;
216
- /** Scroll container element. */
217
- readonly ROLE_SCROLL_VIEW: int;
218
- /** Container splitter handle element. */
219
- readonly ROLE_SPLITTER: int;
220
- /** Slider element. */
221
- readonly ROLE_SLIDER: int;
222
- /** Spin box element. */
223
- readonly ROLE_SPIN_BUTTON: int;
224
- /** Progress indicator element. */
225
- readonly ROLE_PROGRESS_INDICATOR: int;
226
- /** Editable text field element. */
227
- readonly ROLE_TEXT_FIELD: int;
228
- /** Multiline editable text field element. */
229
- readonly ROLE_MULTILINE_TEXT_FIELD: int;
230
- /** Color picker element. */
231
- readonly ROLE_COLOR_PICKER: int;
232
- /** Table element. */
233
- readonly ROLE_TABLE: int;
234
- /** Table/tree cell element. */
235
- readonly ROLE_CELL: int;
236
- /** Table/tree row element. */
237
- readonly ROLE_ROW: int;
238
- /** Table/tree row group element. */
239
- readonly ROLE_ROW_GROUP: int;
240
- /** Table/tree row header element. */
241
- readonly ROLE_ROW_HEADER: int;
242
- /** Table/tree column header element. */
243
- readonly ROLE_COLUMN_HEADER: int;
244
- /** Tree view element. */
245
- readonly ROLE_TREE: int;
246
- /** Tree view item element. */
247
- readonly ROLE_TREE_ITEM: int;
248
- /** List element. */
249
- readonly ROLE_LIST: int;
250
- /** List item element. */
251
- readonly ROLE_LIST_ITEM: int;
252
- /** List view element. */
253
- readonly ROLE_LIST_BOX: int;
254
- /** List view item element. */
255
- readonly ROLE_LIST_BOX_OPTION: int;
256
- /** Tab bar element. */
257
- readonly ROLE_TAB_BAR: int;
258
- /** Tab bar item element. */
259
- readonly ROLE_TAB: int;
260
- /** Tab panel element. */
261
- readonly ROLE_TAB_PANEL: int;
262
- /** Menu bar element. */
263
- readonly ROLE_MENU_BAR: int;
264
- /** Popup menu element. */
265
- readonly ROLE_MENU: int;
266
- /** Popup menu item element. */
267
- readonly ROLE_MENU_ITEM: int;
268
- /** Popup menu check button item element. */
269
- readonly ROLE_MENU_ITEM_CHECK_BOX: int;
270
- /** Popup menu radio button item element. */
271
- readonly ROLE_MENU_ITEM_RADIO: int;
272
- /** Image element. */
273
- readonly ROLE_IMAGE: int;
274
- /** Window element. */
275
- readonly ROLE_WINDOW: int;
276
- /** Embedded window title bar element. */
277
- readonly ROLE_TITLE_BAR: int;
278
- /** Dialog window element. */
279
- readonly ROLE_DIALOG: int;
280
- /** Tooltip element. */
281
- readonly ROLE_TOOLTIP: int;
282
- /** Region/landmark element. Screen readers can navigate between regions using landmark navigation. */
283
- readonly ROLE_REGION: int;
284
- /**
285
- * Unifor text run.
286
- * Note: This role is used for internal text elements, and should not be assigned to nodes.
287
- */
288
- readonly ROLE_TEXT_RUN: int;
289
- // enum AccessibilityPopupType
290
- /** Popup menu. */
291
- readonly POPUP_MENU: int;
292
- /** Popup list. */
293
- readonly POPUP_LIST: int;
294
- /** Popup tree view. */
295
- readonly POPUP_TREE: int;
296
- /** Popup dialog. */
297
- readonly POPUP_DIALOG: int;
298
- // enum AccessibilityFlags
299
- /** Element is hidden for accessibility tools. */
300
- readonly FLAG_HIDDEN: int;
301
- /** Element supports multiple item selection. */
302
- readonly FLAG_MULTISELECTABLE: int;
303
- /** Element require user input. */
304
- readonly FLAG_REQUIRED: int;
305
- /** Element is a visited link. */
306
- readonly FLAG_VISITED: int;
307
- /** Element content is not ready (e.g. loading). */
308
- readonly FLAG_BUSY: int;
309
- /** Element is modal window. */
310
- readonly FLAG_MODAL: int;
311
- /** Element allows touches to be passed through when a screen reader is in touch exploration mode. */
312
- readonly FLAG_TOUCH_PASSTHROUGH: int;
313
- /** Element is text field with selectable but read-only text. */
314
- readonly FLAG_READONLY: int;
315
- /** Element is disabled. */
316
- readonly FLAG_DISABLED: int;
317
- /** Element clips children. */
318
- readonly FLAG_CLIPS_CHILDREN: int;
319
- // enum AccessibilityAction
320
- /** Single click action, callback argument is not set. */
321
- readonly ACTION_CLICK: int;
322
- /** Focus action, callback argument is not set. */
323
- readonly ACTION_FOCUS: int;
324
- /** Blur action, callback argument is not set. */
325
- readonly ACTION_BLUR: int;
326
- /** Collapse action, callback argument is not set. */
327
- readonly ACTION_COLLAPSE: int;
328
- /** Expand action, callback argument is not set. */
329
- readonly ACTION_EXPAND: int;
330
- /** Decrement action, callback argument is not set. */
331
- readonly ACTION_DECREMENT: int;
332
- /** Increment action, callback argument is not set. */
333
- readonly ACTION_INCREMENT: int;
334
- /** Hide tooltip action, callback argument is not set. */
335
- readonly ACTION_HIDE_TOOLTIP: int;
336
- /** Show tooltip action, callback argument is not set. */
337
- readonly ACTION_SHOW_TOOLTIP: int;
338
- /**
339
- * Set text selection action, callback argument is set to {@link Dictionary} with the following keys:
340
- * - `"start_element"` accessibility element of the selection start.
341
- * - `"start_char"` character offset relative to the accessibility element of the selection start.
342
- * - `"end_element"` accessibility element of the selection end.
343
- * - `"end_char"` character offset relative to the accessibility element of the selection end.
344
- */
345
- readonly ACTION_SET_TEXT_SELECTION: int;
346
- /** Replace text action, callback argument is set to {@link String} with the replacement text. */
347
- readonly ACTION_REPLACE_SELECTED_TEXT: int;
348
- /** Scroll backward action, callback argument is not set. */
349
- readonly ACTION_SCROLL_BACKWARD: int;
350
- /** Scroll down action, callback argument is set to {@link AccessibilityScrollUnit}. */
351
- readonly ACTION_SCROLL_DOWN: int;
352
- /** Scroll forward action, callback argument is not set. */
353
- readonly ACTION_SCROLL_FORWARD: int;
354
- /** Scroll left action, callback argument is set to {@link AccessibilityScrollUnit}. */
355
- readonly ACTION_SCROLL_LEFT: int;
356
- /** Scroll right action, callback argument is set to {@link AccessibilityScrollUnit}. */
357
- readonly ACTION_SCROLL_RIGHT: int;
358
- /** Scroll up action, callback argument is set to {@link AccessibilityScrollUnit}. */
359
- readonly ACTION_SCROLL_UP: int;
360
- /** Scroll into view action, callback argument is set to {@link AccessibilityScrollHint}. */
361
- readonly ACTION_SCROLL_INTO_VIEW: int;
362
- /**
363
- * Scroll to point action, callback argument is set to {@link Vector2} with the relative point coordinates.
364
- */
365
- readonly ACTION_SCROLL_TO_POINT: int;
366
- /** Set scroll offset action, callback argument is set to {@link Vector2} with the scroll offset. */
367
- readonly ACTION_SET_SCROLL_OFFSET: int;
368
- /** Set value action, callback argument is set to {@link String} or number with the new value. */
369
- readonly ACTION_SET_VALUE: int;
370
- /** Show context menu action, callback argument is not set. */
371
- readonly ACTION_SHOW_CONTEXT_MENU: int;
372
- /** Custom action, callback argument is set to the integer action ID. */
373
- readonly ACTION_CUSTOM: int;
374
- // enum AccessibilityLiveMode
375
- /** Indicates that updates to the live region should not be presented. */
376
- readonly LIVE_OFF: int;
377
- /**
378
- * Indicates that updates to the live region should be presented at the next opportunity (for example at the end of speaking the current sentence).
379
- */
380
- readonly LIVE_POLITE: int;
381
- /**
382
- * Indicates that updates to the live region have the highest priority and should be presented immediately.
383
- */
384
- readonly LIVE_ASSERTIVE: int;
385
- // enum AccessibilityScrollUnit
386
- /** The amount by which to scroll. A single item of a list, line of text. */
387
- readonly SCROLL_UNIT_ITEM: int;
388
- /** The amount by which to scroll. A single page. */
389
- readonly SCROLL_UNIT_PAGE: int;
390
- // enum AccessibilityScrollHint
391
- /** A preferred position for the node scrolled into view. Top-left edge of the scroll container. */
392
- readonly SCROLL_HINT_TOP_LEFT: int;
393
- /** A preferred position for the node scrolled into view. Bottom-right edge of the scroll container. */
394
- readonly SCROLL_HINT_BOTTOM_RIGHT: int;
395
- /** A preferred position for the node scrolled into view. Top edge of the scroll container. */
396
- readonly SCROLL_HINT_TOP_EDGE: int;
397
- /** A preferred position for the node scrolled into view. Bottom edge of the scroll container. */
398
- readonly SCROLL_HINT_BOTTOM_EDGE: int;
399
- /** A preferred position for the node scrolled into view. Left edge of the scroll container. */
400
- readonly SCROLL_HINT_LEFT_EDGE: int;
401
- /** A preferred position for the node scrolled into view. Right edge of the scroll container. */
402
- readonly SCROLL_HINT_RIGHT_EDGE: int;
403
- }
404
- declare const AccessibilityServer: AccessibilityServer;
405
-
@@ -1,10 +0,0 @@
1
- // AUTO-GENERATED from Godot class documentation.
2
- // Manual overrides applied from typings-overrides/*.d.ts
3
-
4
- /** Awaits a specified signal. */
5
- declare class AwaitTweener extends Tweener {
6
- /**
7
- * Sets the maximum time an {@link AwaitTweener} can wait for the signal. Can be used as a safeguard for signals that may never be emitted. If not specified, the tweener will wait indefinitely.
8
- */
9
- set_timeout(timeout: float): AwaitTweener;
10
- }
@@ -1,22 +0,0 @@
1
- // AUTO-GENERATED from Godot class documentation.
2
- // Manual overrides applied from typings-overrides/*.d.ts
3
-
4
- /** A material that processes blit calls to a DrawableTexture. */
5
- declare class BlitMaterial extends Material {
6
- /** The manner in which the newly blitted texture is blended with the original DrawableTexture. */
7
- blend_mode: int;
8
- set_blend_mode(value: int): void;
9
- get_blend_mode(): int;
10
-
11
- // enum BlendMode
12
- /** Mix blending mode. Colors are assumed to be independent of the alpha (opacity) value. */
13
- static readonly BLEND_MODE_MIX: int;
14
- /** Additive blending mode. */
15
- static readonly BLEND_MODE_ADD: int;
16
- /** Subtractive blending mode. */
17
- static readonly BLEND_MODE_SUB: int;
18
- /** Multiplicative blending mode. */
19
- static readonly BLEND_MODE_MUL: int;
20
- /** No blending mode, direct color copy. */
21
- static readonly BLEND_MODE_DISABLED: int;
22
- }
@@ -1,47 +0,0 @@
1
- // AUTO-GENERATED from Godot class documentation.
2
- // Manual overrides applied from typings-overrides/*.d.ts
3
-
4
- /** A 2D texture that supports drawing to itself via Blit calls. */
5
- declare class DrawableTexture2D extends Texture2D {
6
- resource_local_to_scene: boolean;
7
-
8
- /**
9
- * Draws to given `rect` on this texture by copying from the given `source`. A `modulate` color can be passed in for the shader to use, but defaults to White. The `mipmap` value can specify a draw to a lower mipmap level. The `material` parameter can take a ShaderMaterial with a TextureBlit Shader for custom drawing behavior.
10
- */
11
- blit_rect(rect: Rect2i | Rect2, source: Texture2D, modulate?: Color, mipmap?: int, material?: Material): void;
12
- /**
13
- * Draws to the given `rect` on this texture, as well as on up to 3 DrawableTexture `extra_targets`. All `extra_targets` must be the same size and DrawableFormat as the original target, otherwise the Shader may fail. Expects up to 4 Texture `sources`, but will replace missing `sources` with default Black Textures.
14
- */
15
- blit_rect_multi(rect: Rect2i | Rect2, sources: Array<Texture2D>, extra_targets: Array<DrawableTexture2D>, modulate?: Color, mipmap?: int, material?: Material): void;
16
- /** Re-calculates the mipmaps for this texture on demand. */
17
- generate_mipmaps(): void;
18
- /** Returns `true` if mipmaps are set to be used on this DrawableTexture. */
19
- get_use_mipmaps(): boolean;
20
- /** Sets the format of this DrawableTexture. */
21
- set_format(format: int): void;
22
- /** Sets the height of this DrawableTexture. */
23
- set_height(height: int): void;
24
- /** Sets if mipmaps should be used on this DrawableTexture. */
25
- set_use_mipmaps(mipmaps: boolean): void;
26
- /** Sets the width of this DrawableTexture. */
27
- set_width(width: int): void;
28
- /** Initializes the DrawableTexture to a White texture of the given `width`, `height`, and `format`. */
29
- setup(width: int, height: int, format: int, color?: Color, use_mipmaps?: boolean): void;
30
-
31
- // enum DrawableFormat
32
- /** OpenGL texture format RGBA with four components, each with a bitdepth of 8. */
33
- static readonly DRAWABLE_FORMAT_RGBA8: int;
34
- /**
35
- * OpenGL texture format RGBA with four components, each with a bitdepth of 8.
36
- * When drawn to, an sRGB to linear color space conversion is performed.
37
- */
38
- static readonly DRAWABLE_FORMAT_RGBA8_SRGB: int;
39
- /**
40
- * OpenGL texture format GL_RGBA16F where there are four components, each a 16-bit "half-precision" floating-point value.
41
- */
42
- static readonly DRAWABLE_FORMAT_RGBAH: int;
43
- /**
44
- * OpenGL texture format GL_RGBA32F where there are four components, each a 32-bit floating-point value.
45
- */
46
- static readonly DRAWABLE_FORMAT_RGBAF: int;
47
- }
@@ -1,94 +0,0 @@
1
- // AUTO-GENERATED from Godot class documentation.
2
- // Manual overrides applied from typings-overrides/*.d.ts
3
-
4
- /** A virtual joystick control for touchscreen devices. */
5
- declare class VirtualJoystick extends Control {
6
- /** The action to trigger when the joystick is moved down. */
7
- action_down: string;
8
- /** The action to trigger when the joystick is moved left. */
9
- action_left: string;
10
- /** The action to trigger when the joystick is moved right. */
11
- action_right: string;
12
- /** The action to trigger when the joystick is moved up. */
13
- action_up: string;
14
- /**
15
- * The multiplier applied to the joystick's radius that defines the clamp zone.
16
- * This zone limits how far the joystick tip can move from its center before being clamped.
17
- * A value of `1.0` means the tip can move up to the edge of the joystick's visual size.
18
- * In {@link JOYSTICK_FOLLOWING} mode, this radius also determines how far the finger can move before the joystick base starts following the touch input.
19
- */
20
- clampzone_ratio: float;
21
- /**
22
- * The ratio of the joystick size that defines the joystick deadzone. The joystick tip must move beyond this ratio before being considered active.
23
- * This deadzone is applied before triggering input actions and affects the joystick's input vector and all related signals.
24
- * Note that input actions may also define their own deadzones in the InputMap. If both are set, the joystick deadzone is applied first, followed by the action's deadzone.
25
- * By default, this value is `0.0`, meaning the joystick does not apply its own deadzone and relies entirely on the InputMap action deadzones.
26
- */
27
- deadzone_ratio: float;
28
- /**
29
- * The initial position of the joystick as a ratio of the control's size. `(0, 0)` is top-left and `(1, 1)` is bottom-right.
30
- */
31
- initial_offset_ratio: Vector2;
32
- /** The joystick mode to use. */
33
- joystick_mode: int;
34
- /** The size of the joystick in pixels. */
35
- joystick_size: float;
36
- /** The size of the joystick tip in pixels. */
37
- tip_size: float;
38
- /** The visibility mode to use. */
39
- visibility_mode: int;
40
- set_action_down(value: string): void;
41
- get_action_down(): string;
42
- set_action_left(value: string): void;
43
- get_action_left(): string;
44
- set_action_right(value: string): void;
45
- get_action_right(): string;
46
- set_action_up(value: string): void;
47
- get_action_up(): string;
48
- set_clampzone_ratio(value: float): void;
49
- get_clampzone_ratio(): float;
50
- set_deadzone_ratio(value: float): void;
51
- get_deadzone_ratio(): float;
52
- set_initial_offset_ratio(value: Vector2 | Vector2i): void;
53
- get_initial_offset_ratio(): Vector2;
54
- set_joystick_mode(value: int): void;
55
- get_joystick_mode(): int;
56
- set_joystick_size(value: float): void;
57
- get_joystick_size(): float;
58
- set_tip_size(value: float): void;
59
- get_tip_size(): float;
60
- set_visibility_mode(value: int): void;
61
- get_visibility_mode(): int;
62
-
63
- /** Emitted when the tip enters the deadzone after being outside of it. */
64
- flick_canceled: Signal<[]>;
65
- /**
66
- * Emitted when the tip moved outside the deadzone and the joystick is released. The `input_vector` contains the last input direction and strength before release. Its length is between `0.0` and `1.0`.
67
- */
68
- flicked: Signal<[Vector2]>;
69
- /** Emitted when the joystick is pressed. */
70
- pressed: Signal<[]>;
71
- /**
72
- * Emitted when the joystick is released. The `input_vector` is the final input direction and strength, with a length between `0.0` and `1.0`.
73
- */
74
- released: Signal<[Vector2]>;
75
- /** Emitted when the joystick is released without moving the tip. */
76
- tapped: Signal<[]>;
77
-
78
- // enum JoystickMode
79
- /** The joystick doesn't move. */
80
- static readonly JOYSTICK_FIXED: int;
81
- /**
82
- * The joystick is moved to the initial touch position as long as it's within the joystick's bounds. It moves back to its original position when released.
83
- */
84
- static readonly JOYSTICK_DYNAMIC: int;
85
- /**
86
- * The joystick is moved to the initial touch position as long as it's within the joystick's bounds. It will follow the touch input if it goes outside the joystick's range. It moves back to its original position when released.
87
- */
88
- static readonly JOYSTICK_FOLLOWING: int;
89
- // enum VisibilityMode
90
- /** The joystick is always visible. */
91
- static readonly VISIBILITY_ALWAYS: int;
92
- /** The joystick is only visible when being touched. */
93
- static readonly VISIBILITY_WHEN_TOUCHED: int;
94
- }