| 107 | } |
| 108 | |
| 109 | void 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 | |
| 127 | int TransferScreen::getRightIndex() |
| 128 | { |
no test coverage detected