Rewrote the ansi parser to exactly callback on color setting, so now just need to clean this all up and fix a few little bugs.
This commit is contained in:
parent
96ee16e598
commit
89a70f398a
9 changed files with 274 additions and 126 deletions
|
@ -55,9 +55,10 @@ struct SFMLRender {
|
|||
sf::Color color(Value val);
|
||||
sf::Sprite &get_text_sprite(wchar_t tile);
|
||||
bool resize_map(int new_size, Point &view_port);
|
||||
void render_grid(const std::wstring &text, float x, float y);
|
||||
void render_text(const std::wstring &text, float x, float y);
|
||||
void draw_text_ui(Panel &panel, bool with_border=false);
|
||||
void draw_screen(Panel &panel, float map_off_x=0.0f, float map_off_y=0.0f);
|
||||
void draw_text(Panel &panel, bool with_border=false);
|
||||
void draw_grid(Panel &panel, float map_off_x=0.0f, float map_off_y=0.0f);
|
||||
|
||||
bool poll_event(sf::Event &event) {
|
||||
return $window.pollEvent(event);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue