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

Class AlertLayer

Source/AlertLayer.h:24–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22class MenuItemSpriteExtra;
23
24class AlertLayer : public PopupLayer {
25private:
26 bool init(std::string_view title, std::string_view desc, std::string_view btn1, std::string_view btn2, float width, std::function<void(Node*)> btn1Callback, std::function<void(Node*)> btn2Callback);
27
28 MenuItemSpriteExtra* _btn1;
29 MenuItemSpriteExtra* _btn2;
30
31public:
32 static AlertLayer* create(std::string_view title, std::string_view desc, std::string_view btn1, std::string_view btn2, float width, std::function<void(Node*)> btn1Callback, std::function<void(Node*)> btn2Callback);
33 static AlertLayer* create(std::string_view title, std::string_view desc, std::string_view btn1, std::string_view btn2, std::function<void(Node*)> btn1Callback, std::function<void(Node*)> btn2Callback);
34 static AlertLayer* create(std::string_view title, std::string_view desc, std::string_view btn1, float width, std::function<void(Node*)> btn1Callback);
35 static AlertLayer* create(std::string_view title, std::string_view desc, std::string_view btn1, std::function<void(Node*)> btn1Callback);
36 static AlertLayer* create(std::string_view title, std::string_view desc, float width);
37 static AlertLayer* create(std::string_view title, std::string_view desc);
38
39 void setBtn1Callback(std::function<void(Node*)> btn1Callback);
40 void setBtn2Callback(std::function<void(Node*)> btn2Callback);
41};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected