//================================================================================= // CUSTOM SCROLLPANEL //================================================================================= CTFScrollButton::CTFScrollButton(int iArrow, const char* text,int x,int y,int wide,int tall) : CommandButton(text,x,y,wide,tall) { // Set text color to orange setFgColor(Scheme::sc_primary1); // Load in the arrow m_pTGA = LoadTGAForRes( sArrowFilenames[iArrow] ); setImage( m_pTGA ); // Highlight signal InputSignal *pISignal = new CHandler_CommandButtonHighlight(this); addInputSignal(pISignal); }
void CommandButton::Init( void ) { m_pSubMenu = NULL; m_pSubLabel = NULL; m_pParentMenu = NULL; // Set text color to orange setFgColor(Scheme::sc_primary1); // left align setContentAlignment( vgui::Label::a_west ); // Add the Highlight signal if (!m_bNoHighlight) addInputSignal( new CHandler_CommandButtonHighlight(this) ); // not bound to any button yet m_cBoundKey = 0; }
AvHOverviewControl::AvHOverviewControl() { m_hsprWhite = Safe_SPR_Load(kWhiteSprite); addInputSignal(new AvHOverviewInputSignal(this)); }