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

Method refreshRangeText

game/ui/tileview/battleview.cpp:2256–2262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2254}
2255
2256void BattleView::refreshRangeText()
2257{
2258 int range = primingTab->findControlTyped<ScrollBar>("RANGE_SLIDER")->getValue();
2259
2260 UString text = format(tr("Range = %2.1fm."), ((float)(range + 1) * 1.5f));
2261 primingTab->findControlTyped<Label>("RANGE_TEXT")->setText(text);
2262}
2263
2264void BattleView::orderJump(Vec3<int> target, BodyState bodyState)
2265{

Callers 1

BattleViewMethod · 0.95

Calls 4

formatFunction · 0.85
trFunction · 0.85
getValueMethod · 0.45
setTextMethod · 0.45

Tested by

no test coverage detected