Equity_SB 130822 Imgui App Debug (WIP)
@@ -31,8 +31,6 @@ | ||
31 | 31 | { |
32 | 32 | Canceled = 0; |
33 | 33 | |
34 | - What_List = 0; | |
35 | - | |
36 | 34 | btext[0] = 0; |
37 | 35 | Chr_Text[0] = 0; |
38 | 36 | } |
@@ -139,131 +137,4 @@ | ||
139 | 137 | |
140 | 138 | } |
141 | 139 | 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 |
@@ -29,12 +29,9 @@ | ||
29 | 29 | ~SB_Dialogs(); |
30 | 30 | |
31 | 31 | bool Dialog_Text(); |
32 | - bool Show_List_Data(); | |
33 | - | |
32 | + | |
34 | 33 | bool Canceled; |
35 | 34 | |
36 | - int What_List; | |
37 | - | |
38 | 35 | char btext[255]; |
39 | 36 | char Chr_Text[255]; |
40 | 37 |
@@ -41,9 +38,5 @@ | ||
41 | 38 | protected: |
42 | 39 | |
43 | 40 | 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); | |
48 | 41 | }; |
49 | 42 |
@@ -1038,9 +1038,9 @@ | ||
1038 | 1038 | { |
1039 | 1039 | ImGui::SetNextWindowSize(ImVec2(530, 250), ImGuiCond_FirstUseEver); |
1040 | 1040 | |
1041 | - ImGui::OpenPopup("Level Data"); | |
1041 | + //ImGui::OpenPopup("Level Data"); | |
1042 | 1042 | |
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)) | |
1044 | 1044 | { |
1045 | 1045 | ImGui::EndPopup(); |
1046 | 1046 | } |
@@ -1111,10 +1111,10 @@ | ||
1111 | 1111 | |
1112 | 1112 | if (ImGui::Button("Close")) |
1113 | 1113 | { |
1114 | - Show_Model_Data = 0; | |
1114 | + Show_App_Data = 0; | |
1115 | 1115 | } |
1116 | 1116 | |
1117 | - ImGui::EndPopup(); | |
1117 | + ImGui::End(); | |
1118 | 1118 | } |
1119 | 1119 | } |
1120 | 1120 | char* VM_ImGui::poo() |