MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / ScriptPickManyOverlay

Method ScriptPickManyOverlay

switch/source/ScriptRequestOverlays.cpp:282–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280/* ---- gui_pick_many ------------------------------------------------------ */
281
282ScriptPickManyOverlay::ScriptPickManyOverlay(Screen& screen, const std::string& prompt, std::vector<std::string> items, std::vector<bool> preselected)
283 : ScriptListOverlay(screen, prompt, items.size()), mItems(std::move(items)), mSelected(std::move(preselected))
284{
285 mSelected.resize(mItems.size(), false);
286}
287
288void ScriptPickManyOverlay::drawRow(size_t k, int rowY, bool focused) const
289{

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected