GE Lua Documentation

Press F to search!

savePreferences

Definition


-- @/lua/ge/extensions/editor/main.lua:81

local function savePreferences()
  M.preferencesRegistry:savePreferences(editorPreferencesPath)
end

Callers

@/lua/ge/extensions/editor/visualization.lua
            if editor.getPreference("gizmos.visualization.saveVisualizationSettings") then
              editor.savePreferences()
            end
            if editor.getPreference("gizmos.visualization.saveVisualizationSettings") then
              editor.savePreferences()
            end
@/lua/ge/extensions/editor/main.lua
local function savePreferences()
  M.preferencesRegistry:savePreferences(editorPreferencesPath)
end
      -- save the current prefs
      editor.savePreferences()
      -- reload them again to have the new loaded extension access them too
  -- save the current prefs
  editor.savePreferences()
  -- reload them again to have the new loaded extension access them too
      editor.rebuildCollision(true)
      M.savePreferences()
      -- save windows state only when not in headless mode
    editor.setPreference("general.internal.cleanExit", true)
    editor.savePreferences()
  end
@/lua/ge/extensions/editor/mainUpdate.lua
      --TODO: add a delay, do not save every frame, some prefs might change very fast every frame
      editor.savePreferences()
    end
@/lua/ge/extensions/editor/api/preferencesRegistry.lua

function C:savePreferences(filename)
  local fname = filename or DefaultPreferencesPath
@/lua/ge/extensions/editor/missionEditor.lua
    grouping.mode = groupFilter.grouping
    editor.savePreferences()
  end
        editor.setPreference('missionEditor.general.shortIds', not editor.getPreference('missionEditor.general.shortIds'))
        editor.savePreferences()
      end
              --editor.setPreference("missionEditor.general.showWindows", showWindows)
              --editor.savePreferences()
            end
            editor.setPreference("missionEditor.general.showWindows", showWindows)
            editor.savePreferences()
          end
            editor.setPreference("missionEditor.general.showWindows", showWindows)
            editor.savePreferences()
          end
            editor.setPreference("missionEditor.general.showWindows", showWindows)
            editor.savePreferences()
          end
            editor.setPreference("missionEditor.general.showWindows", showWindows)
            editor.savePreferences()
          end