godot icon indicating copy to clipboard operation
godot copied to clipboard

Document alternatives to some static Color methods

Open KoBeWi opened this issue 1 year ago • 4 comments

See https://github.com/godotengine/godot-proposals/issues/10294

KoBeWi avatar Jul 28 '24 15:07 KoBeWi

We should probably see about how to document this constructor properly, as it's overlooked due to some conversion details, but this is good as an initial step IMO

AThousandShips avatar Jul 28 '24 16:07 AThousandShips

Another thing is that there is no way to link to a constructor, like to methods and members.

KoBeWi avatar Jul 28 '24 18:07 KoBeWi

There is, but it's not coded properly because it's not standard (it needs more parameters than just the constructor's name)

Both [constructor Color] and [operator Color] work partially. They only point to the first one in the list if I recall correctly, and fail the check on Github.

Mickeon avatar Jul 28 '24 19:07 Mickeon

Yeah I noticed the constructors have name field, but each one is named the same. Hence it's effectively not possible to utilize it in a useful way.

KoBeWi avatar Jul 28 '24 19:07 KoBeWi

Thanks!

akien-mga avatar Jul 29 '24 13:07 akien-mga