Refactored canoe handling

Canoe station should now have the full animation suite
Canoe making now scales with axe and level of woodcutting
Interfaces are now fully updated with proper hide/show/animation
Canoes now sink at the end of the journey
Added a black screen backdrop overlay seen only in HD
This commit is contained in:
Oven Bread
2023-10-04 23:30:51 +00:00
committed by Ryan
parent b87a3821dd
commit e9fd74b379
7 changed files with 379 additions and 453 deletions
@@ -206,6 +206,10 @@ public final class InterfaceManager {
player.removeAttribute("runscript");
player.getPacketDispatch().sendRunScript(101, "");
}
// Component 333 is an immediate(no-fading) full-screen HD-mode black screen which auto-clears when interrupted.
if (overlay != null && overlay.getId() == 333) {
closeOverlay();
}
if (opened != null && opened.close(player)) {
if (opened != null && (!opened.getDefinition().isWalkable() || opened.getId() == 14)) {
PacketRepository.send(CloseInterface.class, new InterfaceContext(player, opened.getDefinition().getWindowPaneId(isResizable()), opened.getDefinition().getChildId(isResizable()), opened.getId(), opened.getDefinition().isWalkable()));