GameDirectorSB 28-03-23 [v1.24] World Editor Cylinder
@@ -102,7 +102,7 @@ | ||
102 | 102 | Bar#1=153 |
103 | 103 | Bar#2=0 |
104 | 104 | [Recent File List] |
105 | -File1=C:\Users\Acer\Desktop\Test_World\StartRoom.3dt | |
106 | -File2=C:\Users\Acer\Desktop\Test_World\Basic\Basic.3dt | |
107 | -File3=C:\Users\Acer\Desktop\RF_World\rfdemov1.3DT | |
105 | +File1=C:\Users\Acer\Desktop\RF_World\rfdemov1.3DT | |
106 | +File2=C:\Users\Acer\Desktop\Test_World\StartRoom.3dt | |
107 | +File3=C:\Users\Acer\Desktop\Test_World\Basic\Basic.3dt | |
108 | 108 | File4=C:\Users\Terry\Desktop\EquitySB\Bin\Tools\Levels\StartRoom.3dt |
@@ -27,6 +27,22 @@ | ||
27 | 27 | |
28 | 28 | A_CreateCylDialog::A_CreateCylDialog(void) |
29 | 29 | { |
30 | + | |
31 | + m_BotXOffset = 0.0; | |
32 | + m_BotXSize = 128.0; | |
33 | + m_BotZOffset = 0.0; | |
34 | + m_BotZSize = 128.0; | |
35 | + m_Solid = 0; | |
36 | + m_TopXOffset = 0.0; | |
37 | + m_TopXSize = 128.0; | |
38 | + m_TopZOffset = 0.0; | |
39 | + m_TopZSize = 128.0; | |
40 | + m_YSize = 512.0; | |
41 | + m_RingLength = 0.0; | |
42 | + m_TCut = FALSE; | |
43 | + m_VerticalStripes = 0; | |
44 | + m_Thickness = 0.0f; | |
45 | + | |
30 | 46 | } |
31 | 47 | |
32 | 48 | A_CreateCylDialog::~A_CreateCylDialog(void) |
@@ -38,9 +54,9 @@ | ||
38 | 54 | // ************************************************************************* |
39 | 55 | void A_CreateCylDialog::Start_CreateCyl_Dlg() |
40 | 56 | { |
41 | - /*m_pDoc = (CFusionDoc*)App->m_pMainFrame->GetCurrentDoc(); | |
57 | + m_pDoc = (CFusionDoc*)App->m_pMainFrame->GetCurrentDoc(); | |
42 | 58 | |
43 | - pBoxTemplate = Level_GetBoxTemplate (m_pDoc->pLevel);*/ | |
59 | + pCylinderTemplate = Level_GetCylinderTemplate (m_pDoc->pLevel); | |
44 | 60 | |
45 | 61 | DialogBox(App->hInst, (LPCTSTR)IDD_CREATE_CYL, App->MainHwnd, (DLGPROC)CreateCyl_Proc); |
46 | 62 | } |
@@ -57,12 +73,12 @@ | ||
57 | 73 | { |
58 | 74 | //SendDlgItemMessage(hDlg, IDC_BTSETVIEW, WM_SETFONT, (WPARAM)App->Font_CB15, MAKELPARAM(TRUE, 0)); |
59 | 75 | |
60 | - /*App->CL_CreateBoxDialog->Set_Members(); | |
76 | + App->CL_CreateCylDialog->Set_Members(); | |
61 | 77 | |
62 | - App->CL_CreateBoxDialog->Set_DLG_Members(hDlg); | |
78 | + App->CL_CreateCylDialog->Set_DLG_Members(hDlg); | |
63 | 79 | |
64 | 80 | |
65 | - HWND Temp = GetDlgItem(hDlg, IDC_PICTURE); | |
81 | + /*HWND Temp = GetDlgItem(hDlg, IDC_PICTURE); | |
66 | 82 | |
67 | 83 | if(App->CL_CreateBoxDialog->pBoxTemplate->Solid == 0) |
68 | 84 | { |
@@ -295,3 +311,59 @@ | ||
295 | 311 | } |
296 | 312 | return FALSE; |
297 | 313 | } |
314 | + | |
315 | +// ************************************************************************* | |
316 | +// * Set_Members:- Terry and Hazel Flanigan 2023 * | |
317 | +// ************************************************************************* | |
318 | +void A_CreateCylDialog::Set_Members() | |
319 | +{ | |
320 | + m_BotXOffset = pCylinderTemplate->BotXOffset; | |
321 | + m_BotXSize = pCylinderTemplate->BotXSize; | |
322 | + m_BotZOffset = pCylinderTemplate->BotZOffset; | |
323 | + m_BotZSize = pCylinderTemplate->BotZSize; | |
324 | + m_Solid = pCylinderTemplate->Solid; | |
325 | + m_TopXOffset = pCylinderTemplate->TopXOffset; | |
326 | + m_TopXSize = pCylinderTemplate->TopXSize; | |
327 | + m_TopZOffset = pCylinderTemplate->TopZOffset; | |
328 | + m_TopZSize = pCylinderTemplate->TopZSize; | |
329 | + m_YSize = pCylinderTemplate->YSize; | |
330 | + m_RingLength = pCylinderTemplate->RingLength; | |
331 | + m_TCut = pCylinderTemplate->TCut; | |
332 | + m_VerticalStripes = pCylinderTemplate->VerticalStripes; | |
333 | + m_Thickness = pCylinderTemplate->Thickness; | |
334 | +} | |
335 | + | |
336 | +// ************************************************************************* | |
337 | +// * Set_DLG_Members:- Terry and Hazel Flanigan 2023 * | |
338 | +// ************************************************************************* | |
339 | +void A_CreateCylDialog::Set_DLG_Members(HWND hDlg) | |
340 | +{ | |
341 | + char buf[MAX_PATH]; | |
342 | + sprintf(buf, "%0.0f", App->CL_CreateBoxDialog->m_XSizeTop); | |
343 | + SetDlgItemText(hDlg, IDC_XSIZETOP, (LPCTSTR)buf); | |
344 | + | |
345 | + sprintf(buf, "%0.0f", App->CL_CreateBoxDialog->m_ZSizeTop); | |
346 | + SetDlgItemText(hDlg, IDC_ZSIZETOP, (LPCTSTR)buf); | |
347 | + | |
348 | + sprintf(buf, "%0.0f", App->CL_CreateBoxDialog->m_XSizeBot); | |
349 | + SetDlgItemText(hDlg, IDC_XSIZEBOT, (LPCTSTR)buf); | |
350 | + | |
351 | + sprintf(buf, "%0.0f", App->CL_CreateBoxDialog->m_ZSizeTop); | |
352 | + SetDlgItemText(hDlg, IDC_ZSIZEBOT, (LPCTSTR)buf); | |
353 | + | |
354 | + sprintf(buf, "%0.0f", App->CL_CreateBoxDialog->m_YSize); | |
355 | + SetDlgItemText(hDlg, IDC_YSIZE, (LPCTSTR)buf); | |
356 | + | |
357 | + sprintf(buf, "%0.0f", App->CL_CreateBoxDialog->m_Thickness); | |
358 | + SetDlgItemText(hDlg, IDC_THICKNESS, (LPCTSTR)buf); | |
359 | + | |
360 | + HWND temp = GetDlgItem(hDlg, IDC_TCUT); | |
361 | + if (App->CL_CreateBoxDialog->m_TCut == 1) | |
362 | + { | |
363 | + SendMessage(temp,BM_SETCHECK,1,0); | |
364 | + } | |
365 | + else | |
366 | + { | |
367 | + SendMessage(temp,BM_SETCHECK,0,0); | |
368 | + } | |
369 | +} |
@@ -31,7 +31,29 @@ | ||
31 | 31 | |
32 | 32 | void Start_CreateCyl_Dlg(); |
33 | 33 | |
34 | + BrushTemplate_Cylinder *pCylinderTemplate; | |
35 | + | |
36 | + float m_BotXOffset; | |
37 | + float m_BotXSize; | |
38 | + float m_BotZOffset; | |
39 | + float m_BotZSize; | |
40 | + int m_Solid; | |
41 | + float m_TopXOffset; | |
42 | + float m_TopXSize; | |
43 | + float m_TopZOffset; | |
44 | + float m_TopZSize; | |
45 | + float m_YSize; | |
46 | + float m_RingLength; | |
47 | + BOOL m_TCut; | |
48 | + int m_VerticalStripes; | |
49 | + float m_Thickness; | |
50 | + | |
51 | + CFusionDoc *m_pDoc; | |
52 | + | |
34 | 53 | private: |
35 | 54 | |
36 | 55 | static LRESULT CALLBACK CreateCyl_Proc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam); |
56 | + | |
57 | + void Set_Members(); | |
58 | + void Set_DLG_Members(HWND hDlg); | |
37 | 59 | }; |
@@ -6982,6 +6982,7 @@ | ||
6982 | 6982 | case 3 : |
6983 | 6983 | bLeakLoaded =LoadLeakFile(dlg.GetPathName()); |
6984 | 6984 | } |
6985 | + | |
6985 | 6986 | SetModifiedFlag(); |
6986 | 6987 | |
6987 | 6988 | UpdateAllViews(UAV_ALLVIEWS | REBUILD_QUICK, FALSE); |