MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / activate

Method activate

Source/TextButton.cpp:38–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38void TextButton::activate() {
39 MenuItemSprite::activate();
40 this->stopAllActions();
41 this->setScale(1.0f);
42 this->m_fCallback(this);
43}
44
45bool TextButton::init(std::string_view text, std::string_view font, float width, float height, std::string_view bgTexture, std::function<void(TextButton*)> callback) {
46 if (!MenuItemSprite::initWithNormalSprite(nullptr, nullptr, nullptr, nullptr)) return false;

Callers

nothing calls this directly

Calls 1

setScaleMethod · 0.80

Tested by

no test coverage detected