rtoss

Subversion Repositories:
Compare Path: Rev
With Path: Rev
/PokemonHackSourceCode/ @ 288  →  /PokemonHackSourceCode/ @ 289
/PokemonHackSourceCode/PokemonMemHack/PokemonMemHack.cpp
@@ -38,6 +38,7 @@
RGB(112,56,248), // 10¡¢¥É¥é¥´¥ó
RGB(112,88,112), // 11¡¢¤¢¤¯
};
DWORD g_dwBackClrCount = sizeof(g_rgBackClrTable) / sizeof(g_rgBackClrTable[0]);
 
COLORREF g_rgForeClrTable[] =
{
@@ -60,6 +61,7 @@
RGB(255,255,255), // 10¡¢¥É¥é¥´¥ó
RGB(255,255,255), // 11¡¢¤¢¤¯
};
DWORD g_dwForeClrCount = sizeof(g_rgForeClrTable) / sizeof(g_rgForeClrTable[0]);
 
// CPokemonMemHackApp
 
/PokemonHackSourceCode/PokemonMemHack/SkillComboBox.cpp
@@ -43,6 +43,12 @@
ASSERT(lpDrawItemStruct->CtlType == ODT_COMBOBOX);
ASSERT(g_MemRom.m_bOpened);
 
COLORREF rgDefClrTable[] =
{
RGB(255,255,255), // Bg
RGB(0,0,0), // Fg
};
 
WORD wSkill = (WORD)(lpDrawItemStruct->itemData);
if(wSkill >= SKILL_COUNT)
return;
@@ -61,11 +67,11 @@
dc.Attach(lpDrawItemStruct->hDC);
 
// set text color
clrForeOld = dc.SetTextColor(g_rgForeClrTable[pSkill->bType]);
clrBackOld = dc.SetBkColor(g_rgBackClrTable[pSkill->bType]);
clrForeOld = dc.SetTextColor(pSkill->bType < g_dwForeClrCount ? g_rgForeClrTable[pSkill->bType] : rgDefClrTable[1]);
clrBackOld = dc.SetBkColor(pSkill->bType < g_dwBackClrCount ? g_rgBackClrTable[pSkill->bType] : rgDefClrTable[0]);
 
// draw rectangle
dc.FillSolidRect(&rect, g_rgBackClrTable[pSkill->bType]);
dc.FillSolidRect(&rect, pSkill->bType < g_dwBackClrCount ? g_rgBackClrTable[pSkill->bType] : rgDefClrTable[0]);
if(lpDrawItemStruct->itemState & ODS_SELECTED)
dc.DrawEdge(&rect, EDGE_SUNKEN, BF_ADJUST | BF_RECT);
else
/PokemonHackSourceCode/PokemonMemHack/PokemonMemHack.h
@@ -24,6 +24,9 @@
#include "PokemonMemHackCore.h"
#include "PokemonMemHackDlg.h"
 
#define GUI_FONT_NAME "MS Gothic"
#define GUI_FONT_HEIGHT 12
 
enum { ui_count_none=0, ui_count_dec=1, ui_count_hex=2 };
 
struct ConfigStruct
@@ -70,3 +73,5 @@
 
extern COLORREF g_rgBackClrTable[];
extern COLORREF g_rgForeClrTable[];
extern DWORD g_dwBackClrCount;
extern DWORD g_dwForeClrCount;
/PokemonHackSourceCode/PokemonRomViewer/BreedSpecPage.h
@@ -22,9 +22,14 @@
CComboBox m_ctrlExpTypeList;
CComboBox m_ctrlSpecList[2];
 
CFont m_Font;
CStatic * m_Static;
CComboBox * m_ComboBox;
 
void SetSpecDesc(DWORD dwIndex);
 
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV Ö§³Ö
virtual BOOL OnInitDialog();
afx_msg void OnCbnSelchangeBrdSpecList0();
afx_msg void OnCbnSelchangeBrdSpecList1();
DECLARE_MESSAGE_MAP()
/PokemonHackSourceCode/PokemonRomViewer/PokemonRomViewer.h
@@ -19,6 +19,9 @@
 
#define APP_DLG_COUNT (6)
 
#define GUI_FONT_NAME "MS Gothic"
#define GUI_FONT_HEIGHT 12
 
