We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e835fa commit 7b26be3Copy full SHA for 7b26be3
1 file changed
plugins/lua/spectate.lua
@@ -86,16 +86,6 @@ end
86
87
local config, save_state = load_state()
88
89
--- called by gui/spectate
90
-function get_config_elem(name, key)
91
- local elem = config[name]
92
- if not elem then return end
93
- if type(elem) == 'table' then
94
- return elem[key]
95
- end
96
- return elem
97
-end
98
-
99
function refresh_cpp_config()
100
for name,value in pairs(config) do
101
if not name:startswith(lua_only_settings_prefix) then
@@ -624,4 +614,7 @@ OVERLAY_WIDGETS = {
624
614
tooltip=TooltipOverlay,
625
615
}
626
616
617
+-- make public
618
+_ENV.config, _ENV.save_state = config, save_state
619
+
627
620
return _ENV
0 commit comments