29 lines
600 B
C++
29 lines
600 B
C++
#pragma once
|
|
|
|
#include "GuiWidget.h"
|
|
|
|
#include <glm/glm.hpp>
|
|
|
|
namespace td {
|
|
namespace gui {
|
|
|
|
class TowerPlacePopup : public GuiWidget {
|
|
private:
|
|
glm::vec2 m_ClickWorldPos;
|
|
public:
|
|
TowerPlacePopup(client::Client* client);
|
|
|
|
virtual void render();
|
|
|
|
void setClickPos(const glm::vec2& worldPos);
|
|
private:
|
|
static constexpr float m_TowerPopupTileWidth = 250.0f;
|
|
static constexpr float m_TowerPopupTileHeight = 250.0f;
|
|
|
|
static constexpr float m_PlaceTowerButtonWidth = 200.0f;
|
|
static constexpr float m_PlaceTowerButtonHeight = 45.0f;
|
|
};
|
|
|
|
} // namespace gui
|
|
} // namespace td
|