MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / LoadDialogueFile

Method LoadDialogueFile

Source/Editors/map_editor.cpp:2748–2755  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2746}
2747
2748void 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).
2758bool MapEditor::WasLastSaveOnCurrentUndoChunk() {

Callers

nothing calls this directly

Calls 2

ASAddStringMethod · 0.80
AddScriptParamsMethod · 0.80

Tested by

no test coverage detected