
Modify all set_image calls to utilize said suffix helper function Dynamically change betweehn chatblank, chat, chatmed, chatbig based on the showname's length Use char.ini showname if showname is set to whitespace (doesn't yet check if char.ini showname is also whitespace)
26 lines
453 B
C++
26 lines
453 B
C++
//This class represents a static theme-dependent image
|
|
|
|
#ifndef AOIMAGE_H
|
|
#define AOIMAGE_H
|
|
|
|
#include "aoapplication.h"
|
|
|
|
#include <QLabel>
|
|
#include <QDebug>
|
|
|
|
class AOImage : public QLabel
|
|
{
|
|
public:
|
|
AOImage(QWidget *parent, AOApplication *p_ao_app);
|
|
~AOImage();
|
|
|
|
QWidget *m_parent;
|
|
AOApplication *ao_app;
|
|
|
|
bool set_image(QString p_image);
|
|
bool set_chatbox(QString p_path);
|
|
void set_size_and_pos(QString identifier);
|
|
};
|
|
|
|
#endif // AOIMAGE_H
|