-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstorage.cpp
61 lines (56 loc) · 1.23 KB
/
storage.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
//storage.cpp
#include "stdafx.h"
#include "��ѧ����ô.h"
#include "MAINDlg.h"
void CMAINDlg::storage_initialization()
{
window=1; KillTimer(1);
storage_type=0; //�ж��ǵ������dzɾ�
sound_control();
}
void CMAINDlg::storage_paint()
{
draw_bmp1(6000,0,0,1);
if(storage_type==0)
{
draw_bmp1(6051,150,100,1);
draw_bmp1(6056,210,170,1);
draw_bmp1(6057,215,395,1);
draw_bmp1(6058,215,600,1);
draw_bmp1(6055,1252,108,1);
}
else if(storage_type==1)
{
draw_bmp1(6052,150,100,1);
draw_bmp1(6055,1265,106,1);
}
draw_bmp1(6053,230,118,1);
draw_bmp1(6054,395,112,1);
}
void CMAINDlg::storage_cursor()
{
int num=2;
for(int i=53;i<=55;i++)
{
if(re_bmp[i].PtInRect(mpt)){num=1;}
}
if(storage_type==0)
{
for(int i=56;i<=58;i++)
{
if(re_bmp[i].PtInRect(mpt)){num=1;}
}
}
if(num==1)SetCursor(cursor_hand);
else if(num==2)SetCursor(cursor_redhand);
}
void CMAINDlg::storage_lb()
{
if(re_bmp[53].PtInRect(mpt)){storage_type=0;}
else if(re_bmp[54].PtInRect(mpt)){storage_type=1;}
else if(re_bmp[55].PtInRect(mpt)){load_initialization(1);}
for(int i=56;i<=58;i++)
{
if(re_bmp[i].PtInRect(mpt)){game_initialization(i-55);}
}
}