From 341ee57f21179b335c405a7baaf04859e9dda462 Mon Sep 17 00:00:00 2001 From: GregHib Date: Wed, 7 Aug 2024 14:45:42 +0100 Subject: [PATCH] Add closing entry dialogues --- data/definitions/scripts.yml | 1 + .../kotlin/world/gregs/voidps/engine/client/ui/Interfaces.kt | 2 ++ 2 files changed, 3 insertions(+) diff --git a/data/definitions/scripts.yml b/data/definitions/scripts.yml index 630db0dbd..ae792c016 100644 --- a/data/definitions/scripts.yml +++ b/data/definitions/scripts.yml @@ -15,6 +15,7 @@ update_bank_slots: 1465 quest_journal_refresh: 2165 quest_journal_length: 1207 trade_warning: 143 +close_entry: 101 int_entry: 108 string_entry: 109 dialogue_item_zoom: 3449 diff --git a/engine/src/main/kotlin/world/gregs/voidps/engine/client/ui/Interfaces.kt b/engine/src/main/kotlin/world/gregs/voidps/engine/client/ui/Interfaces.kt index a83871532..30e4956e0 100644 --- a/engine/src/main/kotlin/world/gregs/voidps/engine/client/ui/Interfaces.kt +++ b/engine/src/main/kotlin/world/gregs/voidps/engine/client/ui/Interfaces.kt @@ -2,6 +2,7 @@ package world.gregs.voidps.engine.client.ui import it.unimi.dsi.fastutil.objects.ObjectOpenHashSet import world.gregs.voidps.engine.client.playMusicTrack +import world.gregs.voidps.engine.client.sendScript import world.gregs.voidps.engine.client.ui.chat.Colours import world.gregs.voidps.engine.client.ui.event.CloseInterface import world.gregs.voidps.engine.client.ui.event.InterfaceClosed @@ -287,6 +288,7 @@ fun Player.closeInterfaces(): Boolean { closed = true } queue.clearWeak() + sendScript("close_entry") return closed }