23 lines
715 B
C++
23 lines
715 B
C++
//
|
|
// Created by sebastian on 12.02.26.
|
|
//
|
|
|
|
#ifndef DICEWARS_SIEDLER_UIRESSOURCEWIDGET_H
|
|
#define DICEWARS_SIEDLER_UIRESSOURCEWIDGET_H
|
|
#include "../../../engine/core/gui/uiComponent/UiComponent.h"
|
|
#include "../../../engine/core/gui/uiComponent/UiImage.h"
|
|
#include "../../../engine/core/gui/uiComponent/UiText.h"
|
|
#include "../../../engine/core/gui/uiMain/UiContainer.h"
|
|
|
|
|
|
class UiRessourceWidget : public UiComponent {
|
|
public:
|
|
UiRessourceWidget(GLuint iconTextureID, int amount, Font& font, const LayoutStyle& containerStyle, LayoutStyle& iconStyle, LayoutStyle& textStyle);
|
|
void setAmount(int newAmount);
|
|
private:
|
|
size_t iconIndex;
|
|
size_t textIndex;
|
|
};
|
|
|
|
|
|
#endif //DICEWARS_SIEDLER_UIRESSOURCEWIDGET_H
|