27 lines
546 B
C++
27 lines
546 B
C++
#pragma once
|
|
|
|
#include "GuiWidget.h"
|
|
|
|
#include <array>
|
|
#include "game/Mobs.h"
|
|
|
|
namespace td {
|
|
namespace gui {
|
|
|
|
class SummonMenu : public GuiWidget {
|
|
private:
|
|
bool m_MenuOpened;
|
|
int m_ImageWidth = 100;
|
|
static constexpr int m_MobTypeCount = static_cast<std::size_t>(td::game::MobType::MOB_COUNT);
|
|
std::array<int, static_cast<std::size_t>(m_MobTypeCount)> m_Values;
|
|
public:
|
|
SummonMenu(client::Client* client);
|
|
|
|
virtual void render();
|
|
private:
|
|
void setSummonMax(int valueIndex);
|
|
};
|
|
|
|
} // namespace gui
|
|
} // namespace td
|