triumph-gui
triumph-gui copied to clipboard
Add animations
Closes #48
Example usage:
Gui gui = new Gui(3,"Hello", EnumSet.noneOf(InteractionModifier.class));
gui.setItem(0, ItemBuilder.from(Material.DIAMOND).asGuiItem());
Animation animation = Animation.infinite(5,
Frame.builder()
.addItem(0, ItemBuilder.from(Material.DIAMOND)
.name(Component.text(ChatColor.translateAlternateColorCodes('&', "&6&lHello World")))
.asGuiItem())
.build(),
Frame.builder()
.addItem(0, ItemBuilder.from(Material.DIAMOND)
.name(Component.text(ChatColor.translateAlternateColorCodes('&', "&f&lHello World")))
.asGuiItem())
.build());
gui.addAnimation(animation);
gui.open(player);
Sorry for late reply. I like the idea, I'll keep this open for now though, I want to rework the updating system a bit more and this would be perfect for when that is ready.
Yeah, it is a bit raw, can't wait to see this awesome feature in the library.
any news?
any news?
The update system seems to have not been updated yet, gotta wait sadly. But love the work you did here. I love the way you did it.
This is pretty awesome. Sad to see it still hasn't been merged.