comparison UI.lua @ 69:e89244da507b

Fixed beacon click action on extra consoles. Removed the load-time `print` output about the front channel.
author Nenue
date Tue, 15 Mar 2016 20:06:56 -0400
parents 1687ae1c6162
children d73b883b415b
comparison
equal deleted inserted replaced
68:1687ae1c6162 69:e89244da507b
375 --- Console frame toggler 375 --- Console frame toggler
376 -- @paramsig [...] 376 -- @paramsig [...]
377 -- @param ... one or more space-seperated channel keys 377 -- @param ... one or more space-seperated channel keys
378 function D:Console_Toggle(input, force) 378 function D:Console_Toggle(input, force)
379 local profile = D.currentProfile 379 local profile = D.currentProfile
380 --oldprint(input)
381 local setAll 380 local setAll
382 local search = {} 381 local search = {}
383 local key 382 local key
384 local n = 0 383 local n = 0
385 while self:GetArgs(input,1,n) and n < 255 do --should end itself when it gets nil, but 384 while self:GetArgs(input,1,n) and n < 255 do --should end itself when it gets nil, but
406 profile.enabled = nil 405 profile.enabled = nil
407 end 406 end
408 end 407 end
409 408
410 for i, id in pairs(search) do 409 for i, id in pairs(search) do
411 oldprint(i, id)
412 local c = self.console[id] 410 local c = self.console[id]
413 if setAll then 411 if setAll then
414 c.enabled = profile.enabled and profile.enabled or nil 412 c.enabled = profile.enabled and profile.enabled or nil
415 else 413 else
416 414
417 profile.enabled = true 415 profile.enabled = true
418 c.enabled = (not c.enabled) and true or nil 416 c.enabled = (not c.enabled) and true or nil
419 if force == 0 then 417 if force == 0 then
420 c.enabled = nil 418 c.enabled = nil
421 end 419 end
422 oldprint(id, ' ', force, c.enabled, profile.enabled)
423 end 420 end
424 421
425 if c.enabled or (setAll and profile.enabled) then 422 if c.enabled or (setAll and profile.enabled) then
426 c:Show() 423 c:Show()
427 elseif not (c.enabled and profile.enabled) then 424 elseif not (c.enabled and profile.enabled) then