The aspect class responsible for managing the records browser, responsible for listing and displaying records for completed games.
More...
#include <ur_ui_records_browser.hpp>
|
| enum class | Mode { BROWSE
, DETAIL
} |
| |
|
|
std::shared_ptr< BaseSimObjectAspect > | clone () const override |
| |
|
void | loadScene (const std::string &sceneResourceName) |
| |
|
|
static std::string | getSimObjectAspectTypeName () |
| |
|
static std::shared_ptr< BaseSimObjectAspect > | create (const nlohmann::json &jsonAspectProperties) |
| |
|
|
void | refreshRecords () |
| |
|
void | onButtonClicked (const std::string &button) |
| |
|
void | onActivated () override |
| |
|
bool | hasPage (uint32_t page) const |
| |
|
void | openPage (uint32_t page) |
| |
|
void | openDetailedRecord (uint32_t entry) |
| |
|
void | closeDetailedRecord () |
| |
|
bool | onCancel (const ToyMaker::ActionData &actionData, const ToyMaker::ActionDefinition &actionDefinition) |
| |
|
|
Mode | mMode { Mode::BROWSE } |
| |
|
uint32_t | mPage {0} |
| |
|
std::vector< GameRecord > | mFetchedRecords {} |
| |
| std::weak_ptr< ToyMaker::FixedActionBinding > | handleCancel |
| |
| std::weak_ptr< ToyMaker::FixedActionBinding > | handlerLeftRelease |
| |
The aspect class responsible for managing the records browser, responsible for listing and displaying records for completed games.
◆ handleCancel
| std::weak_ptr<ToyMaker::FixedActionBinding> UrUIRecordsBrowser::handleCancel |
|
private |
Initial value:{ declareFixedActionBinding(
"General", "Cancel", [this](const ToyMaker::ActionData& actionData, const ToyMaker::ActionDefinition& actionDefinition) {
return this->onCancel(actionData, actionDefinition);
}
)}
◆ handlerLeftRelease
| std::weak_ptr<ToyMaker::FixedActionBinding> UrUIRecordsBrowser::handlerLeftRelease |
|
private |
Initial value:{
declareFixedActionBinding(
"UI", "Untap", [this](const ToyMaker::ActionData& actionData, const ToyMaker::ActionDefinition& actionDefinition) {
return this->onCancel(actionData, actionDefinition);
}
)
}
◆ mObserveButtonClicked
| ToyMaker::SignalObserver<const std::string&> UrUIRecordsBrowser::mObserveButtonClicked |
Initial value:{
*this, "ButtonClickedObserved",
[this](const std::string& button) { this->onButtonClicked(button); }
}
The documentation for this class was generated from the following files: