Brought the UIStack over from the previous game to use here.
This commit is contained in:
parent
25e3935170
commit
6aa1a877c9
7 changed files with 241 additions and 0 deletions
|
|
@ -7,6 +7,7 @@
|
|||
namespace guecs {
|
||||
using std::make_shared;
|
||||
|
||||
// BUG: this seems to center things wrong in lel layouts
|
||||
template<typename T>
|
||||
void sfml_center_helper(T& obj, lel::Cell& cell, int padding) {
|
||||
sf::Vector2f position{float(cell.x + padding), float(cell.y + padding)};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue