#include "CreditsSubScript.h" #include "../../Events.h" #include "../IFloatingWindowScript.h" #include "../ButtonReplaySubScript.h" #include #include #include #include #include using namespace crepe; CreditsSubScript::CreditsSubScript(const std::string & tag) { this->tag = tag; } void CreditsSubScript::init() { IButtonScript::init(); this->subscribe([this](const ButtonPressEvent & e) { return this->on_button_press(e); }); this->subscribe([this](const ShowCreditsEvent & e) { this->enable_all(); return false; }); this->disable_all(); } bool CreditsSubScript::disable_all() { IFloatingWindowScript::disable_all_sprites(); RefVector