Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ Label.Align.ALIGN_LEFT | godot.Label.Align.ALIGN_LEFT
- `godot.register_signal(cls, signal_name)` to register signals
- `godot.register_property(cls, name, default_value)` to define and export properties
- `godot.register_class(cls, name)` to register named class manually
- `godot.set_script_tooled(tooled)` to set `tooled` of the class
- `godot.set_script_icon(path)` to set icon of the class
- `godot.set_script_tooled(cls, tooled)` to set `tooled` of the class
- `godot.set_script_icon(cls, path)` to set icon of the class
- `godot.get_type(val)` Returns the internal type of the given `Variant` object, using the `godot.TYPE_*`
- `requestAnimationFrame(callback)` to add a callback function to be called every frame
- `cancelAnimationFrame(request_id)` to cancel an frame request previously scheduled
Expand Down
8 changes: 7 additions & 1 deletion misc/godot.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,15 @@ declare module godot {
* The meta data of an script
* @param target The script class
* @param tool is tooled of this class
*/
function set_script_tooled(target: GodotClass, tool: boolean);

/**
* The meta data of an script
* @param target The script class
* @param icon The icon of the class
*/
function set_script_meta(target: GodotClass, tool: boolean, icon?: string);
function set_script_icon(target: GodotClass, icon: string);

/**
* Returns the internal type of the given `Variant` object, using the `godot.TYPE_*`
Expand Down