mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-09-01 06:59:20 +00:00
upload "kind" alien swarm
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
#include "cbase.h"
|
||||
#include "asw_vgui_skip_intro.h"
|
||||
|
||||
// memdbgon must be the last include file in a .cpp file!!!
|
||||
#include "tier0/memdbgon.h"
|
||||
|
||||
CASW_VGUI_Skip_Intro::CASW_VGUI_Skip_Intro( vgui::Panel *pParent, const char *pElementName)
|
||||
: vgui::Panel( pParent, pElementName ),
|
||||
CASW_VGUI_Ingame_Panel()
|
||||
{
|
||||
SetKeyBoardInputEnabled(true);
|
||||
RequestFocus();
|
||||
}
|
||||
|
||||
CASW_VGUI_Skip_Intro::~CASW_VGUI_Skip_Intro()
|
||||
{
|
||||
}
|
||||
|
||||
void CASW_VGUI_Skip_Intro::PerformLayout()
|
||||
{
|
||||
SetBounds(0, 0, ScreenWidth(), ScreenHeight());
|
||||
}
|
||||
|
||||
void CASW_VGUI_Skip_Intro::ApplySchemeSettings(vgui::IScheme *pScheme)
|
||||
{
|
||||
BaseClass::ApplySchemeSettings(pScheme);
|
||||
|
||||
SetPaintBackgroundType(0);
|
||||
SetPaintBackgroundEnabled(false);
|
||||
SetBgColor( Color(0,0,0,255) );
|
||||
SetMouseInputEnabled(true);
|
||||
}
|
||||
|
||||
bool CASW_VGUI_Skip_Intro::MouseClick(int x, int y, bool bRightClick, bool bDown)
|
||||
{
|
||||
engine->ClientCmd("cl_skip_intro");
|
||||
MarkForDeletion();
|
||||
SetVisible(false);
|
||||
return true; // swallow click
|
||||
}
|
||||
Reference in New Issue
Block a user