Compiling vgui controls.lib: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
 
m (→‎top: clean up, added deadend tag)
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{wrongtitle|title=Compiling vgui_controls.lib}}
{{Dead end|date=January 2024}}


To compile vgui_controls.lib, you must take the following actions:
{{DISPLAYTITLE:Compiling vgui_controls.lib}}


On line 171 in AnimationController, replace
The following is a short guide to successfully compiling your vgui2 modifications to <code>lib\public\vgui_controls.lib</code>.
return AnimationController::RelativeAlignment::a_northwest;
Change this line in AnimationController.cpp
with
:{|style="background:transparent;"
return a_northwest;
|<pre style="margin:0px 0px 0px 0px;">return AnimationController::RelativeAlignment::a_northwest;</pre>
|-
|style="text-align:center;"|↓
|-
|<pre style="margin:0px 0px 0px 0px;">return a_northwest;</pre>
|}


Open vgui_controls.vcproj in your MSVC++ .NET and compile it with the Release configuration.
Open <code>src\vgui2\controls\vgui_controls.vcproj</code> in your MSVC++ .NET and compile it with the <code>Release</code> configuration.


[[Category:Programming]] [[Category:Tutorials]]
The library should be copied and overwrite <code>lib\public\vgui_controls.lib</code> once the compilation is complete.
 
{{note|The client project requires a rebuild once the new vgui_controls.lib is made to relink it.}}
 
[[Category:Programming]]
[[Category:Tutorials]]

Latest revision as of 08:50, 21 January 2024

Dead End - Icon.png
This article has no Wikipedia icon links to other VDC articles. Please help improve this article by adding links Wikipedia icon that are relevant to the context within the existing text.
January 2024


The following is a short guide to successfully compiling your vgui2 modifications to lib\public\vgui_controls.lib. Change this line in AnimationController.cpp

return AnimationController::RelativeAlignment::a_northwest;
return a_northwest;

Open src\vgui2\controls\vgui_controls.vcproj in your MSVC++ .NET and compile it with the Release configuration.

The library should be copied and overwrite lib\public\vgui_controls.lib once the compilation is complete.

Note.pngNote:The client project requires a rebuild once the new vgui_controls.lib is made to relink it.