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

Method setSelectedIndex

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

-------------- SET SELECTED INDEX -----------------

Source from the content-addressed store, hash-verified

612 }
613// -------------- SET SELECTED INDEX -----------------
614 bool dialog::setSelectedIndex(u8 bIndex)
615 {
616 if ( this && this->isList() && bIndex < this->u.list.bStrs )
617 {
618 this->doEvent(BW_EVN_USER, BW_USER_SELECT, bIndex);
619 if ( this->u.list.pScrlBar )
620 this->u.list.pScrlBar->doEvent(BW_EVN_USER, BW_USER_SELECT, bIndex);
621 return true;
622 }
623 return false;
624 }
625// -------------- SET SELECTED BY VALUE --------------
626 bool dialog::setSelectedByValue(u32 dwValue)
627 {

Callers 3

setSelectedByValueMethod · 0.95
setSelectedByStringMethod · 0.95
onMenuFrameMethod · 0.80

Calls 2

isListMethod · 0.95
doEventMethod · 0.95

Tested by

no test coverage detected