comparison UI.lua @ 88:7ff0579e5a6e

- checking work on D:Console_Toggle()
author Nenue
date Tue, 26 Jul 2016 09:50:45 -0400
parents e80723841888
children b3ed963f482d
comparison
equal deleted inserted replaced
87:e80723841888 88:7ff0579e5a6e
379 -- @paramsig [...] 379 -- @paramsig [...]
380 -- @param ... one or more space-seperated channel keys 380 -- @param ... one or more space-seperated channel keys
381 function D:Console_Toggle(cmd, force) 381 function D:Console_Toggle(cmd, force)
382 382
383 383
384 local args = {} 384 local search = {}
385 if cmd then 385 if cmd then
386 cmd = tostring(cmd) 386 cmd = tostring(cmd)
387 local i, j = 0, 0 387 local i, j = 0, 0
388 repeat 388 repeat
389 i, j = cmd:find("%S+", j+1) 389 i, j = cmd:find("%S+", j+1)
400 until not(i or j) 400 until not(i or j)
401 end 401 end
402 402
403 local profile = D.currentProfile 403 local profile = D.currentProfile
404 local setAll 404 local setAll
405 local search = {}
406 -- resolve key/sig values from args
407 for i, key in ipairs(args) do
408
409 --oldprint(#search, key, n)
410 end
411 405
412 -- if nothing was found, then do an all toggle 406 -- if nothing was found, then do an all toggle
413 if #search < 1 then 407 if #search < 1 then
414 search = self.sigID -- using this since it lists frame ID's 408 search = self.sigID -- using this since it lists frame ID's
415 setAll = true 409 setAll = true