Add categoryToggleState

This commit is contained in:
Alexander Batalov 2023-07-23 10:17:52 +03:00
parent f933bff8ae
commit b1049fceb1

View File

@ -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()
{