Shestak UI
Go Back   Shestak UI > Interface Forums > Russian Community > Bugs Reports

Bugs Reports Report any bugs or issues you come across with ShestakUI.

Advertising

 
Thread Tools
Old 21.07.2010, 22:01   #1
 Senior Member User Information

Obakol's Avatar
Post LitePanels

Сам поглядел, не понял, где же там нулевое значение



93-98

Code [Select]:
OnLeave = function(self)
		--if not strmatch(GetMouseFocus():GetName(),"^LP_") and aSettings["toppanel"].mouseover == true then
		if not (GetMouseFocus():GetName():match"^LP_") and aSettings["toppanel"].mouseover == true then
			self:SetAlpha(0)
		end
	end,
Old 21.07.2010, 22:01   #1.5 - Disable Ads

Advertise on this site

Old 22.07.2010, 05:32   #2
Shestak
 Junior Member User Information

Shestak's Avatar
Все содержимое LitePanels\layout.lua можно глянуть?
Old 22.07.2010, 17:59   #3
Obakol
 Senior Member User Information

Obakol's Avatar
Code [Select]:
----------------------------------------------------------------------------------------
-- LitePanels configuration file
-- BACKUP YOUR CHANGES TO THIS FILE BEFORE UPDATING!
----------------------------------------------------------------------------------------
lpanels:CreateLayout("Load For All", {
-- Bottom panel
{   name = "LeftBlackBar", 
    anchor_to = "BOTTOMLEFT", x_off = 20, y_off = 20,
    width = 3, height = aSettings["chat"].height - 6,
    bg_color = "0 0 0", bg_alpha = 1,
},
{   name = "LeftColorBar", parent = "LeftBlackBar",
    anchor_to = "CENTER",
    width = 1, height = aSettings["chat"].height - 8,
    bg_color = "CLASS", bg_alpha = 1,
},
{   name = "BottomBlackBar", parent = "UIParent",
    anchor_to = "BOTTOMLEFT", x_off = 0, y_off = 19,
    width = "100%", height = 3,
	inset = { left = 20, right = 20 },
    bg_color = "0 0 0", bg_alpha = 1,
},
{   name = "BottomColorBar", parent = "BottomBlackBar",
    anchor_to = "CENTER",
    width = "100%", height = 1,
	inset = { left = 21, right = 21 },
    bg_color = "CLASS", bg_alpha = 1,
},
-- Player panel
{   name = "PlayerBottomBlackBar", parent = "oUF_Player",
    anchor_to = "BOTTOMLEFT", x_off = -6, y_off = -7,
    width = 230, height = 3,
    bg_color = "0 0 0", bg_alpha = 1,
},
{   name = "PlayerBottomColorBar", parent = "PlayerBottomBlackBar",
    anchor_to = "CENTER",
    width = "99%", height = 1,
    bg_color = "CLASS", bg_alpha = 1,
},
{   name = "PlayerLeftBlackBar", parent = "oUF_Player",
    anchor_to = "BOTTOMLEFT", x_off = -7, y_off = -42,
    width = 3, height = 100,
    bg_color = "0 0 0", bg_alpha = 1,
},
{   name = "PlayerLeftColorBar", parent = "PlayerLeftBlackBar",
    anchor_to = "CENTER",
    width = 1, height = "98%",
    bg_color = "CLASS", bg_alpha = 1,
},
-- Target panel
{   name = "TargetBottomBlackBar", parent = "oUF_Target",
    anchor_to = "BOTTOMRIGHT", x_off = 6, y_off = -7,
    width = 230, height = 3,
    bg_color = "0 0 0", bg_alpha = 1,
},
{   name = "TargetBottomColorBar", parent = "TargetBottomBlackBar",
    anchor_to = "CENTER",
    width = "99%", height = 1,
	OnLoad = function(self)
		self:RegisterEvent'PLAYER_TARGET_CHANGED'
	end,
	OnEvent = function(self)
		local _,class = UnitClass'target'
		local color = RAID_CLASS_COLORS[class] or {0.19, 0.58, 0.58}
		self.bg:SetTexture(color.r, color.g, color.b, 1.0)
	end,
},
{   name = "TargetRightBlackBar", parent = "oUF_Target",
    anchor_to = "BOTTOMRIGHT", x_off = 7, y_off = -42,
    width = 3, height = 100,
    bg_color = "0 0 0", bg_alpha = 1,
},
{   name = "TargetRightColorBar", parent = "TargetRightBlackBar",
    anchor_to = "CENTER",
    width = 1, height = "98%",
	OnLoad = function(self)
		self:RegisterEvent'PLAYER_TARGET_CHANGED'
	end,
	OnEvent = function(self)
		local _,class = UnitClass'target'
		local color = RAID_CLASS_COLORS[class] or {0.19, 0.58, 0.58}
		self.bg:SetTexture(color.r, color.g, color.b, 1.0)
	end,
},
--Top panel
{	name = "StatContainer",
	anchor_to = "BOTTOM",
	x_off = 430, y_off = -9,
	width = 450, height = 40,
	bg_alpha = 0,
	OnLoad = function(self) if aSettings["toppanel"].mouseover == true then self:SetAlpha(0) end  end,
	OnEnter = function(self) if aSettings["toppanel"].mouseover == true then self:SetAlpha(1) end end,
	OnLeave = function(self)
		--if not strmatch(GetMouseFocus():GetName(),"^LP_") and aSettings["toppanel"].mouseover == true then
		if not (GetMouseFocus():GetName():match"^LP_") and aSettings["toppanel"].mouseover == true then
			self:SetAlpha(0)
		end
	end,
},
{	name = "BoxL", parent = "StatContainer",
	anchor_to = "LEFT",
	width = "50%", height = "55%",
	gradient = "H",
	bg_color = "CLASS", gradient_color = "CLASS",
	bg_alpha = 0, gradient_alpha = 0.2,
},	
{	name = "BoxR", parent = "StatContainer",
	anchor_to = "RIGHT",
	width = "50%", height = "55%",
	gradient = "H",
	bg_color = "CLASS", gradient_color = "CLASS",
	bg_alpha = 0.2, gradient_alpha = 0,
},
{   name = "LineTBTL",
    parent = "BoxL", anchor_to = "TOP", x_off = 0, y_off = 1,
    width = "100%", height = 0,
    gradient = "H",
    bg_color = "0 0 0", gradient_color = "0 0 0",
    bg_alpha = 0, gradient_alpha = 0.8,
},
{   name = "LineBBTL",
    parent = "BoxL", anchor_to = "TOP", x_off = 0, y_off = -1,
    width = "100%", height = 0,
    gradient = "H",
    bg_color = "0 0 0", gradient_color = "0 0 0",
    bg_alpha = 0, gradient_alpha = 0.8,
},
{   name = "LineTL",
    parent = "BoxL", anchor_to = "TOP",
    width = "100%", height = 0,
    gradient = "H",
    bg_color = "CLASS", gradient_color = "CLASS",
    bg_alpha = 0, gradient_alpha = 0.8,
},
{   name = "LineTBTR",
    parent = "BoxR", anchor_to = "TOP", x_off = 0, y_off = 1,
    width = "100%", height = 0,
    gradient = "H",
    bg_color = "0 0 0", gradient_color = "0 0 0",
    bg_alpha = 0.8, gradient_alpha = 0,
},
{   name = "LineBBTR",
    parent = "BoxR", anchor_to = "TOP", x_off = 0, y_off = -1,
    width = "100%", height = 0,
    gradient = "H",
    bg_color = "0 0 0", gradient_color = "0 0 0",
    bg_alpha = 0.8, gradient_alpha = 0,
},
{   name = "LineTR",
    parent = "BoxR", anchor_to = "TOP",
    width = "100%", height = 0,
    gradient = "H",
    bg_color = "CLASS", gradient_color = "CLASS",
    bg_alpha = 0.8, gradient_alpha = 0,
},
{   name = "LineTBBL",
    parent = "BoxL", anchor_to = "BOTTOM", x_off = 0, y_off = 1,
    width = "100%", height = 0,
    gradient = "H",
    bg_color = "0 0 0", gradient_color = "0 0 0",
    bg_alpha = 0, gradient_alpha = 0.8,
},
{   name = "LineBBBL",
    parent = "BoxL", anchor_to = "BOTTOM", x_off = 0, y_off = -1,
    width = "100%", height = 0,
    gradient = "H",
    bg_color = "0 0 0", gradient_color = "0 0 0",
    bg_alpha = 0, gradient_alpha = 0.8,
},
{   name = "LineBL",
    parent = "BoxL", anchor_to = "BOTTOM",
    width = "100%", height = 0,
    gradient = "H",
    bg_color = "CLASS", gradient_color = "CLASS",
    bg_alpha = 0, gradient_alpha = 0.8,
},
{   name = "LineTBBR",
    parent = "BoxR", anchor_to = "BOTTOM", x_off = 0, y_off = 1,
    width = "100%", height = 0,
    gradient = "H",
    bg_color = "0 0 0", gradient_color = "0 0 0",
    bg_alpha = 0.8, gradient_alpha = 0,
},
{   name = "LineBBBR",
    parent = "BoxR", anchor_to = "BOTTOM", x_off = 0, y_off = -1,
    width = "100%", height = 0,
    gradient = "H",
    bg_color = "0 0 0", gradient_color = "0 0 0",
    bg_alpha = 0.8, gradient_alpha = 0,
},
{   name = "LineBR",
    parent = "BoxR", anchor_to = "BOTTOM",
    width = "100%", height = 0,
    gradient = "H",
    bg_color = "CLASS", gradient_color = "CLASS",
    bg_alpha = 0.8, gradient_alpha = 0,
},
-- AFK panel
{	name = "AFK", anchor_to = "TOP", y_off = -210,
	bg_alpha = 0.8, width = 180, height = 75,
	inset = { left = -1, right = -1, top = -1, bottom = -1 },
	border = "SOLID", border_color = "0.37 0.3 0.3",
	text = {
			{	string = L_PANELS_AFK, anchor_to = "TOP", y_off = -10,
				shadow = 1, font = aSettings["media"].pixel_font, size = 8,
			},
			{	string = function()
					if afk_timer then
						local secs = mod(time() - afk_timer, 60)
						local mins = floor((time() - afk_timer) / 60)
					return format("%s:%02.f", mins, secs)
					end
				end, update = 0.1,
				shadow = 1, font = aSettings["media"].pixel_font, size = 16,
				anchor_to = "CENTER", color = "1 0.1 0.1"
			},
			{	string = L_PANELS_AFK_RCLICK, anchor_to = "BOTTOM", y_off = 12,
				shadow = 1, font = aSettings["media"].pixel_font, size = 8, 
			},
			{	string = L_PANELS_AFK_LCLICK, anchor_to = "BOTTOM", y_off = 3,
				shadow = 1, font = aSettings["media"].pixel_font, size = 8, 
			}
			},
        OnLoad = function(self)
            self:RegisterEvent("PLAYER_FLAGS_CHANGED")
            self:Hide()
        end,
        OnEvent = function(self)
            if UnitIsAFK("player") and not afk_timer then
                self.text2:SetText("0:00")
                afk_timer = time()
                self:Show()
            elseif not UnitIsAFK("player") then
                self:Hide()
                afk_timer = nil
            end
        end,
        OnClick = function(self, b)
            self:Hide()
            if b == "LeftButton" then SendChatMessage("", "AFK") end
        end,
        OnEnter = function(self) self.bg:SetTexture(.1,.1,.1,.8) end,
        OnLeave = function(self) self.bg:SetTexture(0,0,0,.8) end
    },
})

lpanels:ApplyLayout(nil, "Load For All")
конечно это тогда наверное из-за того что я ширину линий в ноль поставил? Т.е я вообще в самом файле менял только ширину линий. Что бы не мешались

Posted in 2 minutes

Tags
litepanels

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
LitePanels texture problem... felixjhf Technical Support 5 08.03.2011 14:19
About the chat and LitePanels nanjiqq Technical Support 5 10.09.2010 02:49


Mobile Style Русский English Deutsch Italian Chinese