-
Notifications
You must be signed in to change notification settings - Fork 0
/
startwidget.h
60 lines (54 loc) · 1.36 KB
/
startwidget.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
#ifndef STARTWIDGET_H
#define STARTWIDGET_H
#include "menubutton.h"
#include "gamewidget.h"
#include <QWidget>
#include <QMediaPlayer>
#include <QPushButton>
#include "hoverbutton.h"
#include <QTableWidget>
#include <settingwidget.h>
#include <QTextEdit>
#include <dialog.h>
QT_BEGIN_NAMESPACE
namespace Ui { class StartWidget; }
QT_END_NAMESPACE
class StartWidget : public QWidget
{
Q_OBJECT
public:
StartWidget(QWidget *parent = nullptr);
~StartWidget();
//下一层界面
GameWidget* gameWidget;
//按钮
MenuButton* startButton, *recordButton, *settingButton;
HoverButton* exitButton;
//音效
QMediaPlayer* bgLoading, *bgMainmenu;
bool is_end = false; //背景音乐循环是否结束
private:
Ui::StartWidget *ui;
QTextEdit* userText;
QPushButton* maskUserText;
Dialog* setNameDialog;
QLabel* transitionLabel;
//记录栏
QWidget* recordWidget;
QLabel *recordLabel, *topRankLabel;
QPushButton* mask;
QTableWidget* recordTable;
//设置栏
SettingWidget* settingWidget;
void ShowBackground(); //背景图片
void ShowButton(); //显示按钮
void TransitionAnimation();
void ShowRecordBoard();
void HideRecordBoard();
void InitWidget();
void InitUser();
void SetUser();
void Restore();
void ChildFrameClose();
};
#endif // STARTWIDGET_H