Tried to set the background color in the ftxui canvas and weirdly it started doing almost what I want with lighting, but I didn't write any code to do that. There's some bug in how I'm doing it that's causing it to set the colors...correctly. Must find out why.
This commit is contained in:
parent
fb1fd9d8bc
commit
1bb04b4562
5 changed files with 55 additions and 13 deletions
2
gui.hpp
2
gui.hpp
|
@ -39,6 +39,8 @@ struct ActionLog {
|
|||
const int GAME_MAP_POS = 600;
|
||||
|
||||
class GUI {
|
||||
sf::RectangleShape $darkness;
|
||||
sf::Texture $light_test;
|
||||
string $status_text = "NOT DEAD";
|
||||
Canvas $canvas;
|
||||
Map& $game_map;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue