Skip to content

Commit

Permalink
fix: Support Godot 3.4 (#478)
Browse files Browse the repository at this point in the history
  • Loading branch information
dploeger authored Dec 6, 2021
1 parent aa373f3 commit 84adc0a
Showing 1 changed file with 4 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,49 +10,21 @@ class_name ESCAnimationResource
# start_angle must be between 0 and 360.
# Angle 0 and 360 are the same and correspond to UP/NORTH
# 90 is RIGHT/EAST, 180 is DOWN/SOUTH, etc
var dir_angles: Array = []
export(Array, Resource) var dir_angles: Array = []

# Array of animations for each direction, from UP to RIGHT_UP clockwise
# [animation_name, scale]: scale parameter can be set to -1 to mirror
# the animation
var directions: Array = []
export(Array, Resource) var directions: Array = []


# Array containing the idle animations for each direction (in the
# order defined by dir_angles): scale parameter can be set to -1 to mirror
# the animation
var idles: Array = []
export(Array, Resource) var idles: Array = []

# Array containing the speak animations for each direction (in the
# order defined by dir_angles): scale parameter can be set to -1 to mirror
# the animation
var speaks: Array = []
export(Array, Resource) var speaks: Array = []


func _get_property_list():
var properties = []
properties.append({
"name": "dir_angles",
"type": TYPE_ARRAY,
"hint": 19,
"hint_string": "17/17:ESCDirectionAngle"
})
properties.append({
"name": "directions",
"type": TYPE_ARRAY,
"hint": 19,
"hint_string": "17/17:ESCAnimationName"
})
properties.append({
"name": "idles",
"type": TYPE_ARRAY,
"hint": 19,
"hint_string": "17/17:ESCAnimationName"
})
properties.append({
"name": "speaks",
"type": TYPE_ARRAY,
"hint": 19,
"hint_string": "17/17:ESCAnimationName"
})
return properties

0 comments on commit 84adc0a

Please sign in to comment.