Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 3 additions & 10 deletions plugins/lua/spectate.lua
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,6 @@ end

local config, save_state = load_state()

-- called by gui/spectate
function get_config_elem(name, key)
local elem = config[name]
if not elem then return end
if type(elem) == 'table' then
return elem[key]
end
return elem
end

function refresh_cpp_config()
for name,value in pairs(config) do
if not name:startswith(lua_only_settings_prefix) then
Expand Down Expand Up @@ -624,4 +614,7 @@ OVERLAY_WIDGETS = {
tooltip=TooltipOverlay,
}

-- make public
_ENV.config, _ENV.save_state = config, save_state

return _ENV