diff options
| author | oldmud0 <oldmud0@users.noreply.github.com> | 2020-05-02 21:29:06 -0500 |
|---|---|---|
| committer | oldmud0 <oldmud0@users.noreply.github.com> | 2020-05-02 21:29:06 -0500 |
| commit | bbdad2a40d8f02fe738830d9cf66ad4ec2fa86cf (patch) | |
| tree | 8e8892d24684f005b0e18624677957791e1738b7 /include/aocharmovie.h | |
| parent | 1e2d71fb96ca85fa50c172c2f1cf22b2620bacd2 (diff) | |
| parent | 992c0b14e155059a7e22ad72c0309b620c850a46 (diff) | |
Merge branch '2.7-rc'
Includes full code reformat.
# Conflicts:
# src/aomusicplayer.cpp
# src/path_functions.cpp
Diffstat (limited to 'include/aocharmovie.h')
| -rw-r--r-- | include/aocharmovie.h | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/include/aocharmovie.h b/include/aocharmovie.h index 6c127a6..6db490b 100644 --- a/include/aocharmovie.h +++ b/include/aocharmovie.h @@ -1,19 +1,17 @@ #ifndef AOCHARMOVIE_H #define AOCHARMOVIE_H -#include <QMovie> -#include <QLabel> -#include <QTimer> +#include "include/aosfxplayer.h" +#include "include/courtroom.h" #include <QDebug> #include <QImageReader> +#include <QLabel> +#include <QMovie> #include <QPainter> -#include "include/aosfxplayer.h" -#include "include/courtroom.h" - +#include <QTimer> class AOApplication; -class AOCharMovie : public QLabel -{ +class AOCharMovie : public QLabel { Q_OBJECT public: @@ -24,12 +22,10 @@ public: void play_talking(QString p_char, QString p_emote); void play_idle(QString p_char, QString p_emote); - void set_flipped(bool p_flipped) {m_flipped = p_flipped;} + void set_flipped(bool p_flipped) { m_flipped = p_flipped; } void LoadImageWithStupidMethodForFlipSupport(QImage image); void stop(); - void move(int ax, int ay); - void combo_resize(int w, int h); void play_frame_sfx(); void sfx_two_network_boogaloo(); @@ -42,6 +38,10 @@ public: QString frame_screenshake_hellstring = ""; QString frame_realization_hellstring = ""; bool use_networked_framehell = false; + + void move(int ax, int ay); + void combo_resize(int w, int h); + private: AOApplication *ao_app; @@ -52,14 +52,15 @@ private: QString last_path; QString current_emote; QString current_char; + int default_w; + int default_h; const int time_mod = 62; - // These are the X and Y values before they are fixed based on the sprite's width. + // These are the X and Y values before they are fixed based on the sprite's + // width. int x = 0; int y = 0; - int default_w; - int default_h; bool m_flipped = false; |
