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

Method OnInitDialog

editor/levelkeypad.cpp:533–559  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

531}
532
533BOOL levelkeypad::OnInitDialog() {
534 CDialog::OnInitDialog();
535 m_room_combo.Init(-1);
536 m_trigger_combo.Init(-1);
537 m_object_combo.Init(OBJ_NONE, OBJECT_HANDLE_NONE);
538 UpdateDialog();
539
540 int i;
541 SendDlgItemMessage(IDC_FFT1_COMBO, CB_RESETCONTENT, 0, 0);
542 SendDlgItemMessage(IDC_FFT2_COMBO, CB_RESETCONTENT, 0, 0);
543 SendDlgItemMessage(IDC_FFT3_COMBO, CB_RESETCONTENT, 0, 0);
544
545 SendDlgItemMessage(IDC_FFT1_COMBO, CB_ADDSTRING, 0, (LPARAM)(LPCTSTR) "Not Assigned");
546 SendDlgItemMessage(IDC_FFT2_COMBO, CB_ADDSTRING, 0, (LPARAM)(LPCTSTR) "Not Assigned");
547 SendDlgItemMessage(IDC_FFT3_COMBO, CB_ADDSTRING, 0, (LPARAM)(LPCTSTR) "Not Assigned");
548
549 for (i = 0; i < MAX_TEXTURES; i++) {
550 if (GameTextures[i].used) {
551 SendDlgItemMessage(IDC_FFT1_COMBO, CB_ADDSTRING, 0, (LPARAM)(LPCTSTR)GameTextures[i].name);
552 SendDlgItemMessage(IDC_FFT2_COMBO, CB_ADDSTRING, 0, (LPARAM)(LPCTSTR)GameTextures[i].name);
553 SendDlgItemMessage(IDC_FFT3_COMBO, CB_ADDSTRING, 0, (LPARAM)(LPCTSTR)GameTextures[i].name);
554 }
555 }
556
557 return TRUE; // return TRUE unless you set the focus to a control
558 // EXCEPTION: OCX Property Pages should return FALSE
559}
560
561void levelkeypad::OnLevelPrevGoalButton() {
562 int num_goals = Level_goals.GetNumGoals();

Callers

nothing calls this directly

Calls 1

InitMethod · 0.45

Tested by

no test coverage detected