MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / UpdateCheckBox

Method UpdateCheckBox

Descent3/ConfigItem.cpp:638–648  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

636}
637
638void ConfigItem::UpdateCheckBox(int index) {
639 ASSERT((index >= 0) && (index < m_hsCount));
640 m_bCurrentValue = !m_bCurrentValue;
641 if (m_bCurrentValue)
642 m_hsList[index]->SetStates(m_tiList[2], m_tiList[3]); // Checked
643 else
644 m_hsList[index]->SetStates(m_tiList[0], m_tiList[1]); // Unchecked
645
646 if (m_bCallback)
647 (*m_bCallback)(m_bCurrentValue);
648}
649
650void ConfigItem::UpdateRadioButton(int index) {
651 ASSERT((index >= 0) && (index < m_rbCount));

Callers

nothing calls this directly

Calls 1

SetStatesMethod · 0.80

Tested by

no test coverage detected