Initial commit: ROW Client source code
Game client codebase including: - CharacterActionControl: Character and creature management - GlobalScript: Network, items, skills, quests, utilities - RYLClient: Main client application with GUI and event handlers - Engine: 3D rendering engine (RYLGL) - MemoryManager: Custom memory allocation - Library: Third-party dependencies (DirectX, boost, etc.) - Tools: Development utilities 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
97
Tools/LauncherMY/SplashDlg.cpp
Normal file
97
Tools/LauncherMY/SplashDlg.cpp
Normal file
@@ -0,0 +1,97 @@
|
||||
// SplashDlg.cpp : implementation file
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "RYLLogin.h"
|
||||
#include "SplashDlg.h"
|
||||
|
||||
|
||||
// CSplashDlg dialog
|
||||
|
||||
IMPLEMENT_DYNAMIC(CSplashDlg, CDialog)
|
||||
CSplashDlg::CSplashDlg(CWnd* pParent /*=NULL*/)
|
||||
: CDialog(CSplashDlg::IDD, pParent)
|
||||
{
|
||||
m_nFade = 0;
|
||||
}
|
||||
|
||||
CSplashDlg::~CSplashDlg()
|
||||
{
|
||||
}
|
||||
|
||||
void CSplashDlg::DoDataExchange(CDataExchange* pDX)
|
||||
{
|
||||
CDialog::DoDataExchange(pDX);
|
||||
}
|
||||
|
||||
|
||||
BEGIN_MESSAGE_MAP(CSplashDlg, CDialog)
|
||||
ON_WM_PAINT()
|
||||
ON_WM_ERASEBKGND()
|
||||
ON_WM_TIMER()
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
|
||||
// CSplashDlg message handlers
|
||||
|
||||
void CSplashDlg::OnPaint()
|
||||
{
|
||||
CPaintDC dc(this); // device context for painting
|
||||
//CClientDC dc(NULL);
|
||||
RenderBack( dc, m_btmSplash, 0, 0 );
|
||||
}
|
||||
|
||||
BOOL CSplashDlg::OnEraseBkgnd(CDC* pDC)
|
||||
{
|
||||
// TODO: Add your message handler code here and/or call default
|
||||
|
||||
return CDialog::OnEraseBkgnd(pDC);
|
||||
}
|
||||
|
||||
void CSplashDlg::RenderBack( CDC &rDC, CBitmap &rBitmap, int Px, int Py , int SizeX, int SizeY )
|
||||
{
|
||||
CBitmap *pOldBitmap;
|
||||
CDC memDC;
|
||||
memDC.CreateCompatibleDC(&rDC);
|
||||
pOldBitmap=memDC.SelectObject(&rBitmap);
|
||||
CSize sBitmap=rBitmap.GetBitmapDimension();
|
||||
|
||||
BITMAP bmInfo;
|
||||
rBitmap.GetBitmap(&bmInfo);
|
||||
|
||||
if( SizeX == -1 && SizeY == -1 )
|
||||
rDC.BitBlt(Px,Py,bmInfo.bmWidth,bmInfo.bmHeight,&memDC,0,0,SRCCOPY);
|
||||
else
|
||||
rDC.BitBlt(Px,Py,SizeX,SizeY,&memDC,0,0,SRCCOPY);
|
||||
|
||||
memDC.SelectObject(pOldBitmap);
|
||||
}
|
||||
|
||||
|
||||
|
||||
BOOL CSplashDlg::OnInitDialog()
|
||||
{
|
||||
CDialog::OnInitDialog();
|
||||
|
||||
// TODO: Add extra initialization here
|
||||
|
||||
SetWindowPos( &wndTopMost, 0, 0, 463, 143, SWP_NOMOVE );
|
||||
|
||||
SetTimer( WM_FADETIMER, 10, NULL );
|
||||
|
||||
return TRUE; // return TRUE unless you set the focus to a control
|
||||
// EXCEPTION: OCX Property Pages should return FALSE
|
||||
}
|
||||
|
||||
void CSplashDlg::OnTimer(UINT nIDEvent)
|
||||
{
|
||||
// TODO: Add your message handler code here and/or call default
|
||||
m_nFade+=1;
|
||||
|
||||
if( m_nFade >= 180 )
|
||||
{
|
||||
KillTimer( nIDEvent );
|
||||
OnOK();
|
||||
}
|
||||
CDialog::OnTimer(nIDEvent);
|
||||
}
|
||||
Reference in New Issue
Block a user