MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / GraphicButton

Method GraphicButton

forms/graphicbutton.cpp:15–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13{
14
15GraphicButton::GraphicButton(sp<Image> image, sp<Image> imageDepressed, sp<Image> imageHover)
16 : Control(), image(image), imagedepressed(imageDepressed), imagehover(imageHover),
17 buttonclick(
18 fw().data->loadSample("RAWSOUND:xcom3/rawsound/strategc/intrface/button1.raw:22050"))
19{
20 isClickable = true;
21}
22
23GraphicButton::~GraphicButton() = default;
24

Callers

nothing calls this directly

Calls 1

loadSampleMethod · 0.45

Tested by

no test coverage detected