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

Function openEditorPopup

TheForceEngine/TFE_Editor/editor.cpp:1064–1092  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1062 }
1063
1064 void openEditorPopup(EditorPopup popup, u32 userData, void* userPtr)
1065 {
1066 if (s_hidePopup) { return; }
1067
1068 s_editorPopup = popup;
1069 s_editorPopupUserData = userData;
1070 s_editorPopupUserPtr = userPtr;
1071
1072 // Initialization if needed.
1073 switch (popup)
1074 {
1075 case POPUP_BROWSE:
1076 {
1077 AssetBrowser::initPopup(AssetType(userData), (char*)userPtr);
1078 } break;
1079 case POPUP_EDIT_INF:
1080 {
1081 LevelEditor::editor_infEditBegin((char*)userPtr, userData == 0xffffffff ? -1 : userData);
1082 } break;
1083 case POPUP_FIND_SECTOR:
1084 {
1085 LevelEditor::findSectorUI_Begin();
1086 } break;
1087 case POPUP_SNAPSHOTS:
1088 {
1089 LevelEditor::snapshotUI_Begin();
1090 } break;
1091 }
1092 }
1093
1094 ArchiveType getArchiveType(const char* filename)
1095 {

Callers 10

disableFunction · 0.85
infoPanelFunction · 0.85
browseTexturesFunction · 0.85
infoPanelMapFunction · 0.85
infoPanelWallFunction · 0.85
infoPanelSectorFunction · 0.85
infoPanelObjectFunction · 0.85
edit_closeLevelCheckSaveFunction · 0.85
menuFunction · 0.85
handleEditorActionsFunction · 0.85

Calls 5

initPopupFunction · 0.85
AssetTypeEnum · 0.85
editor_infEditBeginFunction · 0.85
findSectorUI_BeginFunction · 0.85
snapshotUI_BeginFunction · 0.85

Tested by

no test coverage detected