Talk:VGUI2 Programming Best Practices
Jump to navigation
Jump to search
I'm confused why panel position, layout should be data driven. Suppose I want the panel to change size/layout based on user choices as they access the panel? Can that be done through .res files? Why is this considered a best practice? --Daktor 20:04, 4 Dec 2006 (PST)
- Data driven is considered a "best practice" because you don't have to recompile the DLL every time you want to move the panel about. Even in your example, the initial position should be data driven, and you would save any changes to a user file. —Kateye 19:19, 5 Dec 2006 (PST)