-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtitlescreen.h
53 lines (44 loc) · 1.17 KB
/
titlescreen.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
#ifndef TITLESCREEN_H
#define TITLESCREEN_H
#include <QGraphicsOpacityEffect>
#include <QMediaPlayer>
#include <QMediaPlaylist>
#include <QPropertyAnimation>
#include <QPushButton>
#include <QTimer>
#include <QWidget>
#include "aboutscreen.h"
#include "connectscreen.h"
#include "exitscreen.h"
namespace Ui {
class TitleScreen;
}
class TitleScreen : public QWidget {
Q_OBJECT
public:
explicit TitleScreen(QWidget *parent = nullptr);
~TitleScreen();
private:
Ui::TitleScreen *ui;
QGraphicsOpacityEffect *m_opacityEffect;
QPropertyAnimation *m_opacityAnimation;
QTimer *m_timer;
QMediaPlayer *m_player;
QPropertyAnimation *m_volumeAnimation;
AboutScreen *m_aboutScreen;
ConnectScreen *m_connectScreen;
ExitScreen *m_exitScreen;
void initUI();
void btnsOpacityEffect();
void updateLabel();
void playThemeMusic();
void jumpToAboutScreen();
void jumpToConnectScreen();
bool tryLauchZZZGame();
void openZZZWiki();
void jumpToExitScreen();
void rePlayThemeMusic();
void louderThemeMusic();
void quieterThemeMusic();
};
#endif // TITLESCREEN_H