| 2746 | } |
| 2747 | |
| 2748 | void MapEditor::LoadDialogueFile(const std::string& path) { |
| 2749 | if (state_ == MapEditor::kIdle && LoadEntitiesFromFile("Data/Objects/placeholder/empty_placeholder.xml") == 0) { |
| 2750 | ScriptParams sp; |
| 2751 | sp.ASAddString("Dialogue", path); // "Dialogue" is used in dimgui.cpp, change it there as well if changed here |
| 2752 | add_desc_list_[0].AddScriptParams(EDF_SCRIPT_PARAMS, sp.GetParameterMap()); |
| 2753 | SetTool(EditorTypes::ADD_ONCE); |
| 2754 | } |
| 2755 | } |
| 2756 | |
| 2757 | // Check if we've performed an action that warrants a new save (meaning action that effects the undo stack). |
| 2758 | bool MapEditor::WasLastSaveOnCurrentUndoChunk() { |
nothing calls this directly
no test coverage detected