Squashed: grid-entity-integration partial features for 7DRL 2025 deployment

This squash commit includes changes from April 21st through 28th, 2024, and the past 3 days of work at 7DRL.
Rather than resume my feature branch work, I made minor changes to safe the C++ functionality and wrote workarounds in Python.

I'm very likely to delete this commit from history by rolling master back to the previous commit, and squash merging a finished feature branch.
This commit is contained in:
John McCardle 2025-03-05 20:21:24 -05:00
commit e928dda4b3
22 changed files with 843 additions and 622 deletions

View file

@ -44,14 +44,15 @@ PyObjectsEnum UIFrame::derived_type()
return PyObjectsEnum::UIFRAME;
}
void UIFrame::render(sf::Vector2f offset)
void UIFrame::render(sf::Vector2f offset, sf::RenderTarget& target)
{
box.move(offset);
Resources::game->getWindow().draw(box);
//Resources::game->getWindow().draw(box);
target.draw(box);
box.move(-offset);
for (auto drawable : *children) {
drawable->render(offset + box.getPosition());
drawable->render(offset + box.getPosition(), target);
}
}