Skip to content

Commit 6f40538

Browse files
committed
Add dropdown for Custom Bird Tutorial info text
1 parent 2a005c1 commit 6f40538

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Ahorn/entities/customBirdTutorial.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,18 @@ module SpringCollab2020CustomBirdTutorial
33
using ..Ahorn, Maple
44

55
@mapdef Entity "SpringCollab2020/CustomBirdTutorial" CustomBirdTutorial(x::Integer, y::Integer,
6-
birdId::String="birdId", onlyOnce::Bool=false, caw::Bool=true, faceLeft::Bool=true, info::String="tutorial_dreamjump", controls::String="DownRight,+,Dash,tinyarrow,Jump")
6+
birdId::String="birdId", onlyOnce::Bool=false, caw::Bool=true, faceLeft::Bool=true, info::String="TUTORIAL_DREAMJUMP", controls::String="DownRight,+,Dash,tinyarrow,Jump")
77

88
const placements = Ahorn.PlacementDict(
99
"Custom Bird Tutorial (Spring Collab 2020)" => Ahorn.EntityPlacement(
1010
CustomBirdTutorial
1111
)
1212
)
1313

14+
Ahorn.editingOptions(entity::CustomBirdTutorial) = Dict{String, Any}(
15+
"info" => String["TUTORIAL_CLIMB", "TUTORIAL_HOLD", "TUTORIAL_DASH", "TUTORIAL_DREAMJUMP", "TUTORIAL_CARRY", "hyperjump/tutorial00", "hyperjump/tutorial01"]
16+
)
17+
1418
sprite = "characters/bird/crow00"
1519

1620
function Ahorn.selection(entity::CustomBirdTutorial)

0 commit comments

Comments
 (0)