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

Method TextButton

forms/textbutton.cpp:17–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15{
16
17TextButton::TextButton(const UString &Text, sp<BitmapFont> font)
18 : Control(), buttonclick(fw().data->loadSample(
19 "RAWSOUND:xcom3/rawsound/strategc/intrface/button1.raw:22050")),
20 buttonbackground(fw().data->loadImage("ui/textbuttonback.png")),
21 TextHAlign(HorizontalAlignment::Centre), TextVAlign(VerticalAlignment::Centre),
22 RenderStyle(ButtonRenderStyle::Menu)
23{
24 isClickable = true;
25 label = mksp<Label>(Text, font);
26}
27
28TextButton::~TextButton() = default;
29

Callers

nothing calls this directly

Calls 2

loadSampleMethod · 0.45
loadImageMethod · 0.45

Tested by

no test coverage detected