From 6dd27c1808d1cadb9d739b07f0e2a545fab5832f Mon Sep 17 00:00:00 2001 From: Norbyte Date: Mon, 25 Mar 2024 23:28:54 +0100 Subject: [PATCH] Fix UI type information --- BG3Extender/GameDefinitions/Base/TypeInformation.inl | 3 +++ BG3Extender/Lua/Shared/Proxies/LuaTypeInformation.cpp | 1 + BG3Extender/resource.h | 4 ++-- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/BG3Extender/GameDefinitions/Base/TypeInformation.inl b/BG3Extender/GameDefinitions/Base/TypeInformation.inl index 67e10dea..bcfad6ef 100644 --- a/BG3Extender/GameDefinitions/Base/TypeInformation.inl +++ b/BG3Extender/GameDefinitions/Base/TypeInformation.inl @@ -193,6 +193,9 @@ void TypeInformationRepository::Initialize() RegisterStaticType("Guid", LuaTypeId::String); //RegisterStaticType("TemplateHandle", LuaTypeId::Integer); RegisterStaticType("Ref", LuaTypeId::Any); + RegisterStaticType("AnyRef", LuaTypeId::Any); + RegisterStaticType("AnyUserdataRef", LuaTypeId::Object); + RegisterStaticType("FunctionRef", LuaTypeId::Function); RegisterStaticType("RegistryEntry", LuaTypeId::Any); RegisterStaticType("PersistentRef", LuaTypeId::Any); RegisterStaticType("PersistentRegistryEntry", LuaTypeId::Any); diff --git a/BG3Extender/Lua/Shared/Proxies/LuaTypeInformation.cpp b/BG3Extender/Lua/Shared/Proxies/LuaTypeInformation.cpp index 4e8aab66..a54445ec 100644 --- a/BG3Extender/Lua/Shared/Proxies/LuaTypeInformation.cpp +++ b/BG3Extender/Lua/Shared/Proxies/LuaTypeInformation.cpp @@ -108,6 +108,7 @@ void RegisterObjectProxyTypeInformation() #define END_ENUM() GetStaticTypeInfo(Overload{}).Type = &ty; })(); #include +#include #undef BEGIN_BITMASK_NS #undef BEGIN_ENUM_NS diff --git a/BG3Extender/resource.h b/BG3Extender/resource.h index 7c6c0dd9..51b2575b 100644 --- a/BG3Extender/resource.h +++ b/BG3Extender/resource.h @@ -2,8 +2,8 @@ // Microsoft Visual C++ generated include file. // Used by BG3Extender.rc // -#define RES_DLL_MAJOR_VERSION 14 -#define RES_DLL_VERSION_STRING "14.0.0.0" +#define RES_DLL_MAJOR_VERSION 15 +#define RES_DLL_VERSION_STRING "15.0.0.0" #define IDR_LUA_BUILTIN_BUNDLE 101 #define IDR_BINARY_MAPPINGS 107