Icons now work way better and don't have the the 'Rayview cuts icons' bug. It actually was a bug in the lel-guecs Sprite class that was using the TextureRect from the source sprite. Now its initialized with the framesize from the .json. This also uses the new guecs::Icon, but I have to fix that as it doesn't scale correctly. Closes #2.
This commit is contained in:
parent
b311713064
commit
ff7111b006
22 changed files with 81 additions and 64 deletions
|
@ -49,15 +49,6 @@ namespace gui {
|
|||
$gui.init();
|
||||
}
|
||||
|
||||
void MapViewUI::save_map(int compass_dir) {
|
||||
(void)compass_dir;
|
||||
// confirm we get two different maps
|
||||
auto out_img = $map_render->getTexture().copyToImage();
|
||||
bool worked = out_img.saveToFile("tmp/map_render.png");
|
||||
dbc::check(worked, "failed to render map");
|
||||
}
|
||||
|
||||
|
||||
void MapViewUI::render(sf::RenderWindow &window, int compass_dir) {
|
||||
$gui.render(window);
|
||||
System::draw_map($level, $map_tiles, $entity_map);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue