MCPcopy Create free account
hub / github.com/MrDrElliot/LuminaEngine / OpenFileEditor

Method OpenFileEditor

Engine/Editor/Source/UI/EditorUI.cpp:1164–1190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1162 Memory::Delete(Tool);
1163 }
1164
1165 void FEditorUI::AddPendingTools()
1166 {
1167 FEditorTool* NewTool = nullptr;
1168 while (ToolsPendingAdd.Dequeue(NewTool))
1169 {
1170 EditorTools.Add(NewTool);
1171 }
1172 }
1173
1174 void FEditorUI::PushModal(const FString& Title, ImVec2 Size, TMoveOnlyFunction<bool()> DrawFunction)
1175 {
1176 ModalManager.CreateDialogue(Title, Size, Move(DrawFunction));
1177 }
1178
1179 bool FEditorUI::ConfirmWritable(TVector<FString> VirtualPaths, TMoveOnlyFunction<void()> Then, bool bThenSaves)
1180 {
1181 TVector<FString> ReadOnly;
1182 for (FString& Path : VirtualPaths)
1183 {
1184 if (VFS::IsReadOnlyOnDisk(FStringView(*Path, Path.Len())))
1185 {
1186 ReadOnly.Add(Move(Path));
1187 }
1188 }
1189 if (ReadOnly.IsEmpty())
1190 {
1191 return true;
1192 }
1193

Callers 2

OnInitializeMethod · 0.80
DrawAssetContextMenuMethod · 0.80

Calls 13

LaunchURLFunction · 0.85
ToWideStringFunction · 0.85
MoveFunction · 0.85
GetToolNameMethod · 0.80
CreateFileEditorMethod · 0.80
GetFunction · 0.50
emptyMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45
findMethod · 0.45
endMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected