Vgui.Register ( "NameEntryMenu",PANEL, "DFrame" ) Local PANEL = function PANEL:Init ( ) end function PANEL:Invalidate ( ) end function PANEL:SetupEvents ( ) end function PANEL:PerformLayout ( ) end function PANEL:GetEntryValue ( ) end function PANEL:SetEntryValue (Text ) end function PANEL:EndEdit ( ) end function PANEL:ApplyEdit ( ) end So, here we have a brand-new, blank VGUI control with some of the custom functions we are going to use: Here's the outcome:īasically, I will be adding code, function by function, and explaining what each does. We will be creating a simple name entry menu which has a text box and two buttons. This small article shows just what you can really do with custom VGUI elements. If you don't, this page can help with that. I expect you to have some basic knowledge in working with VGUI. ![]()
0 Comments
Leave a Reply. |