|
|
@ -20,8 +20,8 @@ SFMLRender::SFMLRender() : |
|
|
|
$window(sf::VideoMode($config.video_x,$config.video_y), "Roguish"), |
|
|
|
$window(sf::VideoMode($config.video_x,$config.video_y), "Roguish"), |
|
|
|
$map_font_size(0), |
|
|
|
$map_font_size(0), |
|
|
|
$line_spacing(0), |
|
|
|
$line_spacing(0), |
|
|
|
$default_fg(color::LIGHT_MID), |
|
|
|
$default_fg(ColorValue::LIGHT_MID), |
|
|
|
$default_bg(color::BLACK), |
|
|
|
$default_bg(ColorValue::BLACK), |
|
|
|
$ansi($default_fg, $default_bg) |
|
|
|
$ansi($default_fg, $default_bg) |
|
|
|
{ |
|
|
|
{ |
|
|
|
// force true color, but maybe I want to support different color sets
|
|
|
|
// force true color, but maybe I want to support different color sets
|
|
|
@ -30,7 +30,7 @@ SFMLRender::SFMLRender() : |
|
|
|
$ui_text.setFont($font); |
|
|
|
$ui_text.setFont($font); |
|
|
|
$ui_text.setPosition(0,0); |
|
|
|
$ui_text.setPosition(0,0); |
|
|
|
$ui_text.setCharacterSize($config.ui_font_size); |
|
|
|
$ui_text.setCharacterSize($config.ui_font_size); |
|
|
|
$ui_text.setFillColor(color::LIGHT_MID); |
|
|
|
$ui_text.setFillColor(ColorValue::LIGHT_MID); |
|
|
|
sf::Glyph glyph = $font.getGlyph($config.ui_base_char, $config.ui_font_size, false); |
|
|
|
sf::Glyph glyph = $font.getGlyph($config.ui_base_char, $config.ui_font_size, false); |
|
|
|
$ui_bounds = glyph.bounds; |
|
|
|
$ui_bounds = glyph.bounds; |
|
|
|
} |
|
|
|
} |
|
|
|