MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / handlePopupBegin

Function handlePopupBegin

TheForceEngine/TFE_Editor/editor.cpp:288–371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286 }
287
288 void handlePopupBegin()
289 {
290 if (s_editorPopup == POPUP_NONE || s_hidePopup) { return; }
291 switch (s_editorPopup)
292 {
293 case POPUP_MSG_BOX:
294 {
295 ImGui::OpenPopup(s_msgBox.id);
296 } break;
297 case POPUP_CONFIG:
298 {
299 ImGui::OpenPopup("Editor Config");
300 } break;
301 case POPUP_RESOURCES:
302 {
303 ImGui::OpenPopup("Editor Resources");
304 } break;
305 case POPUP_NEW_PROJECT:
306 case POPUP_EDIT_PROJECT:
307 {
308 ImGui::OpenPopup("Project");
309 } break;
310 case POPUP_EXPORT_PROJECT:
311 {
312 ImGui::OpenPopup("Export Project");
313 } break;
314 case POPUP_NEW_LEVEL:
315 {
316 ImGui::OpenPopup("New Level");
317 } break;
318 case POPUP_BROWSE:
319 {
320 ImGui::OpenPopup("Browse");
321 } break;
322 case POPUP_CATEGORY:
323 {
324 ImGui::OpenPopup("Category");
325 } break;
326 case POPUP_EDIT_INF:
327 {
328 ImGui::OpenPopup("Edit INF");
329 } break;
330 case POPUP_FIND_SECTOR:
331 {
332 ImGui::OpenPopup("Find Sector");
333 } break;
334 case POPUP_SNAPSHOTS:
335 {
336 ImGui::OpenPopup("Snapshots");
337 } break;
338 case POPUP_TEX_SOURCES:
339 {
340 ImGui::OpenPopup("Texture Sources");
341 } break;
342 case POPUP_RELOAD_CONFIRM:
343 {
344 ImGui::OpenPopup("Reload Confirmation");
345 } break;

Callers 1

updateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected