width("100%");
textHAlignCenter();
}});
panel(new PanelBuilder() {{
childLayoutHorizontal();
control(new DroppableBuilder("chest") {{
width("101px");
height("171px");
panel(new PanelBuilder() {{
childLayoutOverlay();
image(new ImageBuilder("chest-image") {{
filename("dragndrop/Chest Open.png");
}});
image(new ImageBuilder("chest-open") {{
filename("dragndrop/Chest Lid.png");
onCustomEffect(new EffectBuilder("move") {{
effectParameter("mode", "toOffset");
effectParameter("offsetY", "-100");
length(250);
customKey("switchOpen");
neverStopRendering(true);
}});
onCustomEffect(new EffectBuilder("fade") {{
effectParameter("start", "#f");
effectParameter("end", "#0");
length(250);
customKey("switchOpen");
neverStopRendering(true);
}});
}});
}});
}});
panel(new PanelBuilder() {{
width("*");
}});
control(new DroppableBuilder("key-initial") {{
width("101px");
height("171px");
onActiveEffect(new EffectBuilder("border") {{
effectParameter("color", "#0003");
}});