aboutsummaryrefslogtreecommitdiff
path: root/include/aoscene.h
blob: 46d8c3b8a4cad06a7cee8ea76d25518ec5e87d45 (plain)
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
#ifndef AOSCENE_H
#define AOSCENE_H

#include <QLabel>
#include <QDebug>
#include <QMovie>

class Courtroom;
class AOApplication;

class AOScene : public QLabel
{
  Q_OBJECT
public:
  explicit AOScene(QWidget *parent, AOApplication *p_ao_app);

  void set_image(QString p_image);
  void set_legacy_desk(QString p_image);

  //Move the label itself around
  void move(int ax, int ay);

  //This is somewhat pointless now as there's no "QMovie" object to resize, aka no "combo" to speak of
  void combo_resize(int w, int h);
private:
  QWidget *m_parent;
  QMovie *m_movie;
  AOApplication *ao_app;
  QString last_image;

  // These are the X and Y values before they are fixed based on the sprite's width.
  int x = 0;
  int y = 0;
  // These are the width and height values before they are fixed based on the sprite's width.
  int f_w = 0;
  int f_h = 0;
};

#endif // AOSCENE_H