43 inline static std::string getSimObjectAspectTypeName() {
return "UrUITutorialsBrowser"; }
44 static std::shared_ptr<BaseSimObjectAspect> create(
const nlohmann::json& jsonAspectProperties);
45 std::shared_ptr<BaseSimObjectAspect>
clone()
const override;
47 void loadScene(
const std::string& sceneResourceName);
51 std::string mTutorialsFilepath {};
52 std::string mTutorialTextAspect {};
53 std::string mTutorialHeadingAspect {};
54 std::string mTutorialImageAspect {};
55 std::vector<TutorialContent> mTutorials {};
59 void onButtonClicked(
const std::string& button);
61 bool hasPage(uint32_t page)
const;
62 void openPage(uint32_t page);
68 *
this,
"ButtonClickedObserved",
69 [
this](
const std::string& button) { this->onButtonClicked(button); }
std::shared_ptr< BaseSimObjectAspect > clone() const override
A method which must be overridden to specify how a new aspect should be constructed as a copy of this...
Definition ur_ui_tutorials_browser.cpp:23
void onActivated() override
Callback for when the aspect is activated (after it is attached to an active SimObject,...
Definition ur_ui_tutorials_browser.cpp:53
The data associated with a single tutorial page.
Definition ur_ui_tutorials_browser.hpp:28