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

Method UpdateDialog

editor/TerrainSoundDialog.cpp:96–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96void CTerrainSoundDialog::UpdateDialog() {
97 // Enabled/disable edit boxes
98 EnableDisableAll(m_bands[m_current].sound_index != -1);
99
100 // Show which band
101 PrintToDlgItem(this, IDC_TERRAIN_SOUND_BAND_TEXT, "Band %d:", m_current);
102
103 // Enable/disable next & prev
104 ((CButton *)GetDlgItem(IDC_TERRAIN_SOUND_NEXT))->EnableWindow(m_current < NUM_TERRAIN_SOUND_BANDS - 1);
105 ((CButton *)GetDlgItem(IDC_TERRAIN_SOUND_PREV))->EnableWindow(m_current > 0);
106}
107
108void CTerrainSoundDialog::CopyToControls() {
109 m_low_alt = m_bands[m_current].low_alt;

Callers

nothing calls this directly

Calls 1

PrintToDlgItemFunction · 0.85

Tested by

no test coverage detected