|
|
@ -23,7 +23,6 @@ const int BASE_MAP_FONT_SIZE=90; |
|
|
|
const wchar_t BG_TILE = L'█'; |
|
|
|
const wchar_t BG_TILE = L'█'; |
|
|
|
const wchar_t UI_BASE_CHAR = L'█'; |
|
|
|
const wchar_t UI_BASE_CHAR = L'█'; |
|
|
|
const int BG_BOX_OFFSET=5; |
|
|
|
const int BG_BOX_OFFSET=5; |
|
|
|
const int UI_PANEL_BORDER_PX=5; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
enum class Value { |
|
|
|
enum class Value { |
|
|
|
BLACK=0, DARK_DARK, DARK_MID, |
|
|
|
BLACK=0, DARK_DARK, DARK_MID, |
|
|
@ -59,7 +58,7 @@ struct SFMLRender { |
|
|
|
bool resize_map(int new_size, Point &view_port); |
|
|
|
bool resize_map(int new_size, Point &view_port); |
|
|
|
void render_grid(const std::wstring &text, float x, float y); |
|
|
|
void render_grid(const std::wstring &text, float x, float y); |
|
|
|
void render_text(const std::wstring &text, float x, float y); |
|
|
|
void render_text(const std::wstring &text, float x, float y); |
|
|
|
void draw_text(Panel &panel, bool with_border=false); |
|
|
|
void draw_text(Panel &panel); |
|
|
|
void draw_grid(Panel &panel, float map_off_x=0.0f, float map_off_y=0.0f); |
|
|
|
void draw_grid(Panel &panel, float map_off_x=0.0f, float map_off_y=0.0f); |
|
|
|
|
|
|
|
|
|
|
|
bool poll_event(sf::Event &event) { |
|
|
|
bool poll_event(sf::Event &event) { |
|
|
|