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

Method OnLoad

editor/BriefEdit.cpp:1850–1872  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1848}
1849
1850void CBriefEdit::OnLoad() {
1851 char szFilter[] = "Descent3 Briefing Files (*.brf)|*.brf||";
1852 CFileDialog dlg(true, ".brf", NULL, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, szFilter);
1853
1854 if (dlg.DoModal() == IDOK) {
1855 CComboBox *combo = (CComboBox *)GetDlgItem(IDC_BRIEF_SCREEN_LIST);
1856 combo->ResetContent();
1857 BriefEditFreeScreens();
1858 BriefEditInitScreens();
1859 BriefEditLoadScreens(dlg.GetPathName().GetBuffer(1), combo, (CComboBox *)GetDlgItem(IDC_BRIEF_EFFECT_LIST),
1860 &m_GlobalValues);
1861
1862 m_fStatic = m_GlobalValues.static_val;
1863 m_fGlitch = m_GlobalValues.glitch_val;
1864 m_sTitle = m_GlobalValues.title;
1865
1866 UpdateData(false);
1867 UpdateInfo();
1868 OnSelchangeBriefScreenList();
1869 UpdateLayoutBitmap();
1870 has_changed = false;
1871 }
1872}
1873
1874void CBriefEdit::UpdateLayoutBitmap(void) {
1875 int scr;

Callers

nothing calls this directly

Calls 5

BriefEditFreeScreensFunction · 0.85
BriefEditInitScreensFunction · 0.85
BriefEditLoadScreensFunction · 0.85
GetBufferMethod · 0.80
DoModalMethod · 0.45

Tested by

no test coverage detected