• R/O
  • SSH
  • HTTPS

vima19: Commit


Commit MetaInfo

Revision2070 (tree)
Time2023-03-20 01:03:07
Authorhgtterry

Log Message

GameDirectorSB 19-03-23 [v1.24] World_Viewer For World_Editor Loader

Change Summary

Incremental Difference

--- World_Viewer/World_Viewer/Resource.h (revision 2069)
+++ World_Viewer/World_Viewer/Resource.h (revision 2070)
@@ -15,10 +15,13 @@
1515 #define IDD_FILEVIEW 129
1616 #define IDD_VIEWER3D 130
1717 #define IDD_PROGRESS_BAR 131
18+#define IDD_DIALOG1 132
19+#define IDD_RIGHTGROUPS 132
1820 #define IDC_PBBANNER 1000
1921 #define IDC_PBACTION 1001
2022 #define IDC_STBAR 1002
2123 #define IDC_ST_PB_STATUS 1003
24+#define IDC_BASETEXTURE2 1004
2225 #define ID_DEBUG_SHOWIMGUIDEMO 32771
2326 #define ID_FILE_OPEN 32772
2427 #define ID_OPEN_WORLDEDITORPROJECT 32773
@@ -31,9 +34,9 @@
3134 #ifdef APSTUDIO_INVOKED
3235 #ifndef APSTUDIO_READONLY_SYMBOLS
3336 #define _APS_NO_MFC 1
34-#define _APS_NEXT_RESOURCE_VALUE 132
37+#define _APS_NEXT_RESOURCE_VALUE 133
3538 #define _APS_NEXT_COMMAND_VALUE 32776
36-#define _APS_NEXT_CONTROL_VALUE 1004
39+#define _APS_NEXT_CONTROL_VALUE 1005
3740 #define _APS_NEXT_SYMED_VALUE 110
3841 #endif
3942 #endif
--- World_Viewer/World_Viewer/WV_Loader.cpp (revision 2069)
+++ World_Viewer/World_Viewer/WV_Loader.cpp (revision 2070)
@@ -23,6 +23,7 @@
2323
2424 #include "stdafx.h"
2525 #include "WV_App.h"
26+#include "resource.h"
2627 #include "WV_Loader.h"
2728
2829 #include "RAM.h"
@@ -33,6 +34,8 @@
3334 Path_FileName[0] = 0;
3435 szSelectedDir[0] = 0;
3536
37+ RightGroups_Hwnd = nullptr;
38+
3639 NameCount = 0;
3740 }
3841
@@ -274,8 +277,8 @@
274277 HBITMAP hbm;
275278 HDC hDC;
276279
277- //PreviewWnd = GetDlgItem(App->CL_Groups->RightGroups_Hwnd, IDC_BASETEXTURE2);
278- hDC = NULL;// GetDC(PreviewWnd);
280+ PreviewWnd = GetDlgItem(RightGroups_Hwnd, IDC_BASETEXTURE2);
281+ hDC = GetDC(PreviewWnd);
279282 hbm = CreateHBitmapFromgeBitmap(Bitmap, hDC);
280283
281284 App->CL_Model->Group[GroupIndex]->Base_Bitmap = hbm;
@@ -441,3 +444,61 @@
441444
442445 return 0;
443446 }
447+
448+// *************************************************************************
449+// * Start_Groups *
450+// *************************************************************************
451+bool WV_Loader::Start_Groups_Dialog()
452+{
453+ RightGroups_Hwnd = CreateDialog(App->hInst, (LPCTSTR)IDD_RIGHTGROUPS, App->MainHwnd, (DLGPROC)Groups_Proc);
454+ ShowWindow(RightGroups_Hwnd, 0);
455+ return 1;
456+}
457+
458+// *************************************************************************
459+// * Groups_Proc Terry Bernie *
460+// *************************************************************************
461+LRESULT CALLBACK WV_Loader::Groups_Proc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
462+{
463+ switch (message)
464+ {
465+ case WM_INITDIALOG:
466+ {
467+
468+ }
469+
470+ case WM_CTLCOLORSTATIC:
471+ {
472+
473+ return FALSE;
474+ }
475+
476+ case WM_CTLCOLORDLG:
477+ {
478+ return (LONG)App->AppBackground;
479+ }
480+
481+ case WM_CLOSE:
482+ {
483+ /*ShowWindow(App->CL_Groups->RightGroups_Hwnd, 0);
484+ App->CL_Groups->RightGroups_Visable = 0;
485+ CheckMenuItem(App->mMenu, ID_WINDOWS_GROUPS, MF_BYCOMMAND | MF_UNCHECKED);*/
486+ break;
487+ }
488+
489+
490+ case WM_NOTIFY:
491+ {
492+
493+
494+ return CDRF_DODEFAULT;
495+ }
496+
497+ case WM_COMMAND:
498+ {
499+
500+ }
501+
502+ }
503+ return FALSE;
504+}
--- World_Viewer/World_Viewer/WV_Loader.h (revision 2069)
+++ World_Viewer/World_Viewer/WV_Loader.h (revision 2070)
@@ -31,6 +31,7 @@
3131 WV_Loader(void);
3232 ~WV_Loader(void);
3333
34+ bool Start_Groups_Dialog();
3435 bool Open_File_Model(const char* Extension, const char* Title, const char* StartDirectory);
3536 bool Read_Project_File(char* Path_And_File);
3637 void Load_File_Wepf();
@@ -49,6 +50,8 @@
4950
5051 protected:
5152
53+ static LRESULT CALLBACK Groups_Proc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
54+
5255 bool LoadTextures_TXL();
5356 void Copy_Texture_Names();
5457 int Check_for_Textures(geVFile* BaseFile);
@@ -57,6 +60,7 @@
5760 HBITMAP CreateHBitmapFromgeBitmap(geBitmap* Bitmap, HDC hdc);
5861
5962 int NameCount;
63+ HWND RightGroups_Hwnd;
6064
6165 std::vector<Char_type2> BitMap_Names;
6266
--- World_Viewer/World_Viewer/World_Viewer.cpp (revision 2069)
+++ World_Viewer/World_Viewer/World_Viewer.cpp (revision 2070)
@@ -76,8 +76,8 @@
7676 }
7777
7878 App->SetMainWinCentre();
79+ App->CL_Loader->Start_Groups_Dialog();
7980
80-
8181 SetTimer(App->MainHwnd, 1, 1, NULL);
8282
8383 HACCEL hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDC_WORLDVIEWER));
Show on old repository browser