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

Method SetSourceMode

engine/Poseidon/UI/DisplayUI.hpp:372–376  ·  view source on GitHub ↗

Source filter (0=All, 1=Workshop, 2=Local). Re-derives the visible rows.

Source from the content-addressed store, hash-verified

370 {
371 const ModRow& m = _modRows[actualRow];
372 if (_sourceMode == 1 && m.state != ModRowState::Active)
373 return false;
374 if (_sourceMode == 2 && m.state == ModRowState::Missing)
375 return false;
376 if (_sourceMode == 3 && m.source != ModRowSource::Workshop)
377 return false;
378 if (_sourceMode == 4 && m.source != ModRowSource::Local)
379 return false;

Callers 1

OnButtonClickedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected