• R/O
  • SSH
  • HTTPS

vima19: Commit


Commit MetaInfo

Revision2164 (tree)
Time2023-03-29 19:34:07
Authorhgtterry

Log Message

GameDirectorSB 28-03-23 [v1.24] World Editor Cylinder

Change Summary

Incremental Difference

--- Bin/Tools/WrldEdit.ini (revision 2163)
+++ Bin/Tools/WrldEdit.ini (revision 2164)
@@ -102,7 +102,7 @@
102102 Bar#1=153
103103 Bar#2=0
104104 [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
108108 File4=C:\Users\Terry\Desktop\EquitySB\Bin\Tools\Levels\StartRoom.3dt
--- WorldEditor_VC5/A_CreateCylDialog.cpp (revision 2163)
+++ WorldEditor_VC5/A_CreateCylDialog.cpp (revision 2164)
@@ -27,6 +27,22 @@
2727
2828 A_CreateCylDialog::A_CreateCylDialog(void)
2929 {
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+
3046 }
3147
3248 A_CreateCylDialog::~A_CreateCylDialog(void)
@@ -38,9 +54,9 @@
3854 // *************************************************************************
3955 void A_CreateCylDialog::Start_CreateCyl_Dlg()
4056 {
41- /*m_pDoc = (CFusionDoc*)App->m_pMainFrame->GetCurrentDoc();
57+ m_pDoc = (CFusionDoc*)App->m_pMainFrame->GetCurrentDoc();
4258
43- pBoxTemplate = Level_GetBoxTemplate (m_pDoc->pLevel);*/
59+ pCylinderTemplate = Level_GetCylinderTemplate (m_pDoc->pLevel);
4460
4561 DialogBox(App->hInst, (LPCTSTR)IDD_CREATE_CYL, App->MainHwnd, (DLGPROC)CreateCyl_Proc);
4662 }
@@ -57,12 +73,12 @@
5773 {
5874 //SendDlgItemMessage(hDlg, IDC_BTSETVIEW, WM_SETFONT, (WPARAM)App->Font_CB15, MAKELPARAM(TRUE, 0));
5975
60- /*App->CL_CreateBoxDialog->Set_Members();
76+ App->CL_CreateCylDialog->Set_Members();
6177
62- App->CL_CreateBoxDialog->Set_DLG_Members(hDlg);
78+ App->CL_CreateCylDialog->Set_DLG_Members(hDlg);
6379
6480
65- HWND Temp = GetDlgItem(hDlg, IDC_PICTURE);
81+ /*HWND Temp = GetDlgItem(hDlg, IDC_PICTURE);
6682
6783 if(App->CL_CreateBoxDialog->pBoxTemplate->Solid == 0)
6884 {
@@ -295,3 +311,59 @@
295311 }
296312 return FALSE;
297313 }
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+}
--- WorldEditor_VC5/A_CreateCylDialog.h (revision 2163)
+++ WorldEditor_VC5/A_CreateCylDialog.h (revision 2164)
@@ -31,7 +31,29 @@
3131
3232 void Start_CreateCyl_Dlg();
3333
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+
3453 private:
3554
3655 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);
3759 };
--- WorldEditor_VC5/FUSIONDoc.cpp (revision 2163)
+++ WorldEditor_VC5/FUSIONDoc.cpp (revision 2164)
@@ -6982,6 +6982,7 @@
69826982 case 3 :
69836983 bLeakLoaded =LoadLeakFile(dlg.GetPathName());
69846984 }
6985+
69856986 SetModifiedFlag();
69866987
69876988 UpdateAllViews(UAV_ALLVIEWS | REBUILD_QUICK, FALSE);
Show on old repository browser