From c009d14f735c029c808f46b3a178761a1289e901 Mon Sep 17 00:00:00 2001 From: Marcus Penate Date: Fri, 4 Dec 2026 17:30:27 -0500 Subject: [PATCH] Export Gui::clearFocusStringCache Plugins that change the UI state focus strings are computed from (e.g. swapping per-player interface state in and out within a frame) need to clear the cache afterwards, but the function was not exported. Co-Authored-By: Claude Opus 5.5 --- docs/about/Authors.rst | 1 + docs/changelog.txt | 1 + library/include/modules/Gui.h | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/about/Authors.rst b/docs/about/Authors.rst index eefd440758..f5c9893833 100644 --- a/docs/about/Authors.rst +++ b/docs/about/Authors.rst @@ -123,6 +123,7 @@ Kévin Boissonneault KABoissonneault Lethosor lethosor LordGolias LordGolias Magnus Anderson magnus-ISU +Marcus Penate marcuspenate Mark Nielson pseudodragon Mason11987 Mason11987 Matt Regul mattregul diff --git a/docs/changelog.txt b/docs/changelog.txt index 99a82c7352..5331a0f8ef 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -69,6 +69,7 @@ Template for new versions: ## Documentation ## API +- ``Gui::clearFocusStringCache``: now exported, so plugins that change the UI state focus strings are computed from can refresh them ## Lua diff --git a/library/include/modules/Gui.h b/library/include/modules/Gui.h index 761e948bb0..31a237f751 100644 --- a/library/include/modules/Gui.h +++ b/library/include/modules/Gui.h @@ -68,7 +68,7 @@ namespace DFHack { DFHACK_EXPORT std::vector getFocusStrings(df::viewscreen *top); DFHACK_EXPORT bool matchFocusString(std::string focus_string, df::viewscreen *top = NULL); - void clearFocusStringCache(); + DFHACK_EXPORT void clearFocusStringCache(); // Full-screen item details view DFHACK_EXPORT bool item_details_hotkey(df::viewscreen *top);