Have a sort of left gui going but not sure if I like it as a real texture yet. Will need to play with it more.
This commit is contained in:
parent
d38e2cb0f2
commit
9fe7cac79b
5 changed files with 12 additions and 8 deletions
9
gui.cpp
9
gui.cpp
|
@ -222,9 +222,14 @@ namespace gui {
|
|||
void FSM::draw_gui() {
|
||||
sf::RectangleShape rect({SCREEN_WIDTH - RAY_VIEW_WIDTH, SCREEN_HEIGHT});
|
||||
rect.setPosition({0,0});
|
||||
rect.setFillColor({50, 50, 50});
|
||||
rect.setFillColor({36, 33, 26});
|
||||
$window.draw(rect);
|
||||
|
||||
auto left_gui = $textures.sprite_textures.at("left_gui").sprite;
|
||||
left_gui->setPosition({0,0});
|
||||
left_gui->setColor({150, 150, 150});
|
||||
$window.draw(*left_gui);
|
||||
|
||||
sf::RectangleShape lower({RAY_VIEW_WIDTH, SCREEN_HEIGHT - RAY_VIEW_HEIGHT});
|
||||
lower.setPosition({RAY_VIEW_X,RAY_VIEW_HEIGHT});
|
||||
lower.setFillColor({40, 40, 40});
|
||||
|
@ -251,7 +256,7 @@ namespace gui {
|
|||
FRAME_LIMIT, DEBUG_BUILD, $rayview.$dir_x,
|
||||
$rayview.$dir_y, $rayview.$pos_x, $rayview.$pos_y));
|
||||
|
||||
$window.draw($text);
|
||||
// $window.draw($text);
|
||||
}
|
||||
|
||||
void FSM::render() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue