RefreshButton.gd 219 B

1234567891011
  1. @tool
  2. extends Button
  3. func _ready():
  4. if PluginUtil.is_part_of_edited_scene(self):
  5. return
  6. icon = EditorInterface.get_editor_theme().get_icon("Reload", "EditorIcons")
  7. func _on_pressed():
  8. $"../../ItemList".refresh()