Game of Ur 0.3.3
This is a computer adaptation of Game of Ur, written in C++ mainly using SDL and OpenGL.
Loading...
Searching...
No Matches
UrUITutorialsBrowser Class Reference

The aspect class responsible for loading, listing, and displaying the tutorial pages written for this game. More...

#include <ur_ui_tutorials_browser.hpp>

Inheritance diagram for UrUITutorialsBrowser:

Public Member Functions

std::shared_ptr< BaseSimObjectAspect > clone () const override
 
void loadScene (const std::string &sceneResourceName)
 

Static Public Member Functions

static std::string getSimObjectAspectTypeName ()
 
static std::shared_ptr< BaseSimObjectAspect > create (const nlohmann::json &jsonAspectProperties)
 

Public Attributes

ToyMaker::SignalObserver< const std::string & > mObserveButtonClicked
 

Private Member Functions

void onActivated () override
 
void onButtonClicked (const std::string &button)
 
bool hasPage (uint32_t page) const
 
void openPage (uint32_t page)
 
void loadTutorials ()
 

Private Attributes

uint32_t mPage {0}
 
std::string mTutorialsFilepath {}
 
std::string mTutorialTextAspect {}
 
std::string mTutorialHeadingAspect {}
 
std::string mTutorialImageAspect {}
 
std::vector< TutorialContentmTutorials {}
 

Detailed Description

The aspect class responsible for loading, listing, and displaying the tutorial pages written for this game.

Member Data Documentation

◆ mObserveButtonClicked

ToyMaker::SignalObserver<const std::string&> UrUITutorialsBrowser::mObserveButtonClicked
Initial value:
{
*this, "ButtonClickedObserved",
[this](const std::string& button) { this->onButtonClicked(button); }
}

The documentation for this class was generated from the following files: