diff --git a/README.md b/README.md index 67a3f4ca..51a152e2 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/misc/godot.d.ts b/misc/godot.d.ts index 51e99b47..7d2a4be2 100644 --- a/misc/godot.d.ts +++ b/misc/godot.d.ts @@ -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_*`