Skip to content

Commit

Permalink
remove animated controls
Browse files Browse the repository at this point in the history
  • Loading branch information
ceceppa committed Sep 16, 2024
1 parent 757745d commit 216af93
Show file tree
Hide file tree
Showing 29 changed files with 9 additions and 1,813 deletions.
22 changes: 0 additions & 22 deletions addons/anima/anima_plugin.gd
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
@tool
extends EditorPlugin

var _anima_inspector_plugin := preload("res://addons/anima/components/anima_animated_control_inspector.gd").new(self)

func _init():
randomize()

Expand All @@ -12,25 +10,5 @@ func get_name():
func _enter_tree():
add_autoload_singleton("ANIMA", 'res://addons/anima/core/constants.gd')

add_inspector_plugin(_anima_inspector_plugin)

func _ready():
_anima_inspector_plugin.set_godot_theme(get_editor_interface().get_base_control().theme)

func _exit_tree():
remove_autoload_singleton('ANIMA')

remove_inspector_plugin(_anima_inspector_plugin)

func _update_animated_events(node: Node, current_data: Array[Dictionary], events: Array[Dictionary]):
var undo_redo = get_undo_redo()

undo_redo.create_action('Updated Anima Control Events')
undo_redo.add_do_property(node, "__events", events)
undo_redo.add_undo_method(self, "_undo_update_animated_events", node, current_data)
undo_redo.commit_action()

func _undo_update_animated_events(node: Node, previous_data):
node.set_animated_events(previous_data)

_anima_inspector_plugin.refresh_event_items()
220 changes: 0 additions & 220 deletions addons/anima/components/AnimatedControl.gd

This file was deleted.

Loading

0 comments on commit 216af93

Please sign in to comment.