-
Notifications
You must be signed in to change notification settings - Fork 1
/
GUI.h
356 lines (354 loc) · 20.1 KB
/
GUI.h
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
#pragma once
#pragma once
#include<iostream>
#include<conio.h>
#include<Windows.h>
#include<thread>
#include"loading.h"
#pragma comment(lib,"WINMM.LIB")
using namespace std;
void powerby(void);
void bGM(void)
{
PlaySound(TEXT("bgm.wav"), NULL, SND_FILENAME | SND_ASYNC | SND_LOOP);
}
void stopBGM(void)
{
PlaySound(NULL, NULL, SND_FILENAME);
}
void load1(void)
{
system("cls");
cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
cout << "+ ____ _ __ __ For Windows +" << endl;
cout << "+| _ \\ ___| |_| \\/ | __ _ _ __ __ _ __ _ ___ +" << endl;
cout << "+| |_) / _ \\ __| |\\/| |/ _` | '_ \\ / _` |/ _` |/ _ \\ +" << endl;
cout << "+| __/ __/ |_| | | | (_| | | | | (_| | (_| | __/ +" << endl;
cout << "+|_| \\___|\\__|_| |_|\\__,_|_| |_|\\__,_|\\__, |\\___| +" << endl;
cout << "+ |___/ +" << endl;
cout << "+[====================== ]50% fv1.1 +" << endl;
cout << "+ author:zd,gwj,szy,jy +" << endl;
cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
loadout();
Sleep(1000);
}
void load2(void)
{
system("cls");
cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
cout << "+ ____ _ __ __ For Windows +" << endl;
cout << "+| _ \\ ___| |_| \\/ | __ _ _ __ __ _ __ _ ___ +" << endl;
cout << "+| |_) / _ \\ __| |\\/| |/ _` | '_ \\ / _` |/ _` |/ _ \\ +" << endl;
cout << "+| __/ __/ |_| | | | (_| | | | | (_| | (_| | __/ +" << endl;
cout << "+|_| \\___|\\__|_| |_|\\__,_|_| |_|\\__,_|\\__, |\\___| +" << endl;
cout << "+ |___/ +" << endl;
cout << "+[================================ ]75% fv1.1 +" << endl;
cout << "+ author:zd,gwj,szy,jy +" << endl;
cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
loadout();
Sleep(1000);
}
void load3(void)
{
system("cls");
cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
cout << "+ ____ _ __ __ For Windows +" << endl;
cout << "+| _ \\ ___| |_| \\/ | __ _ _ __ __ _ __ _ ___ +" << endl;
cout << "+| |_) / _ \\ __| |\\/| |/ _` | '_ \\ / _` |/ _` |/ _ \\ +" << endl;
cout << "+| __/ __/ |_| | | | (_| | | | | (_| | (_| | __/ +" << endl;
cout << "+|_| \\___|\\__|_| |_|\\__,_|_| |_|\\__,_|\\__, |\\___| +" << endl;
cout << "+ |___/ +" << endl;
cout << "+[=========================================== ]99% fv1.1 +" << endl;
cout << "+ author:zd,gwj,szy,jy +" << endl;
cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
loadout();
Sleep(1000);
}
void load4(void)
{
system("cls");
cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
cout << "+ ____ _ __ __ For Windows +" << endl;
cout << "+| _ \\ ___| |_| \\/ | __ _ _ __ __ _ __ _ ___ +" << endl;
cout << "+| |_) / _ \\ __| |\\/| |/ _` | '_ \\ / _` |/ _` |/ _ \\ +" << endl;
cout << "+| __/ __/ |_| | | | (_| | | | | (_| | (_| | __/ +" << endl;
cout << "+|_| \\___|\\__|_| |_|\\__,_|_| |_|\\__,_|\\__, |\\___| +" << endl;
cout << "+ |___/ +" << endl;
cout << "+[============================================]100% fv1.1 +" << endl;
cout << "+ author:zd,gwj,szy,jy +" << endl;
cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
loadout();
Sleep(1000);
powerby();
}
void authorGUI(void)
{
powerby();
system("cls");
cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
cout << "+ +" << endl;
cout << "+ +" << endl;
cout << "+ 前端版本号 +" << endl;
cout << "+ v1.1 +" << endl;
cout << "+ 内核版本号 +" << endl;
cout << "+ v1.0 +" << endl;
cout << "+ +" << endl;
cout << "+ +" << endl;
cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
Sleep(2000);
system("cls");
cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
cout << "+ +" << endl;
cout << "+ +" << endl;
cout << "+ 开发者列表: +" << endl;
cout << "+ 操作界面:周典 +" << endl;
cout << "+ 数据结构:宋哲宇 +" << endl;
cout << "+ 文件系统:蒋燕&管文杰 +" << endl;
cout << "+ +" << endl;
cout << "+ +" << endl;
cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
Sleep(2000);
system("cls");
cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
cout << "+ +" << endl;
cout << "+ +" << endl;
cout << "+ 特别谢明: +" << endl;
cout << "+ 盛恺 +" << endl;
cout << "+ 龙方淞 +" << endl;
cout << "+ +" << endl;
cout << "+ +" << endl;
cout << "+ +" << endl;
cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
Sleep(2000);
}
void powerby(void)
{ //
system("cls");
cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
cout << "+ power by +" << endl;
cout << "+ ____ __ __ ____ +" << endl;
cout << "+ / ___| \\/ | _ \\ +" << endl;
cout << "+ | | | |\\/| | | | | +" << endl;
cout << "+ | |___| | | | |_| | +" << endl;
cout << "+ \\____|_| |_|____/ +" << endl;
cout << "+ +" << endl;
cout << "+ author:zd,gwj,szy,jy +" << endl;
cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
Sleep(2000);
}
void mainMenu(void)
{
system("cls"); //
cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
cout << "+ 待操作的文件 +" << endl;
cout << "+ 1) 宠物信息 __ __ _ +" << endl;
cout << "+ 2) 主人信息 | \\/ | __ _(_)_ __ +" << endl;
cout << "+ | |\\/| |/ _` | | '_ \\ +" << endl;
cout << "+ | | | | (_| | | | | | +" << endl;
cout << "+ |_| |_|\\__,_|_|_| |_| +" << endl;
cout << "+ M) 设置 +" << endl;
cout << "+ Q) 退出 +" << endl;
cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
}
void petMenu(void)
{
system("cls"); //
cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
cout << "+ 待操作的文件>>宠物 +" << endl;
cout << "+ 1) 查询宠物信息 ____ _ +" << endl;
cout << "+ 2) 删除宠物信息 | _ \\ ___| |_ +" << endl;
cout << "+ 3) 修改宠物信息 | |_) / _ \\ __| +" << endl;
cout << "+ 4) 增加宠物信息 | __/ __/ |_ +" << endl;
cout << "+ |_| \\___|\\__| +" << endl;
cout << "+ M) 设置 +" << endl;
cout << "+ B) 后退 +" << endl;
cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
}
void ChangePetMenu(void)
{
system("cls"); //
cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
cout << "+ 待操作的文件>>宠物>>修改宠物信息 +" << endl;
cout << "+ 1) 修改寄养天数 ____ _ +" << endl;
cout << "+ 2) 修改寄养价格 | _ \\ ___| |_ +" << endl;
cout << "+ | |_) / _ \\ __| +" << endl;
cout << "+ | __/ __/ |_ +" << endl;
cout << "+ |_| \\___|\\__| +" << endl;
cout << "+ M) 设置 +" << endl;
cout << "+ B) 后退 +" << endl;
cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
}
void SearchPetMenu(void)
{
system("cls"); //
cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
cout << "+ 待操作的文件>>宠物>>查询宠物信息 +" << endl;
cout << "+ 1) 通过编号查询 ____ _ +" << endl;
cout << "+ 2) 通过名字查询 | _ \\ ___| |_ +" << endl;
cout << "+ 3) 查询全部宠物 | |_) / _ \\ __| +" << endl;
cout << "+ | __/ __/ |_ +" << endl;
cout << "+ |_| \\___|\\__| +" << endl;
cout << "+ M) 设置 +" << endl;
cout << "+ B) 后退 +" << endl;
cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
}
void DeletePetMenu(void)
{
system("cls"); //
cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
cout << "+ 待操作的文件>>宠物>>删除宠物信息 +" << endl;
cout << "+ 1) 通过编号删除 ____ _ +" << endl;
cout << "+ 2) 通过名字删除 | _ \\ ___| |_ +" << endl;
cout << "+ | |_) / _ \\ __| +" << endl;
cout << "+ | __/ __/ |_ +" << endl;
cout << "+ |_| \\___|\\__| +" << endl;
cout << "+ M) 设置 +" << endl;
cout << "+ B) 后退 +" << endl;
cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
}
void masterMenu(void)
{
system("cls"); //
cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
cout << "+ 待操作的文件>>主人 +" << endl;
cout << "+ 1) 查询全部主人信息 __ __ _ +" << endl;
cout << "+ 2) 花费排序 | \\/ | __ _ ___| |_ ___ _ __ +" << endl;
cout << "+ | |\\/| |/ _` / __| __/ _ \\ '__| +" << endl;
cout << "+ | | | | (_| \\__ \\ || __/ | +" << endl;
cout << "+ |_| |_|\\__,_|___/\\__\\___|_| +" << endl;
cout << "+ M) 设置 +" << endl;
cout << "+ B) 后退 +" << endl;
cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
}
void settingMenu(void)
{
system("cls"); //
cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
cout << "+ 设置菜单 +" << endl;
cout << "+ P) 音乐暂停/播放 _ _ _ +" << endl;
cout << "+ T) 主题设置 ___ ___| |_| |_(_)_ __ __ _ +" << endl;
cout << "+ A) 开发者列表 / __|/ _ \\ __| __| | '_ \\ / _` | +" << endl;
cout << "+ S) 保存 \\__ \\ __/ |_| |_| | | | | (_| | +" << endl;
cout << "+ |___/\\___|\\__|\\__|_|_| |_|\\__, | +" << endl;
cout << "+ |___/ +" << endl;
cout << "+ B) 后退 +" << endl;
cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
}
void settingthemeMenu(void)
{
system("cls"); //
cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
cout << "+ 设置菜单>>主题设置 +" << endl;
cout << "+ 1) 经典黑白 _ _ _ +" << endl;
cout << "+ 2) 黑白颠倒 ___ ___| |_| |_(_)_ __ __ _ +" << endl;
cout << "+ 3) 鲜血玫瑰 / __|/ _ \\ __| __| | '_ \\ / _` | +" << endl;
cout << "+ 4) 如同专家 \\__ \\ __/ |_| |_| | | | | (_| | +" << endl;
cout << "+ 5) 深蓝幻想 |___/\\___|\\__|\\__|_|_| |_|\\__, | +" << endl;
cout << "+ 6) 青青草原 |___/ +" << endl;
cout << "+ B) 后退 +" << endl;
cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
}
void power(void)
{
system("cls");
}
void error(void)
{
system("cls");
cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
cout << "+ +" << endl;
cout << "+ +" << endl;
cout << "+ ___ _ __ _ __ ___ _ __ +" << endl;
cout << "+ / _ \\ '__| '__/ _ \\| '__| +" << endl;
cout << "+ | __/ | | | | (_) | | +" << endl;
cout << "+ \\___|_| |_| \\___/|_| +" << endl;
cout << "+ +" << endl;
cout << "+ +" << endl;
cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
Sleep(1000);
}
void success(void)
{
system("cls");
cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
cout << "+ +" << endl;
cout << "+ +" << endl;
cout << "+ ___ _ _ ___ ___ ___ ___ ___ +" << endl;
cout << "+ / __| | | |/ __/ __/ _ \\/ __/ __| +" << endl;
cout << "+ \\__ \\ |_| | (_| (_| __/\\__ \\__ \\ +" << endl;
cout << "+ |___/\\__,_|\\___\\___\\___||___/___/ +" << endl;
cout << "+ +" << endl;
cout << "+ +" << endl;
cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
Sleep(1000);
}
void log1(void)
{
system("cls");
cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
cout << "+ +" << endl;
cout << "+ +" << endl;
cout << "+ +" << endl;
cout << "+ 提示 +" << endl;
cout << "+ 请输入你要操作的宠物文件名 +" << endl;
cout << "+ +" << endl;
cout << "+ +" << endl;
cout << "+ +" << endl;
cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
}
void log2(void)
{
system("cls");
cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
cout << "+ +" << endl;
cout << "+ +" << endl;
cout << "+ +" << endl;
cout << "+ 提示 +" << endl;
cout << "+ 请输入你要操作的主人文件名 +" << endl;
cout << "+ +" << endl;
cout << "+ +" << endl;
cout << "+ +" << endl;
cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
}
void music(void)
{
system("cls");
cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
cout << "+ +" << endl;
cout << "+ +" << endl;
cout << "+ +" << endl;
cout << "+ 请问您是否需要音乐 +" << endl;
cout << "+ Y/N +" << endl;
cout << "+ +" << endl;
cout << "+ +" << endl;
cout << "+ +" << endl;
cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
}
int MusicCountrl(int bgmtimer)//音乐控制
{
if (bgmtimer == 0)
{
stopBGM();
bgmtimer = 1;
}
else
{
bGM();
bgmtimer = 0;
}
return bgmtimer;
}
void settingtheme(void)
{
system("cls"); //
cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
cout << "+ 请选择您喜欢的主题(随后可以随时更改) +" << endl;
cout << "+ +" << endl;
cout << "+ 1) 经典黑白 +" << endl;
cout << "+ 2) 黑白颠倒 +" << endl;
cout << "+ 3) 鲜血玫瑰 +" << endl;
cout << "+ 4) 如同专家 +" << endl;
cout << "+ 5) 深蓝幻想 +" << endl;
cout << "+ 6) 青青草原 +" << endl;
cout << "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
}