/////////////////////////////////////////////////
enum { ui_count_none=0, ui_count_dec=1, ui_count_hex=2 };
 
/PokemonHackSourceCode/PokemonRomViewer/BreedItemPage.cpp
@@ -18,6 +18,40 @@
{
}
 
BOOL CBreedItemPage::OnInitDialog()
{
CBreedTabPage::OnInitDialog();
 
// TODO: ÔÚ´ËÌí¼Ó¶îÍâµÄ³õʼ»¯
m_Font.CreateFont(
GUI_FONT_HEIGHT, // nHeight
0, // nWidth
0, // nEscapement
0, // nOrientation
FW_NORMAL, // nWeight
FALSE, // bItalic
FALSE, // bUnderline
0, // cStrikeOut
ANSI_CHARSET, // nCharSet
OUT_DEFAULT_PRECIS, // nOutPrecision
CLIP_DEFAULT_PRECIS, // nClipPrecision
DEFAULT_QUALITY, // nQuality
DEFAULT_PITCH | FF_SWISS, // nPitchAndFamily
_T(GUI_FONT_NAME)); // lpszFacename
 
m_Static = (CStatic *) GetDlgItem(IDC_BRD_ITEM_DESC0);
m_Static->SetFont(&m_Font);
m_Static = (CStatic *) GetDlgItem(IDC_BRD_ITEM_DESC1);
m_Static->SetFont(&m_Font);
m_ListBox = (CListBox *) GetDlgItem(IDC_BRD_ITEM_LIST0);
m_ListBox->SetFont(&m_Font);
m_ListBox = (CListBox *) GetDlgItem(IDC_BRD_ITEM_LIST1);
m_ListBox->SetFont(&m_Font);
 
return TRUE; // return TRUE unless you set the focus to a control
// Òì³£: OCX ÊôÐÔÒ³Ó¦·µ»Ø FALSE
}
 
void CBreedItemPage::DoDataExchange(CDataExchange* pDX)
{
CBreedTabPage::DoDataExchange(pDX);
/PokemonHackSourceCode/PokemonRomViewer/BreedItemPage.h
@@ -21,6 +21,11 @@
protected:
CListBox m_ctrlItemList[2];
 
CFont m_Font;
CListBox * m_ListBox;
CStatic * m_Static;
 
virtual BOOL OnInitDialog();
afx_msg void SetItemDesc(UINT uID);
 
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV Ö§³Ö
/PokemonHackSourceCode/PokemonRomViewer/BreedSpecPage.cpp
@@ -17,6 +17,40 @@
{
}
 
BOOL CBreedSpecPage::OnInitDialog()
{
CBreedTabPage::OnInitDialog();
 
// TODO: ÔÚ´ËÌí¼Ó¶îÍâµÄ³õʼ»¯
m_Font.CreateFont(
GUI_FONT_HEIGHT, // nHeight
0, // nWidth
0, // nEscapement
0, // nOrientation
FW_NORMAL, // nWeight
FALSE, // bItalic
FALSE, // bUnderline
0, // cStrikeOut
ANSI_CHARSET, // nCharSet
OUT_DEFAULT_PRECIS, // nOutPrecision
CLIP_DEFAULT_PRECIS, // nClipPrecision
DEFAULT_QUALITY, // nQuality
DEFAULT_PITCH | FF_SWISS, // nPitchAndFamily
_T(GUI_FONT_NAME)); // lpszFacename
 
m_Static = (CStatic *) GetDlgItem(IDC_BRD_SPEC_DESC0);
m_Static->SetFont(&m_Font);
m_Static = (CStatic *) GetDlgItem(IDC_BRD_SPEC_DESC1);
m_Static->SetFont(&m_Font);
m_ComboBox = (CComboBox *) GetDlgItem(IDC_BRD_SPEC_LIST0);
m_ComboBox->SetFont(&m_Font);
m_ComboBox = (CComboBox *) GetDlgItem(IDC_BRD_SPEC_LIST1);
m_ComboBox->SetFont(&m_Font);
 
return TRUE; // return TRUE unless you set the focus to a control
// Òì³£: OCX ÊôÐÔÒ³Ó¦·µ»Ø FALSE
}
 
void CBreedSpecPage::DoDataExchange(CDataExchange* pDX)
{
CBreedTabPage::DoDataExchange(pDX);