• R/O
  • SSH
  • HTTPS

vima19: Commit


Commit MetaInfo

Revision651 (tree)
Time2022-07-05 23:54:53
Authorhgtterry

Log Message

Equity_ME 050722 General

Change Summary

Incremental Difference

--- Equity_ME/Equity_ME/Base_Group.cpp (revision 650)
+++ Equity_ME/Equity_ME/Base_Group.cpp (revision 651)
@@ -1,3 +1,26 @@
1+/*
2+Copyright (c) 2022 Equity_ME Model Editor -- HGT Software W.T.Flanigan H.C.Flanigan
3+
4+This software is provided 'as-is', without any express or implied
5+warranty. In no event will the authors be held liable for any damages
6+arising from the use of this software.
7+
8+Permission is granted to anyone to use this software for any purpose,
9+including commercial applications, and to alter it and redistribute it
10+freely, subject to the following restrictions:
11+
12+1. The origin of this software must not be misrepresented; you must not
13+claim that you wrote the original software. If you use this software
14+in a product, an acknowledgment in the product documentation would be
15+appreciated but is not required.
16+
17+2. Altered source versions must be plainly marked as such, and must not be
18+misrepresented as being the original software.
19+
20+3. This notice may not be removed or altered from any source
21+distribution.
22+*/
23+
124 #include "stdafx.h"
225 #include "Base_Group.h"
326
--- Equity_ME/Equity_ME/Base_Group.h (revision 650)
+++ Equity_ME/Equity_ME/Base_Group.h (revision 651)
@@ -1,3 +1,26 @@
1+/*
2+Copyright (c) 2022 Equity_ME Model Editor -- HGT Software W.T.Flanigan H.C.Flanigan
3+
4+This software is provided 'as-is', without any express or implied
5+warranty. In no event will the authors be held liable for any damages
6+arising from the use of this software.
7+
8+Permission is granted to anyone to use this software for any purpose,
9+including commercial applications, and to alter it and redistribute it
10+freely, subject to the following restrictions:
11+
12+1. The origin of this software must not be misrepresented; you must not
13+claim that you wrote the original software. If you use this software
14+in a product, an acknowledgment in the product documentation would be
15+appreciated but is not required.
16+
17+2. Altered source versions must be plainly marked as such, and must not be
18+misrepresented as being the original software.
19+
20+3. This notice may not be removed or altered from any source
21+distribution.
22+*/
23+
124 #pragma once
225
326 typedef struct vertex_type
--- Equity_ME/Equity_ME/Equity_ME.cpp (revision 650)
+++ Equity_ME/Equity_ME/Equity_ME.cpp (revision 651)
@@ -191,6 +191,13 @@
191191 return 1;
192192 }
193193
194+ case ID_DEBUG_APPDATA:
195+ {
196+ App->CL_Dialogs->What_List = Enums::Show_List_App;
197+ App->CL_Dialogs->Show_ListData();
198+ return 1;
199+ }
200+
194201 // ------------------------------------------------------- File
195202 case ID_FILE_CLEARMODEL:
196203 {
--- Equity_ME/Equity_ME/ME_App.cpp (revision 650)
+++ Equity_ME/Equity_ME/ME_App.cpp (revision 651)
@@ -279,6 +279,16 @@
279279 }
280280
281281 // *************************************************************************
282+// * Say *
283+// *************************************************************************
284+void ME_App::Say(const char* Message)
285+{
286+ char text[1024];
287+ strcpy(text, Message);
288+ App->CL_Dialogs->Message(text);
289+}
290+
291+// *************************************************************************
282292 // * Custom_Button_Normal Terry Bernie *
283293 // *************************************************************************
284294 bool ME_App::Custom_Button_Normal(LPNMCUSTOMDRAW item)
--- Equity_ME/Equity_ME/ME_App.h (revision 650)
+++ Equity_ME/Equity_ME/ME_App.h (revision 651)
@@ -1,5 +1,5 @@
11 /*
2-Copyright (c) 2022 Equity_ME Model Editor -- Inflanite Software W.T.Flanigan H.C.Flanigan
2+Copyright (c) 2022 Equity_ME Model Editor -- HGT Software W.T.Flanigan H.C.Flanigan
33
44 This software is provided 'as-is', without any express or implied
55 warranty. In no event will the authors be held liable for any damages
@@ -81,6 +81,7 @@
8181
8282 HBRUSH CreateGradientBrush(COLORREF top, COLORREF bottom, LPNMCUSTOMDRAW item);
8383
84+ void Say(const char* Message);
8485 void Say_Win(const char* Message);
8586
8687 HINSTANCE hInst; // Store instance handle in our global variable [120122]
--- Equity_ME/Equity_ME/ME_Dialogs.cpp (revision 650)
+++ Equity_ME/Equity_ME/ME_Dialogs.cpp (revision 651)
@@ -1,3 +1,26 @@
1+/*
2+Copyright (c) 2022 Equity_ME Model Editor -- HGT Software W.T.Flanigan H.C.Flanigan
3+
4+This software is provided 'as-is', without any express or implied
5+warranty. In no event will the authors be held liable for any damages
6+arising from the use of this software.
7+
8+Permission is granted to anyone to use this software for any purpose,
9+including commercial applications, and to alter it and redistribute it
10+freely, subject to the following restrictions:
11+
12+1. The origin of this software must not be misrepresented; you must not
13+claim that you wrote the original software. If you use this software
14+in a product, an acknowledgment in the product documentation would be
15+appreciated but is not required.
16+
17+2. Altered source versions must be plainly marked as such, and must not be
18+misrepresented as being the original software.
19+
20+3. This notice may not be removed or altered from any source
21+distribution.
22+*/
23+
124 #include "stdafx.h"
225 #include "ME_App.h"
326 #include "resource.h"
@@ -12,6 +35,8 @@
1235 Mouse_Slow = 0;
1336 Mouse_VerySlow = 0;
1437 Mouse_Fast = 0;
38+
39+ Message_Text[0] = 0;
1540 }
1641
1742
@@ -29,7 +54,7 @@
2954 return 1;
3055 }
3156 // *************************************************************************
32-// * GroupData_Proc Terry Bernie *
57+// * GroupData_Proc Terry Flanigan *
3358 // *************************************************************************
3459 LRESULT CALLBACK ME_Dialogs::GroupData_Proc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
3560 {
@@ -54,6 +79,12 @@
5479 return TRUE;
5580 }
5681
82+ if (App->CL_Dialogs->What_List == Enums::Show_List_App)
83+ {
84+ App->CL_Dialogs->List_App_Data(hDlg);
85+ return TRUE;
86+ }
87+
5788 return TRUE;
5889 }
5990 case WM_CTLCOLORSTATIC:
@@ -177,6 +208,37 @@
177208 }
178209
179210 // *************************************************************************
211+// * List_App_Data Terry Flanigan *
212+// *************************************************************************
213+void ME_Dialogs::List_App_Data(HWND hDlg)
214+{
215+
216+ char buf[255];
217+
218+ sprintf(buf, "%s", "App Info");
219+ SendDlgItemMessage(hDlg, IDC_LISTGROUP, LB_ADDSTRING, (WPARAM)0, (LPARAM)buf);
220+
221+ sprintf(buf, "%s", " ");
222+ SendDlgItemMessage(hDlg, IDC_LISTGROUP, LB_ADDSTRING, (WPARAM)0, (LPARAM)buf);
223+
224+ int Count = 0;
225+ while (Count < 99)
226+ {
227+
228+ sprintf(buf, "%i %s%i",Count ,"Group Hwnd = ", App->CL_Model->Group[Count]);
229+ SendDlgItemMessage(hDlg, IDC_LISTGROUP, LB_ADDSTRING, (WPARAM)0, (LPARAM)buf);
230+ Count++;
231+ }
232+
233+ sprintf(buf, "%s", " ");
234+ SendDlgItemMessage(hDlg, IDC_LISTGROUP, LB_ADDSTRING, (WPARAM)0, (LPARAM)buf);
235+
236+ sprintf(buf, "%i %s%i", Count, "BB Hwnd = ", App->CL_Model->S_BoundingBox[0]);
237+ SendDlgItemMessage(hDlg, IDC_LISTGROUP, LB_ADDSTRING, (WPARAM)0, (LPARAM)buf);
238+
239+}
240+
241+// *************************************************************************
180242 // * Start_Speed_Camera Terry Flanigan *
181243 // *************************************************************************
182244 void ME_Dialogs::Start_Speed_Camera()
@@ -341,3 +403,84 @@
341403 Mouse_VerySlow = 0;
342404 Mouse_Fast = 0;
343405 }
406+
407+// *************************************************************************
408+// * Message Terry Flanigan *
409+// *************************************************************************
410+void ME_Dialogs::Message(char *pString)
411+{
412+ strcpy(Message_Text, pString);
413+ DialogBox(App->hInst, (LPCTSTR)IDD_MESSAGE, App->Fdlg, (DLGPROC)Message_Proc);
414+}
415+// *************************************************************************
416+// * Message_Proc Terry Flanigan *
417+// *************************************************************************
418+LRESULT CALLBACK ME_Dialogs::Message_Proc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
419+{
420+
421+ switch (message)
422+ {
423+ case WM_INITDIALOG:
424+ {
425+ HFONT Font;
426+ Font = CreateFont(-20, 0, 0, 0, FW_BOLD, 0, 0, 0, 0, OUT_TT_ONLY_PRECIS, 0, 0, 0, "Courier Black");
427+ SendDlgItemMessage(hDlg, IDC_STTEXT, WM_SETFONT, (WPARAM)Font, MAKELPARAM(TRUE, 0));
428+ SendDlgItemMessage(hDlg, IDC_BANNER, WM_SETFONT, (WPARAM)Font, MAKELPARAM(TRUE, 0));
429+
430+ SetDlgItemText(hDlg, IDC_STTEXT, App->CL_Dialogs->Message_Text);
431+
432+ return TRUE;
433+ }
434+ case WM_CTLCOLORSTATIC:
435+ {
436+ if (GetDlgItem(hDlg, IDC_BANNER) == (HWND)lParam)
437+ {
438+ SetBkColor((HDC)wParam, RGB(0, 255, 0));
439+ SetTextColor((HDC)wParam, RGB(0, 0, 255));
440+ SetBkMode((HDC)wParam, TRANSPARENT);
441+ return (UINT)App->AppBackground;
442+ }
443+ if (GetDlgItem(hDlg, IDC_STTEXT) == (HWND)lParam)
444+ {
445+ SetBkColor((HDC)wParam, RGB(0, 255, 0));
446+ SetTextColor((HDC)wParam, RGB(0, 0, 0));
447+ SetBkMode((HDC)wParam, TRANSPARENT);
448+ return (UINT)App->AppBackground;
449+ }
450+ return FALSE;
451+ }
452+
453+ case WM_CTLCOLORDLG:
454+ {
455+ return (LONG)App->AppBackground;
456+ }
457+
458+ case WM_NOTIFY:
459+ {
460+ LPNMHDR some_item = (LPNMHDR)lParam;
461+
462+ if (some_item->idFrom == IDOK && some_item->code == NM_CUSTOMDRAW)
463+ {
464+ LPNMCUSTOMDRAW item = (LPNMCUSTOMDRAW)some_item;
465+ App->Custom_Button_Normal(item);
466+ return CDRF_DODEFAULT;
467+ }
468+ return CDRF_DODEFAULT;
469+ }
470+ case WM_COMMAND:
471+ if (LOWORD(wParam) == IDOK)
472+ {
473+ EndDialog(hDlg, LOWORD(wParam));
474+ return TRUE;
475+ }
476+
477+ if (LOWORD(wParam) == IDCANCEL)
478+ {
479+ EndDialog(hDlg, LOWORD(wParam));
480+ return TRUE;
481+ }
482+
483+ break;
484+ }
485+ return FALSE;
486+}
--- Equity_ME/Equity_ME/ME_Dialogs.h (revision 650)
+++ Equity_ME/Equity_ME/ME_Dialogs.h (revision 651)
@@ -1,3 +1,26 @@
1+/*
2+Copyright (c) 2022 Equity_ME Model Editor -- HGT Software W.T.Flanigan H.C.Flanigan
3+
4+This software is provided 'as-is', without any express or implied
5+warranty. In no event will the authors be held liable for any damages
6+arising from the use of this software.
7+
8+Permission is granted to anyone to use this software for any purpose,
9+including commercial applications, and to alter it and redistribute it
10+freely, subject to the following restrictions:
11+
12+1. The origin of this software must not be misrepresented; you must not
13+claim that you wrote the original software. If you use this software
14+in a product, an acknowledgment in the product documentation would be
15+appreciated but is not required.
16+
17+2. Altered source versions must be plainly marked as such, and must not be
18+misrepresented as being the original software.
19+
20+3. This notice may not be removed or altered from any source
21+distribution.
22+*/
23+
124 #pragma once
225 class ME_Dialogs
326 {
@@ -7,6 +30,7 @@
730
831 bool Show_ListData();
932 void Start_Speed_Camera();
33+ void Message(char *pString);
1034
1135 int What_List;
1236
@@ -14,9 +38,11 @@
1438
1539 static LRESULT CALLBACK GroupData_Proc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
1640 static LRESULT CALLBACK Speed_Camera_Proc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
41+ static LRESULT CALLBACK Message_Proc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
1742
1843 void List_GroupData(HWND hDlg);
1944 void List_ModelData(HWND hDlg);
45+ void List_App_Data(HWND hDlg);
2046
2147 void UnCheck_All_SpeedMouseOption();
2248
@@ -24,5 +50,7 @@
2450 bool Mouse_Slow;
2551 bool Mouse_VerySlow;
2652 bool Mouse_Fast;
53+
54+ char Message_Text[MAX_PATH];
2755 };
2856
--- Equity_ME/Equity_ME/ME_Export.cpp (revision 650)
+++ Equity_ME/Equity_ME/ME_Export.cpp (revision 651)
@@ -1,3 +1,26 @@
1+/*
2+Copyright (c) 2022 Equity_ME Model Editor -- HGT Software W.T.Flanigan H.C.Flanigan
3+
4+This software is provided 'as-is', without any express or implied
5+warranty. In no event will the authors be held liable for any damages
6+arising from the use of this software.
7+
8+Permission is granted to anyone to use this software for any purpose,
9+including commercial applications, and to alter it and redistribute it
10+freely, subject to the following restrictions:
11+
12+1. The origin of this software must not be misrepresented; you must not
13+claim that you wrote the original software. If you use this software
14+in a product, an acknowledgment in the product documentation would be
15+appreciated but is not required.
16+
17+2. Altered source versions must be plainly marked as such, and must not be
18+misrepresented as being the original software.
19+
20+3. This notice may not be removed or altered from any source
21+distribution.
22+*/
23+
124 #include "stdafx.h"
225 #include "ME_App.h"
326 #include "ME_Export.h"
--- Equity_ME/Equity_ME/ME_Export.h (revision 650)
+++ Equity_ME/Equity_ME/ME_Export.h (revision 651)
@@ -1,3 +1,26 @@
1+/*
2+Copyright (c) 2022 Equity_ME Model Editor -- HGT Software W.T.Flanigan H.C.Flanigan
3+
4+This software is provided 'as-is', without any express or implied
5+warranty. In no event will the authors be held liable for any damages
6+arising from the use of this software.
7+
8+Permission is granted to anyone to use this software for any purpose,
9+including commercial applications, and to alter it and redistribute it
10+freely, subject to the following restrictions:
11+
12+1. The origin of this software must not be misrepresented; you must not
13+claim that you wrote the original software. If you use this software
14+in a product, an acknowledgment in the product documentation would be
15+appreciated but is not required.
16+
17+2. Altered source versions must be plainly marked as such, and must not be
18+misrepresented as being the original software.
19+
20+3. This notice may not be removed or altered from any source
21+distribution.
22+*/
23+
124 #pragma once
225 class ME_Export
326 {
--- Equity_ME/Equity_ME/ME_Groups.cpp (revision 650)
+++ Equity_ME/Equity_ME/ME_Groups.cpp (revision 651)
@@ -1,3 +1,26 @@
1+/*
2+Copyright (c) 2022 Equity_ME Model Editor -- HGT Software W.T.Flanigan H.C.Flanigan
3+
4+This software is provided 'as-is', without any express or implied
5+warranty. In no event will the authors be held liable for any damages
6+arising from the use of this software.
7+
8+Permission is granted to anyone to use this software for any purpose,
9+including commercial applications, and to alter it and redistribute it
10+freely, subject to the following restrictions:
11+
12+1. The origin of this software must not be misrepresented; you must not
13+claim that you wrote the original software. If you use this software
14+in a product, an acknowledgment in the product documentation would be
15+appreciated but is not required.
16+
17+2. Altered source versions must be plainly marked as such, and must not be
18+misrepresented as being the original software.
19+
20+3. This notice may not be removed or altered from any source
21+distribution.
22+*/
23+
124 #include "stdafx.h"
225 #include "ME_App.h"
326 #include "resource.h"
--- Equity_ME/Equity_ME/ME_Groups.h (revision 650)
+++ Equity_ME/Equity_ME/ME_Groups.h (revision 651)
@@ -1,3 +1,26 @@
1+/*
2+Copyright (c) 2022 Equity_ME Model Editor -- HGT Software W.T.Flanigan H.C.Flanigan
3+
4+This software is provided 'as-is', without any express or implied
5+warranty. In no event will the authors be held liable for any damages
6+arising from the use of this software.
7+
8+Permission is granted to anyone to use this software for any purpose,
9+including commercial applications, and to alter it and redistribute it
10+freely, subject to the following restrictions:
11+
12+1. The origin of this software must not be misrepresented; you must not
13+claim that you wrote the original software. If you use this software
14+in a product, an acknowledgment in the product documentation would be
15+appreciated but is not required.
16+
17+2. Altered source versions must be plainly marked as such, and must not be
18+misrepresented as being the original software.
19+
20+3. This notice may not be removed or altered from any source
21+distribution.
22+*/
23+
124 #pragma once
225 class ME_Groups
326 {
--- Equity_ME/Equity_ME/ME_Import.cpp (revision 650)
+++ Equity_ME/Equity_ME/ME_Import.cpp (revision 651)
@@ -1,5 +1,5 @@
11 /*
2-Copyright (c) 2022 Equity_ME Model Editor -- Inflanite Software W.T.Flanigan H.C.Flanigan
2+Copyright (c) 2022 Equity_ME Model Editor -- HGT Software W.T.Flanigan H.C.Flanigan
33
44 This software is provided 'as-is', without any express or implied
55 warranty. In no event will the authors be held liable for any damages
@@ -79,7 +79,7 @@
7979
8080 App->CL_FileView->Change_Level_Name();
8181
82- App->Say_Win("Model Loaded");
82+ App->Say("Model Loaded");
8383
8484 return 1;
8585 }
--- Equity_ME/Equity_ME/ME_Import.h (revision 650)
+++ Equity_ME/Equity_ME/ME_Import.h (revision 651)
@@ -1,5 +1,5 @@
11 /*
2-Copyright (c) 2022 Equity_ME Model Editor -- Inflanite Software W.T.Flanigan H.C.Flanigan
2+Copyright (c) 2022 Equity_ME Model Editor -- HGT Software W.T.Flanigan H.C.Flanigan
33
44 This software is provided 'as-is', without any express or implied
55 warranty. In no event will the authors be held liable for any damages
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
--- Equity_ME/Equity_ME/stdafx.h (revision 650)
+++ Equity_ME/Equity_ME/stdafx.h (revision 651)
@@ -73,6 +73,7 @@
7373 Show_List_None = 0,
7474 Show_List_Group = 1,
7575 Show_List_Model = 2,
76+ Show_List_App = 3
7677 };
7778 }
7879
Show on old repository browser