MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / SelectNext

Method SelectNext

engine/Poseidon/UI/InGame/InGameUIActions.cpp:282–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280}
281
282void UIActions::SelectNext(bool cycle)
283{
284 if (Size() == 0)
285 {
286 return;
287 }
288 int i = FindSelected() + 1;
289 if (i >= Size())
290 {
291 if (cycle)
292 {
293 i = 0;
294 }
295 else
296 {
297 i = Size() - 1;
298 }
299 }
300 _selected = Get(i);
301}
302
303bool CheckSupply(EntityAI* vehicle, EntityAI* parent, SupportCheckF check, float limit, bool now);
304

Callers 1

ProcessActionsMethod · 0.80

Calls 1

GetFunction · 0.50

Tested by

no test coverage detected