1
#ifndef BTANKS_MENU_MEDALS_H__
2
#define BTANKS_MENU_MEDALS_H__
16
class Medals : public Container {
19
bool onKey(const SDL_keysym sym);
20
bool onMouse(const int button, const bool pressed, const int x, const int y);
21
virtual void hide(const bool hide = true);
22
void set(const Campaign * c);
23
virtual void render(sdlx::Surface &surface, const int x, const int y) const;
25
void tick(const float dt);
33
void get_medals(const std::string &id, int &now, int &total) const;
37
const Campaign * campaign;
38
std::vector<Image *> tiles;
42
Label * title, *numbers;
44
Image *b_left, *b_right;