atrooney-online-2/include/aoimage.h
Crystalwarrior b085be5a2a Add two new helper functions - get_design_element and get_static_image_suffix
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)
2019-09-16 21:08:43 +03:00

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