| 296 | } |
| 297 | |
| 298 | BOOL CScriptMassCompile::OnInitDialog() { |
| 299 | CDialog::OnInitDialog(); |
| 300 | |
| 301 | bool bval; |
| 302 | if (Database->read("EditorScriptAutoCheckin", &bval)) |
| 303 | m_AutoCheckIn = bval; |
| 304 | else |
| 305 | m_AutoCheckIn = true; |
| 306 | UpdateData(false); |
| 307 | |
| 308 | MassScriptEditContent = ""; |
| 309 | MassScriptEdit = (CEdit *)GetDlgItem(IDC_OUTPUT); |
| 310 | writeline("System Initialized."); |
| 311 | |
| 312 | if (!Network_up) { |
| 313 | writeline("WARNING: You did not say yes to the data update, therefore, your work will not be saved for the scripts " |
| 314 | "that you don't currently have checked out."); |
| 315 | } |
| 316 | writeline("----------------------------------------------------------------------------------------------------------" |
| 317 | "--------------------------------------"); |
| 318 | |
| 319 | BuildList(); |
| 320 | |
| 321 | return TRUE; |
| 322 | } |
| 323 | |
| 324 | void CScriptMassCompile::SetStepText(int step, char *format, ...) { |
| 325 | if (step < 1 || step > 4) |