Vgui snippets
Jump to navigation
Jump to search
Show Hide Buttons
//----------------------------------------------------------------------------- // Purpose: set state of buttons //----------------------------------------------------------------------------- void [class name]::SetVisibleButton(const char *textEntryName, bool state) { Button *entry = dynamic_cast<Button *>(FindChildByName(textEntryName)); if (entry) entry->SetVisible(state); }