• R/O
  • SSH
  • HTTPS

vima19: Commit


Commit MetaInfo

Revision757 (tree)
Time2022-08-13 23:09:15
Authorhgtterry

Log Message

Equity_SB 130822 Imgui App Debug (WIP)

Change Summary

Incremental Difference

--- Anim19_OSDN/SB_Dialogs.cpp (revision 756)
+++ Anim19_OSDN/SB_Dialogs.cpp (revision 757)
@@ -31,8 +31,6 @@
3131 {
3232 Canceled = 0;
3333
34- What_List = 0;
35-
3634 btext[0] = 0;
3735 Chr_Text[0] = 0;
3836 }
@@ -139,131 +137,4 @@
139137
140138 }
141139 return FALSE;
142-}
143-
144-// *************************************************************************
145-// * Show_ListData Terry Flanigan *
146-// *************************************************************************
147-bool SB_Dialogs::Show_List_Data()
148-{
149- DialogBox(App->hInst, (LPCTSTR)IDD_LISTDATA, App->Fdlg, (DLGPROC)GroupData_Proc);
150-
151- return 1;
152-}
153-// *************************************************************************
154-// * GroupData_Proc Terry Flanigan *
155-// *************************************************************************
156-LRESULT CALLBACK SB_Dialogs::GroupData_Proc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
157-{
158-
159- switch (message)
160- {
161- case WM_INITDIALOG:
162- {
163- SendDlgItemMessage(hDlg, IDC_LISTGROUP, WM_SETFONT, (WPARAM)App->Font_CB15, MAKELPARAM(TRUE, 0));
164-
165- SendDlgItemMessage(hDlg, IDC_LISTGROUP, LB_RESETCONTENT, (WPARAM)0, (LPARAM)0);
166-
167- if (App->SBC_Dialogs->What_List == Enums::Show_List_Project)
168- {
169- App->SBC_Dialogs->List_App_Project(hDlg);
170- return TRUE;
171- }
172-
173- if (App->SBC_Dialogs->What_List == Enums::Show_List_Scene)
174- {
175- App->SBC_Dialogs->List_App_Scene(hDlg);
176- return TRUE;
177- }
178-
179- return TRUE;
180- }
181- case WM_CTLCOLORSTATIC:
182- {
183- return FALSE;
184- }
185-
186- case WM_CTLCOLORDLG:
187- {
188- return (LONG)App->AppBackground;
189- }
190-
191- case WM_NOTIFY:
192- {
193- LPNMHDR some_item = (LPNMHDR)lParam;
194-
195- return CDRF_DODEFAULT;
196- }
197-
198- case WM_COMMAND:
199- if (LOWORD(wParam) == IDOK)
200- {
201- EndDialog(hDlg, LOWORD(wParam));
202- return TRUE;
203- }
204-
205- if (LOWORD(wParam) == IDCANCEL)
206- {
207- EndDialog(hDlg, LOWORD(wParam));
208- return TRUE;
209- }
210-
211- break;
212- }
213- return FALSE;
214-}
215-
216-// *************************************************************************
217-// * List_App_Project Terry Flanigan *
218-// *************************************************************************
219-void SB_Dialogs::List_App_Project(HWND hDlg)
220-{
221-
222- char buf[255];
223-
224- sprintf(buf, "%s", "Project Folder Location");
225- SendDlgItemMessage(hDlg, IDC_LISTGROUP, LB_ADDSTRING, (WPARAM)0, (LPARAM)buf);
226- sprintf(buf, "%s", App->SBC_Project->m_Project_Folder_Path);
227- SendDlgItemMessage(hDlg, IDC_LISTGROUP, LB_ADDSTRING, (WPARAM)0, (LPARAM)buf);
228-
229-}
230-
231-// *************************************************************************
232-// * List_App_Scene Terry Flanigan *
233-// *************************************************************************
234-void SB_Dialogs::List_App_Scene(HWND hDlg)
235-{
236-
237- char buf[255];
238-
239- sprintf(buf, "%s %i", "Scene Loaded = ", App->SBC_Scene->Scene_Loaded);
240- SendDlgItemMessage(hDlg, IDC_LISTGROUP, LB_ADDSTRING, (WPARAM)0, (LPARAM)buf);
241-
242- SendDlgItemMessage(hDlg, IDC_LISTGROUP, LB_ADDSTRING, (WPARAM)0, (LPARAM)" ");
243-
244- sprintf(buf, "%s %i", "Player Added = ", App->SBC_Scene->Player_Added);
245- SendDlgItemMessage(hDlg, IDC_LISTGROUP, LB_ADDSTRING, (WPARAM)0, (LPARAM)buf);
246- sprintf(buf, "%s %i","Count = ", App->SBC_Scene->Player_Count);
247- SendDlgItemMessage(hDlg, IDC_LISTGROUP, LB_ADDSTRING, (WPARAM)0, (LPARAM)buf);
248-
249- SendDlgItemMessage(hDlg, IDC_LISTGROUP, LB_ADDSTRING, (WPARAM)0, (LPARAM)" ");
250-
251- sprintf(buf, "%s %i", "Aera Added = ", App->SBC_Scene->Area_Added);
252- SendDlgItemMessage(hDlg, IDC_LISTGROUP, LB_ADDSTRING, (WPARAM)0, (LPARAM)buf);
253- sprintf(buf, "%s %i", "Count = ",App->SBC_Scene->Area_Count);
254- SendDlgItemMessage(hDlg, IDC_LISTGROUP, LB_ADDSTRING, (WPARAM)0, (LPARAM)buf);
255-
256- SendDlgItemMessage(hDlg, IDC_LISTGROUP, LB_ADDSTRING, (WPARAM)0, (LPARAM)" ");
257-
258- sprintf(buf, "%s %i", "Camera Added = ", App->SBC_Scene->Camera_Added);
259- SendDlgItemMessage(hDlg, IDC_LISTGROUP, LB_ADDSTRING, (WPARAM)0, (LPARAM)buf);
260- sprintf(buf, "%s %i", "Count = ", App->SBC_Scene->Camera_Count);
261- SendDlgItemMessage(hDlg, IDC_LISTGROUP, LB_ADDSTRING, (WPARAM)0, (LPARAM)buf);
262-
263- SendDlgItemMessage(hDlg, IDC_LISTGROUP, LB_ADDSTRING, (WPARAM)0, (LPARAM)" ");
264-
265- sprintf(buf, "%s %i", "Objects Added = ", App->SBC_Scene->Objects_Added);
266- SendDlgItemMessage(hDlg, IDC_LISTGROUP, LB_ADDSTRING, (WPARAM)0, (LPARAM)buf);
267- sprintf(buf, "%s %i", "Count = ", App->SBC_Scene->Object_Count);
268- SendDlgItemMessage(hDlg, IDC_LISTGROUP, LB_ADDSTRING, (WPARAM)0, (LPARAM)buf);
269-}
140+}
\ No newline at end of file
--- Anim19_OSDN/SB_Dialogs.h (revision 756)
+++ Anim19_OSDN/SB_Dialogs.h (revision 757)
@@ -29,12 +29,9 @@
2929 ~SB_Dialogs();
3030
3131 bool Dialog_Text();
32- bool Show_List_Data();
33-
32+
3433 bool Canceled;
3534
36- int What_List;
37-
3835 char btext[255];
3936 char Chr_Text[255];
4037
@@ -41,9 +38,5 @@
4138 protected:
4239
4340 static LRESULT CALLBACK Dialog_Text_Proc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
44- static LRESULT CALLBACK GroupData_Proc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
45-
46- void List_App_Project(HWND hDlg);
47- void List_App_Scene(HWND hDlg);
4841 };
4942
--- Anim19_OSDN/VM_ImGui.cpp (revision 756)
+++ Anim19_OSDN/VM_ImGui.cpp (revision 757)
@@ -1038,9 +1038,9 @@
10381038 {
10391039 ImGui::SetNextWindowSize(ImVec2(530, 250), ImGuiCond_FirstUseEver);
10401040
1041- ImGui::OpenPopup("Level Data");
1041+ //ImGui::OpenPopup("Level Data");
10421042
1043- if (!ImGui::BeginPopupModal("Level Data", &Show_App_Data, ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_AlwaysAutoResize))
1043+ if (!ImGui::Begin("App Data", &Show_App_Data, ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_AlwaysAutoResize))
10441044 {
10451045 ImGui::EndPopup();
10461046 }
@@ -1111,10 +1111,10 @@
11111111
11121112 if (ImGui::Button("Close"))
11131113 {
1114- Show_Model_Data = 0;
1114+ Show_App_Data = 0;
11151115 }
11161116
1117- ImGui::EndPopup();
1117+ ImGui::End();
11181118 }
11191119 }
11201120 char* VM_ImGui::poo()
Show on old repository browser