📄 chelpdlg.cpp
字号:
/*
Crazy Eggs Remade By Kevin Lynx
File : CHelpDlg.cpp
Desc : create the help dialog
Date : 2007.1.25
*/
#include <ImageFont.h>
#include "CHelpDlg.h"
#include "../CGame.h"
#include "../resourceGen/res.h"
CHelpDlg::CHelpDlg() :
Dialog( DIALOG_SMALL, DIALOG_BTN, DLG_ID, true, "Help", "", "OK", Dialog::BUTTONS_FOOTER )
{
mDialogListener = this;
SetHeaderFont( NORMAL_FONT );
( ( ImageFont* ) mHeaderFont)->SetScale( 1.5 );
SetLinesFont( NORMAL_FONT );
SetButtonFont( NORMAL_FONT );
SetColor( Dialog::COLOR_HEADER, Color( 0, 0, 255 ) );
SetColor( Dialog::COLOR_BUTTON_TEXT, Color( 255, 237, 120 ) );
SetColor( Dialog::COLOR_LINES, Color( 0, 100, 255 ) );
mContentInsets = Insets( 45, 60, 40, 50 );
mSpaceAfterHeader = 20;
mDialogLines = "Just link two eggs by three or less beelines, no more than two turnings!Like :" +
g_authorInfo;
Resize( ( G_WINDOW_WIDTH - 500 ) / 2, ( G_WINDOW_HEIGHT - 550 ) / 2, 500, 570 );
}
CHelpDlg::~CHelpDlg()
{
}
void CHelpDlg::Draw( Graphics *g )
{
Dialog::Draw( g );
//customer draw
g->DrawImage( HELP_LINK_TYPE, mX - mWidth / 2 + 170, mY + 130 );
}
void CHelpDlg::DialogButtonDepress( int theDialogId, int theButtonId )
{
if( theDialogId == DLG_ID )
{
gSexyAppBase->KillDialog( this );
}
}
void CHelpDlg::MouseDrag( int x, int y )
{
//i donot want the dialog can be moved, so here i do nothing
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -