add console on_open 'mode' argument

This commit is contained in:
MihailRis
2024-11-19 08:30:50 +03:00
parent e80b10dbda
commit 78ea12aa26
4 changed files with 25 additions and 8 deletions
+3
View File
@@ -86,6 +86,9 @@ end
local _RadioGroup = {}
function _RadioGroup.set(self, key)
if type(self) ~= 'table' then
error("called as non-OOP via '.', use radiogroup:set")
end
if self.current then
self.elements[self.current].enabled = true
end