From b1049fceb1f61aa4cff4f6d772e376ddd5fffe39 Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Sun, 23 Jul 2023 10:17:52 +0300 Subject: [PATCH] Add categoryToggleState --- src/mapper/mapper.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/mapper/mapper.cc b/src/mapper/mapper.cc index 4b3aea2..65af3cf 100644 --- a/src/mapper/mapper.cc +++ b/src/mapper/mapper.cc @@ -18,6 +18,7 @@ namespace fallout { static int categoryHide(); +static int categoryToggleState(); static int categoryUnhide(); static bool proto_user_is_librarian(); static void redraw_toolname(); @@ -54,6 +55,16 @@ int categoryHide() return 0; } +// 0x487768 +int categoryToggleState() +{ + if (categoryIsHidden) { + return categoryUnhide(); + } else { + return categoryHide(); + } +} + // 0x487774 int categoryUnhide() {