comparison Devian.lua @ 24:4085930d5f09 v1.4.2

debugged last commit now that servers are back up
author Nenue
date Wed, 23 Dec 2015 17:11:05 -0500
parents 2c2a84163606
children b0e8bd30575f
comparison
equal deleted inserted replaced
23:2c2a84163606 24:4085930d5f09
245 c.out.backdrop:SetGradientAlpha(unpack(db.frontgrad)) 245 c.out.backdrop:SetGradientAlpha(unpack(db.frontgrad))
246 c.out.backdrop:SetBlendMode(db.frontblend) 246 c.out.backdrop:SetBlendMode(db.frontblend)
247 db.current_channel = c.index 247 db.current_channel = c.index
248 248
249 for _, part in pairs(c.border) do 249 for _, part in pairs(c.border) do
250 part:SetTexture(unpack(db.front_border)) 250 part:SetTexture(unpack(db.frontborder))
251 end 251 end
252 252
253 for id, bc in pairs(D.console) do 253 for id, bc in pairs(D.console) do
254 if id ~= c.index then 254 if id ~= c.index then
255 --print(D.raise_ct, 'Lowering', bc.signature) 255 --print(D.raise_ct, 'Lowering', bc.signature)
259 bc.out.backdrop:SetTexture(unpack(db.backdrop)) 259 bc.out.backdrop:SetTexture(unpack(db.backdrop))
260 bc.out.backdrop:SetGradientAlpha(unpack(db.backgrad)) 260 bc.out.backdrop:SetGradientAlpha(unpack(db.backgrad))
261 bc.out.backdrop:SetBlendMode(db.backblend) 261 bc.out.backdrop:SetBlendMode(db.backblend)
262 262
263 for _, part in pairs(bc.border) do 263 for _, part in pairs(bc.border) do
264 part:SetTexture(unpack(db.back_border)) 264 part:SetTexture(unpack(db.backborder))
265 end 265 end
266 end 266 end
267 267
268 end 268 end
269 269
285 f:SetPoint('TOPLEFT', UIParent, 'TOPLEFT', vars.x, vars.y) 285 f:SetPoint('TOPLEFT', UIParent, 'TOPLEFT', vars.x, vars.y)
286 f:SetSize(vars.width, vars.height) 286 f:SetSize(vars.width, vars.height)
287 f:Lower() 287 f:Lower()
288 f.out:SetFont(db.font, db.fontsize, db.fontoutline) 288 f.out:SetFont(db.font, db.fontsize, db.fontoutline)
289 if (db.current_channel == i) then 289 if (db.current_channel == i) then
290 f:out:SetTexture(unpack(db.frontdrop)) 290 f.out.backdrop:SetTexture(unpack(db.frontdrop))
291 else 291 else
292 f:out:SetTexture(unpack(db.backdrop)) 292 f.out.backdrop:SetTexture(unpack(db.backdrop))
293 end 293 end
294 294
295 f.Save = Console_Save 295 f.Save = Console_Save
296 f.Minimize = Console_Minimize 296 f.Minimize = Console_Minimize
297 f.Maximize = Console_Maximize 297 f.Maximize = Console_Maximize
326 -- The first argument describes the channel to output on, and the remaining arguments are concatenated in a manner similar to default print() 326 -- The first argument describes the channel to output on, and the remaining arguments are concatenated in a manner similar to default print()
327 -- This becomes the print handler when development mode is active. The original print() function is assigned to oldprint(). 327 -- This becomes the print handler when development mode is active. The original print() function is assigned to oldprint().
328 -- @param Tag, signature, or numeric index of the channel to output on. Defaults to primary channel. 328 -- @param Tag, signature, or numeric index of the channel to output on. Defaults to primary channel.
329 -- @param ... Output contents. 329 -- @param ... Output contents.
330 local function Message(prefix, ...) 330 local function Message(prefix, ...)
331 if db.enabled then 331 if db.enabled == true then
332 return D.oldprint(prefix, ...) 332 return D.oldprint(prefix, ...)
333 end 333 end
334 334
335 if prefix == nil then 335 if prefix == nil then
336 prefix = 1 336 prefix = 1
589 if self.console[db.current_channel] then 589 if self.console[db.current_channel] then
590 self.console[db.current_channel]:ToFront() 590 self.console[db.current_channel]:ToFront()
591 end 591 end
592 592
593 if db.enabled then 593 if db.enabled then
594 for i, c in pairs(self.console) 594 for i, c in pairs(self.console) do
595 self.console[i]:Hide() 595 self.console[i]:Hide()
596 end 596 end
597 end 597 end
598 598
599 599