mirror of
https://github.com/godotengine/godot.git
synced 2025-10-30 13:11:13 +00:00
Add PluginScript support for global class naming/icon path
This commit is contained in:
parent
3c9c2cbb23
commit
c4c18a2c58
5 changed files with 42 additions and 0 deletions
|
|
@ -69,6 +69,7 @@ private:
|
|||
String _source;
|
||||
String _path;
|
||||
StringName _name;
|
||||
String _icon_path;
|
||||
|
||||
protected:
|
||||
static void _bind_methods();
|
||||
|
|
@ -84,6 +85,14 @@ protected:
|
|||
virtual void _placeholder_erased(PlaceHolderScriptInstance *p_placeholder) override;
|
||||
#endif
|
||||
public:
|
||||
String get_script_class_name() const {
|
||||
return _name;
|
||||
}
|
||||
|
||||
String get_script_class_icon_path() const {
|
||||
return _icon_path;
|
||||
}
|
||||
|
||||
virtual bool can_instance() const override;
|
||||
|
||||
virtual Ref<Script> get_base_script() const override; //for script inheritance
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue