atrooney-online-2/include/aocharbutton.h
oldmud0 156a760eba Full revert to tag 2.6.2
Due to a countless number of changes made to the core that were not
fully understood, tested, or documented, it was decided to roll
everything back to the last known stable version (2.6.2).

Changes dropped include:
 - Witness needed
 - Shake
 - Frame SFX
 - Multiple custom objections
 - Multithreaded thumbnail generation
 - Looping
 - Various translation additions
 - "Mirror IC"
 - Color in IC log
 - An invocation of clang-format

Next time, work together and split your big fork into independently
testable feature branches.
2020-05-22 17:02:32 -05:00

45 lines
739 B
C++

#ifndef AOCHARBUTTON_H
#define AOCHARBUTTON_H
#include "aoapplication.h"
#include "aoimage.h"
#include <QPushButton>
#include <QString>
#include <QWidget>
#include <QFile>
class AOCharButton : public QPushButton
{
Q_OBJECT
public:
AOCharButton(QWidget *parent, AOApplication *p_ao_app, int x_pos, int y_pos, bool is_taken);
AOApplication *ao_app;
void refresh();
void reset();
void set_taken(bool is_taken);
void set_passworded();
void apply_taken_image();
void set_image(QString p_character);
private:
bool taken;
QWidget *m_parent;
AOImage *ui_taken;
AOImage *ui_passworded;
AOImage *ui_selector;
protected:
void enterEvent(QEvent *e);
void leaveEvent(QEvent *e);
};
#endif // AOCHARBUTTON_H