mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-17 06:03:02 +00:00
1
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
//========= Copyright Valve Corporation, All rights reserved. ============//
|
||||
//
|
||||
// Purpose:
|
||||
//
|
||||
// $NoKeywords: $
|
||||
//=============================================================================//
|
||||
|
||||
#ifndef CSBUYSUBMENU_H
|
||||
#define CSBUYSUBMENU_H
|
||||
#ifdef _WIN32
|
||||
#pragma once
|
||||
#endif
|
||||
|
||||
#include <buysubmenu.h>
|
||||
#include <buymouseoverpanelbutton.h>
|
||||
|
||||
using namespace vgui;
|
||||
|
||||
class CCSBuySubMenu : public CBuySubMenu
|
||||
{
|
||||
private:
|
||||
DECLARE_CLASS_SIMPLE(CCSBuySubMenu, CBuySubMenu);
|
||||
|
||||
public:
|
||||
CCSBuySubMenu (vgui::Panel *parent,const char *name = "BuySubMenu") : CBuySubMenu( parent, name )
|
||||
{
|
||||
m_backgroundLayoutFinished = false;
|
||||
};
|
||||
|
||||
protected:
|
||||
|
||||
virtual void OnThink();
|
||||
void UpdateVestHelmPrice();
|
||||
|
||||
virtual void OnCommand( const char *command );
|
||||
|
||||
MouseOverPanelButton* CreateNewMouseOverPanelButton(EditablePanel * panel)
|
||||
{
|
||||
return new BuyMouseOverPanelButton(this, NULL, panel);
|
||||
}
|
||||
|
||||
CBuySubMenu* CreateNewSubMenu() { return new CCSBuySubMenu( this, "BuySubMenu" ); }
|
||||
|
||||
// Background panel -------------------------------------------------------
|
||||
|
||||
virtual void PerformLayout();
|
||||
virtual void OnSizeChanged(int newWide, int newTall); // called after the size of a panel has been changed
|
||||
|
||||
void HandleBlackMarket( void );
|
||||
|
||||
bool m_backgroundLayoutFinished;
|
||||
|
||||
// End background panel ---------------------------------------------------
|
||||
};
|
||||
|
||||
#endif //CSBUYSUBMENU_H
|
||||
Reference in New Issue
Block a user