//=========================================================== // Disc ammo icon CDiscPanel::CDiscPanel(int x,int y,int wide,int tall) : Label("", x,y,wide,tall) { setContentFitted(true); // Standard discs m_pDiscTGA_Red = LoadTGAForRes("discred"); m_pDiscTGA_RedGlow = LoadTGAForRes("discred2"); m_pDiscTGA_Blue = LoadTGAForRes("discblue"); m_pDiscTGA_BlueGlow = LoadTGAForRes("discblue2"); m_pDiscTGA_Grey = LoadTGAForRes("discgrey"); // Powerup discs m_pDiscTGA_Fast = LoadTGAForRes("fast"); m_pDiscTGA_Freeze = LoadTGAForRes("freeze"); m_pDiscTGA_Hard = LoadTGAForRes("hard"); m_pDiscTGA_Triple = LoadTGAForRes("triple"); setImage( m_pDiscTGA_Red ); }
CImageLabel::CImageLabel( const char* pImageName,int x,int y,int wide,int tall ) : Label( "", x,y,wide,tall ) { setContentFitted(true); m_pTGA = LoadTGAForRes(pImageName); setImage( m_pTGA ); }
//=========================================================== // Button with Class image beneath it CImageLabel::CImageLabel( const char* pImageName,int x,int y ) : Label( "", x,y ) { setContentFitted(true); m_pTGA = LoadTGA(pImageName); setImage( m_pTGA ); }