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

Method changeSecondBase

game/ui/base/transferscreen.cpp:109–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109void TransferScreen::changeSecondBase(sp<Base> newBase)
110{
111 second_base = newBase->building->base;
112 textViewSecondBaseStatic->setText(second_base->name);
113
114 // Set index for all controls
115 int index = getRightIndex();
116 for (auto &l : transactionControls)
117 {
118 for (auto &c : l.second)
119 {
120 c->setIndexRight(index);
121 }
122 }
123 // Apply display type and base highlight
124 setDisplayType(type);
125}
126
127int TransferScreen::getRightIndex()
128{

Callers 1

initViewSecondBaseMethod · 0.95

Calls 2

setIndexRightMethod · 0.80
setTextMethod · 0.45

Tested by

no test coverage detected