mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-12-21 13:16:49 +01:00
Now the data manager addon uses a built in editor icon for it's top bar icon, so it won't get disabled when (re)importing the game project.
This commit is contained in:
parent
585cc46aaf
commit
82fb8e1efa
@ -2,9 +2,9 @@ tool
|
||||
extends EditorPlugin
|
||||
|
||||
const DataManagerAddonSettings = preload("res://addons/data_manager/resources/data_manager_addon_settings.gd")
|
||||
|
||||
const _main_panel : PackedScene = preload("res://addons/data_manager/panels/MainPanel.tscn")
|
||||
const _script_icon : Texture = preload("res://addons/data_manager/icons/icon_multi_line.png")
|
||||
|
||||
var _script_icon : Texture = null
|
||||
|
||||
var settings : DataManagerAddonSettings = null
|
||||
|
||||
@ -34,6 +34,9 @@ func make_visible(visible):
|
||||
_main_panel_instance.hide()
|
||||
|
||||
func get_plugin_icon():
|
||||
if !_script_icon:
|
||||
_script_icon = get_editor_interface().get_base_control().get_theme_icon("ThemeSelectAll", "EditorIcons")
|
||||
|
||||
return _script_icon
|
||||
|
||||
func get_plugin_name():
|
||||
|
Loading…
Reference in New Issue
Block a user