| 15 | { |
| 16 | |
| 17 | TextButton::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 | |
| 28 | TextButton::~TextButton() = default; |
| 29 |
nothing calls this directly
no test coverage detected