Files
Tower-Defense/include/client/render/gui/TowerPlacePopup.h
2023-08-13 11:59:13 +02:00

29 lines
569 B
C++

#pragma once
#include "GuiWidget.h"
#include "td/Defines.h"
namespace td {
namespace gui {
class TowerPlacePopup : public GuiWidget {
private:
Vec2f m_ClickWorldPos;
public:
TowerPlacePopup(client::Client* client);
virtual void Render();
void SetClickPos(const Vec2f& worldPos);
private:
static constexpr float m_TowerPopupTileWidth = 200.0f;
static constexpr float m_TowerPopupTileHeight = 200.0f;
static constexpr float m_PlaceTowerButtonWidth = 150.0f;
static constexpr float m_PlaceTowerButtonHeight = 35.0f;
};
} // namespace gui
} // namespace td