Add categoryToggleState

This commit is contained in:
Alexander Batalov 2023-07-23 10:17:52 +03:00
parent f933bff8ae
commit b1049fceb1
1 changed files with 11 additions and 0 deletions

View File

@ -18,6 +18,7 @@
namespace fallout { namespace fallout {
static int categoryHide(); static int categoryHide();
static int categoryToggleState();
static int categoryUnhide(); static int categoryUnhide();
static bool proto_user_is_librarian(); static bool proto_user_is_librarian();
static void redraw_toolname(); static void redraw_toolname();
@ -54,6 +55,16 @@ int categoryHide()
return 0; return 0;
} }
// 0x487768
int categoryToggleState()
{
if (categoryIsHidden) {
return categoryUnhide();
} else {
return categoryHide();
}
}
// 0x487774 // 0x487774
int categoryUnhide() int categoryUnhide()
{ {