Describe the bug
vgui_controls.lib fails to compile when using a custom project which integrates it because it looks for g_bUsingCustomHudAnimations, a value extern'd from the client DLL.
Steps to reproduce
Steps to reproduce the behavior:
- Use
vgui_controls.lib in a non-client.dll project
- Attempt to compile
error LNK2001: unresolved external symbol "bool g_bUsingCustomHudAnimations"
Expected behavior
vgui_controls.lib integration should be supported on any project, not just the client DLL.
Additional context
This has manifested with users trying to integrate the new Gamepad UI project into Mapbase mods, although other, older projects integrate vgui_controls.lib outside of the client as well.
This can easily be fixed by just moving g_bUsingCustomHudAnimations to vgui_controls and making the client look for it instead.
Describe the bug
vgui_controls.libfails to compile when using a custom project which integrates it because it looks forg_bUsingCustomHudAnimations, a value extern'd from the client DLL.Steps to reproduce
Steps to reproduce the behavior:
vgui_controls.libin a non-client.dllprojecterror LNK2001: unresolved external symbol "bool g_bUsingCustomHudAnimations"Expected behavior
vgui_controls.libintegration should be supported on any project, not just the client DLL.Additional context
This has manifested with users trying to integrate the new Gamepad UI project into Mapbase mods, although other, older projects integrate
vgui_controls.liboutside of the client as well.This can easily be fixed by just moving
g_bUsingCustomHudAnimationstovgui_controlsand making the client look for it instead.