That control is defined internally to GameUI.dll, you don't have access
to it (it is just a vgui::TextEntry with OnTextChanged() overriden to
check/set cvar values).

- Alfred

----Original Message----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Patrick
Flanagan Sent: Tuesday, January 18, 2005 3:26 PM To:
[email protected] Subject: [hlcoders] Cvar entry in vgui
game menus

> I was looking at the included game menus and on the
> Options->Multiplayer there is a field to enter a player name. I tested
> changing the player name from the menu, and it works. That field is
> defined in the resource file like so:
>
>       "NameEntry"
>       {
>               "ControlName"           "CCvarTextEntry"
>               "fieldName"             "NameEntry"
>               "xpos"          "84"
>               "ypos"          "17"
>               "wide"          "128"
>               "tall"          "24"
>               "autoResize"            "0"
>               "pinCorner"             "0"
>               "visible"               "1"
>               "enabled"               "1"
>               "tabPosition"           "0"
>               "textHidden"            "0"
>               "editable"              "1"
>               "maxchars"              "63"
>               "NumericInputOnly"              "0"
>               "unicode"               "0"
>       }
>
> Where is this CCvarTextEntry from? It's not one of the options on the
> vgui ingame menu builder, and if I manually edit my resource file to
> make another text field with control name CCvarTextEntry then it
> doesn't show up. I've tried searching the source code for
> CvarTextEntry, and found no results. What do I need to do to be able
> to use that control on my custom menus and where to I define what
> cvar is linked to it?
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list
> archives, please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to