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

Method AlienContainmentScreen

game/ui/base/aliencontainmentscreen.cpp:25–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23{
24
25AlienContainmentScreen::AlienContainmentScreen(sp<GameState> state, bool forceLimits)
26 : TransactionScreen(state, forceLimits)
27{
28 form->findControlTyped<Label>("TITLE")->setText(tr("ALIEN CONTAINMENT"));
29 form->findControlTyped<Graphic>("BG")->setImage(
30 fw().data->loadImage("xcom3/ufodata/aliencon.pcx"));
31 form->findControlTyped<Graphic>("DOLLAR_ICON")->setVisible(false);
32 form->findControlTyped<Graphic>("DELTA_UNDERPANTS")->setVisible(false);
33 form->findControlTyped<Label>("TEXT_FUNDS_DELTA")->setVisible(false);
34
35 form->findControlTyped<RadioButton>("BUTTON_SOLDIERS")->setVisible(false);
36 form->findControlTyped<RadioButton>("BUTTON_BIOSCIS")->setVisible(false);
37 form->findControlTyped<RadioButton>("BUTTON_PHYSCIS")->setVisible(false);
38 form->findControlTyped<RadioButton>("BUTTON_ENGINRS")->setVisible(false);
39 form->findControlTyped<RadioButton>("BUTTON_ALIENS")->setVisible(false);
40
41 form->findControlTyped<RadioButton>("BUTTON_VEHICLES")->setVisible(false);
42 form->findControlTyped<RadioButton>("BUTTON_AGENTS")->setVisible(false);
43 form->findControlTyped<RadioButton>("BUTTON_FLYING")->setVisible(false);
44 form->findControlTyped<RadioButton>("BUTTON_GROUND")->setVisible(false);
45
46 confirmClosureText = tr("Confirm Alien Containment Orders");
47
48 type = Type::Aliens;
49 form->findControlTyped<RadioButton>("BUTTON_ALIENS")->setChecked(true);
50}
51
52void AlienContainmentScreen::closeScreen()
53{

Callers

nothing calls this directly

Calls 6

trFunction · 0.85
setTextMethod · 0.45
setImageMethod · 0.45
loadImageMethod · 0.45
setVisibleMethod · 0.45
setCheckedMethod · 0.45

Tested by

no test coverage detected