MCPcopy Create free account
hub / github.com/bwapi/bwapi / setSelectedByValue

Method setSelectedByValue

bwapi/BWAPI/Source/BW/Dialog.cpp:626–637  ·  view source on GitHub ↗

-------------- SET SELECTED BY VALUE --------------

Source from the content-addressed store, hash-verified

624 }
625// -------------- SET SELECTED BY VALUE --------------
626 bool dialog::setSelectedByValue(u32 dwValue)
627 {
628 if ( this && this->isList() && this->u.list.pdwData )
629 {
630 for ( u8 i = 0; i < this->u.list.bStrs; ++i )
631 {
632 if ( this->u.list.pdwData[i] == dwValue )
633 return this->setSelectedIndex(i);
634 }
635 } // check
636 return false;
637 }
638// -------------- SET SELECTED BY STRING -------------
639 bool dialog::setSelectedByString(const std::string &s, bool noctrl)
640 {

Callers 2

_changeRaceMethod · 0.80
onMenuFrameMethod · 0.80

Calls 2

isListMethod · 0.95
setSelectedIndexMethod · 0.95

Tested by

no test coverage detected