Aug 30/31 updates. Tinkering with shared_ptr. Working towards exposing UI objects to Python UI. Color object updated for shared_ptr structure that will be repeated for the rest of the UI objects. Still a lot of open questions, but committing here to get back on track after a few hours wasted trying to solve this problem too generally via templates.

This commit is contained in:
John McCardle 2023-08-31 13:51:56 -04:00
commit 50d926fe37
11 changed files with 293 additions and 137 deletions

View file

@ -3,15 +3,15 @@
#include "Common.h"
#include "Scene.h"
#include "GameEngine.h"
#include <list>
#include "UI.h"
//#include <list>
//#include "UI.h"
class UITestScene: public Scene
{
sf::Text text;
UIFrame e1, e1a, e1aa;
UICaption e2;
std::vector<UIDrawable*> ui_elements;
//UIFrame e1, e1a, e1aa;
//UICaption e2;
//std::vector<UIDrawable*> ui_elements;
public:
UITestScene(GameEngine*);