mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-09-01 15:09:19 +00:00
upload "kind" alien swarm
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
#include "cbase.h"
|
||||
#include "asw_logo_panel.h"
|
||||
#include "vgui/ISurface.h"
|
||||
#include "vgui_controls/AnimationController.h"
|
||||
|
||||
// memdbgon must be the last include file in a .cpp file!!!
|
||||
#include <tier0/memdbgon.h>
|
||||
|
||||
CASW_Logo_Panel::CASW_Logo_Panel(vgui::Panel *parent, const char *name) : vgui::ImagePanel(parent, name)
|
||||
{
|
||||
SetImage( "../console/startup_loading" );
|
||||
SetShouldScaleImage(true);
|
||||
}
|
||||
|
||||
CASW_Logo_Panel::~CASW_Logo_Panel()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
void CASW_Logo_Panel::PerformLayout()
|
||||
{
|
||||
// Get the screen size
|
||||
int wide, tall;
|
||||
vgui::surface()->GetScreenSize(wide, tall);
|
||||
|
||||
float LogoWidth = wide * 0.8f;
|
||||
SetBounds( (wide - LogoWidth) * 0.5f,tall * 0.12f, LogoWidth, LogoWidth * 0.25f );
|
||||
}
|
||||
Reference in New Issue
Block a user