Shestak UI
Go Back   Shestak UI > Interface Forums > English Community > Modified Versions

Modified Versions Your modified version of ShestakUI.

Advertising

 
Thread Tools
Old 11.11.2012, 14:42   #31
m2jest1c
 Assistant User Information

m2jest1c's Avatar
Quote:
Originally Posted by rkw View Post
is it possible for life and mana display add a percentile?
https://github.com/m2jest1c/ShestakU...ments/Tags.lua
https://github.com/m2jest1c/ShestakU...rames/Tags.lua
Old 11.11.2012, 14:42   #1.5 - Disable Ads

Advertise on this site

Old 11.11.2012, 14:59   #32
rkw
 Elder Member User Information

rkw's Avatar
okay o,O
where do I start? ^^
Old 11.11.2012, 15:01   #33
m2jest1c
 Assistant User Information

m2jest1c's Avatar
Quote:
Originally Posted by rkw View Post
okay o,O
where do I start? ^^
http://shestak.org/forum/showpost.ph...1&postcount=42
Old 11.11.2012, 17:05   #34
rkw
 Elder Member User Information

rkw's Avatar
Quote:
Originally Posted by m2jest1c View Post
lua Code [Select]:
Castbar.bg:SetVertexColor(r, g, b, t)
where r, g, b - colors (ex. 0.9, 0.1, 0.1), t - alpha (0 to 1)
what is the color code for the example
"["MANA"] = {0.31, 0.45, 0.63}," ?



- rkw -
Old 11.11.2012, 18:04   #35
m2jest1c
 Assistant User Information

m2jest1c's Avatar
Quote:
Originally Posted by rkw View Post
what is the color code for the example
"["MANA"] = {0.31, 0.45, 0.63}," ?
ex. SetColor(unpack(MANA))
Old 12.11.2012, 01:06   #36
Shestak
 Junior Member User Information

Shestak's Avatar
Quote:
Originally Posted by rkw View Post
is it possible for life and mana display add a percentile?
Quote:
Originally Posted by rkw View Post
where do I start? ^^
For "single" health unit value see this function https://github.com/Shestak/ShestakUI...tions.lua#L540
For "group" health unit value see this function https://github.com/Shestak/ShestakUI...tions.lua#L639

For power unit value see this function https://github.com/Shestak/ShestakUI...tions.lua#L718
Old 14.11.2012, 19:57   #37
rkw
 Elder Member User Information

rkw's Avatar
today's progress.






lua Code [Select]:
----------------------------------------------------------------------------------------
-- Player line
----------------------------------------------------------------------------------------
local HorizontalPlayerLine = CreateFrame("Frame", "HorizontalPlayerLine", oUF_Player)
HorizontalPlayerLine:CreatePanel("Default", 228, 1, "TOPLEFT", "oUF_Player", "BOTTOMLEFT", -5, -14)

local VerticalPlayerLine = CreateFrame("Frame", "VerticalPlayerLine", oUF_Player)
VerticalPlayerLine:CreatePanel("Default", 1, 98, "RIGHT", HorizontalPlayerLine, "LEFT", 0, 13)
----------------------------------------------------------------------------------------
-- PlayerTopLine
----------------------------------------------------------------------------------------
local HorizontalPlayerTopLine = CreateFrame("Frame", "HorizontalPlayerTopLine", oUF_Player)
HorizontalPlayerTopLine:CreatePanel("Default", 550, 1, "TOPLEFT", "oUF_Player", "BOTTOMRIGHT", 564, 770)

local VerticalPlayerTopLine = CreateFrame("Frame", "VerticalPlayerTopLine", oUF_Player)
VerticalPlayerTopLine:CreatePanel("Default", 1, 120, "RIGHT", HorizontalPlayerTopLine, "RIGHT", 0, -59)
----------------------------------------------------------------------------------------
-- PlayerTopLineLeft
----------------------------------------------------------------------------------------
local HorizontalPlayerTopLineLeft = CreateFrame("Frame", "HorizontalPlayerTopLineLeft", oUF_Player)
HorizontalPlayerTopLineLeft:CreatePanel("Default", 550, 1, "TOPLEFT", "oUF_Player", "BOTTOMRIGHT", -764, 770)

local VerticalPlayerTopLineLeft = CreateFrame("Frame", "VerticalPlayerTopLineLeft", oUF_Player)
VerticalPlayerTopLineLeft:CreatePanel("Default", 1, 120, "RIGHT", HorizontalPlayerTopLineLeft, "LEFT", 1, -59)
----------------------------------------------------------------------------------------
-- Target line
----------------------------------------------------------------------------------------
local HorizontalTargetLine = CreateFrame("Frame", "HorizontalTargetLine", oUF_Target)
HorizontalTargetLine:CreatePanel("ClassColor", 228, 1, "TOPRIGHT", "oUF_Target", "BOTTOMRIGHT", 5, -14)
HorizontalTargetLine:RegisterEvent("PLAYER_TARGET_CHANGED")
HorizontalTargetLine:SetScript("OnEvent", function(self)
local _, class = UnitClass("target")
self.HorizontalTargetLine:SetAlpha(2)
local color = (CUSTOM_CLASS_COLORS or RAID_CLASS_COLORS)[class]
if color then
self:SetBackdropBorderColor(color.r, color.g, color.b)
else
self:SetBackdropBorderColor(unpack(C.media.border_color))
end
end)

local VerticalTargetLine = CreateFrame("Frame", "VerticalTargetLine", oUF_Target)
VerticalTargetLine:CreatePanel("ClassColor", 1, 98, "LEFT", HorizontalTargetLine, "RIGHT", 0, 13)
VerticalTargetLine:RegisterEvent("PLAYER_TARGET_CHANGED")
VerticalTargetLine:SetScript("OnEvent", function(self)
local _, class = UnitClass("target")
local color = (CUSTOM_CLASS_COLORS or RAID_CLASS_COLORS)[class]
if color then
self:SetBackdropBorderColor(color.r, color.g, color.b)
else
self:SetBackdropBorderColor(unpack(C.media.border_color))
end
end)
----------------------------------------------------------------------------------------
-- Topline
----------------------------------------------------------------------------------------
local Topline1 = CreateFrame("Frame", "Topline1", oUF_Target)
Topline1:CreatePanel("ClassColor", 551, 1, "TOPRIGHT", "oUF_Target", "BOTTOMRIGHT", 548, 770)
Topline1:RegisterEvent("PLAYER_TARGET_CHANGED")
Topline1:SetScript("OnEvent", function(self)
local _, class = UnitClass("target")
local color = (CUSTOM_CLASS_COLORS or RAID_CLASS_COLORS)[class]
if color then
self:SetBackdropBorderColor(color.r, color.g, color.b)
else
self:SetBackdropBorderColor(unpack(C.media.border_color))
end
end)

local VerticalTopline2 = CreateFrame("Frame", "VerticalTopline2", oUF_Target)
VerticalTopline2:CreatePanel("ClassColor", 1, 120, "LEFT", TopLine1, "RIGHT", -22, 457)
VerticalTopline2:RegisterEvent("PLAYER_TARGET_CHANGED")
VerticalTopline2:SetScript("OnEvent", function(self)
local _, class = UnitClass("target")
local color = (CUSTOM_CLASS_COLORS or RAID_CLASS_COLORS)[class]
if color then
self:SetBackdropBorderColor(color.r, color.g, color.b)
else
self:SetBackdropBorderColor(unpack(C.media.border_color))
end
end)
----------------------------------------------------------------------------------------
-- Toplineleft
----------------------------------------------------------------------------------------
local Toplineleft = CreateFrame("Frame", "Toplineleft", oUF_Target)
Toplineleft:CreatePanel("ClassColor", 551, 1, "TOPLEFT", "oUF_Target", "BOTTOMLEFT", -1112, 770)
Toplineleft:RegisterEvent("PLAYER_TARGET_CHANGED")
Toplineleft:SetScript("OnEvent", function(self)
local _, class = UnitClass("target")
local color = (CUSTOM_CLASS_COLORS or RAID_CLASS_COLORS)[class]
if color then
self:SetBackdropBorderColor(color.r, color.g, color.b)
else
self:SetBackdropBorderColor(unpack(C.media.border_color))
end
end)

local VerticalToplineleft2 = CreateFrame("Frame", "VerticalToplineleft2", oUF_Target)
VerticalToplineleft2:CreatePanel("ClassColor", 1, 120, "LEFT", Toplineleft1, "RIGHT", -1899, 457)
VerticalToplineleft2:RegisterEvent("PLAYER_TARGET_CHANGED")
VerticalToplineleft2:SetScript("OnEvent", function(self)
local _, class = UnitClass("target")
local color = (CUSTOM_CLASS_COLORS or RAID_CLASS_COLORS)[class]
if color then
self:SetBackdropBorderColor(color.r, color.g, color.b)
else
self:SetBackdropBorderColor(unpack(C.media.border_color))
end
end)

to do list:
1. percentile
2. DBM Color
3. "-- Player line" ... cleanup

:-) thx for help

- rkw -

Posted in 19 stunden 10 minute
Quote:
Originally Posted by Shestak View Post
Quote:
Originally Posted by rkw View Post
is it possible for life and mana display add a percentile?
Quote:
Originally Posted by rkw View Post
where do I start? ^^
For "single" health unit value see this function https://github.com/Shestak/ShestakUI...tions.lua#L540
For "group" health unit value see this function https://github.com/Shestak/ShestakUI...tions.lua#L639

For power unit value see this function https://github.com/Shestak/ShestakUI...tions.lua#L718
I do not get out
help pls

Posted in 2 stunden 41 minute




Posted in 44 stunden 24 minutes
Hey,
how do I create an alpha for my line?
lua Code [Select]:
----------------------------------------------------------------------------------------
-- Player line
----------------------------------------------------------------------------------------
local HorizontalPlayerLine = CreateFrame("Frame", "HorizontalPlayerLine", oUF_Player)
HorizontalPlayerLine:CreatePanel("Default", 228, 1, "TOPLEFT", "oUF_Player", "BOTTOMLEFT", -5, -14)
self.HorizontalPlayerLine:SetAlpha(1)

local VerticalPlayerLine = CreateFrame("Frame", "VerticalPlayerLine", oUF_Player)
VerticalPlayerLine:CreatePanel("Default", 1, 98, "RIGHT", HorizontalPlayerLine, "LEFT", 0, 13)
self.VerticalPlayerLine:SetAlpha(1)
----------------------------------------------------------------------------------------
-- PlayerTopLine
----------------------------------------------------------------------------------------
local HorizontalPlayerTopLine = CreateFrame("Frame", "HorizontalPlayerTopLine", oUF_Player)
HorizontalPlayerTopLine:CreatePanel("Default", 550, 1, "TOPLEFT", "oUF_Player", "BOTTOMRIGHT", 564, 770)
self.HorizontalPlayerTopLine:SetAlpha(1)

local VerticalPlayerTopLine = CreateFrame("Frame", "VerticalPlayerTopLine", oUF_Player)
VerticalPlayerTopLine:CreatePanel("Default", 1, 119, "RIGHT", HorizontalPlayerTopLine, "RIGHT", 0, -59)
self.VerticalPlayerTopLine:SetAlpha(1)
----------------------------------------------------------------------------------------
-- PlayerTopLineLeft
----------------------------------------------------------------------------------------
local HorizontalPlayerTopLineLeft = CreateFrame("Frame", "HorizontalPlayerTopLineLeft", oUF_Player)
HorizontalPlayerTopLineLeft:CreatePanel("Default", 550, 1, "TOPLEFT", "oUF_Player", "BOTTOMRIGHT", -764, 770)
self.HorizontalPlayerTopLineLeft:SetAlpha(1)


local VerticalPlayerTopLineLeft = CreateFrame("Frame", "VerticalPlayerTopLineLeft", oUF_Player)
VerticalPlayerTopLineLeft:CreatePanel("Default", 1, 119, "RIGHT", HorizontalPlayerTopLineLeft, "LEFT", 1, -59)
self.VerticalPlayerTopLineLeft:SetAlpha(1)
----------------------------------------------------------------------------------------
-- Target line
---------------------------------------------------------------------------------------
local HorizontalTargetLine = CreateFrame("Frame", "HorizontalTargetLine", oUF_Target)
HorizontalTargetLine:CreatePanel("ClassColor", 228, 1, "TOPRIGHT", "oUF_Target", "BOTTOMRIGHT", 5, -14)
self.HorizontalTargetLine:SetAlpha(2)
HorizontalTargetLine:RegisterEvent("PLAYER_TARGET_CHANGED")
HorizontalTargetLine:SetScript("OnEvent", function(self)
local _, class = UnitClass("target")
local color = (CUSTOM_CLASS_COLORS or RAID_CLASS_COLORS)[class]
if color then
self:SetBackdropBorderColor(color.r, color.g, color.b)
else
self:SetBackdropBorderColor(unpack(C.media.border_color))
end
end)

local VerticalTargetLine = CreateFrame("Frame", "VerticalTargetLine", oUF_Target)
VerticalTargetLine:CreatePanel("ClassColor", 1, 98, "LEFT", HorizontalTargetLine, "RIGHT", 0, 13)
VerticalTargetLine:RegisterEvent("PLAYER_TARGET_CHANGED")
self.VerticalTargetLine:SetAlpha(2)
VerticalTargetLine:SetScript("OnEvent", function(self)
local _, class = UnitClass("target")
local color = (CUSTOM_CLASS_COLORS or RAID_CLASS_COLORS)[class]
if color then
self:SetBackdropBorderColor(color.r, color.g, color.b)
else
self:SetBackdropBorderColor(unpack(C.media.border_color))
end
end)
not work :-/

- rkw -
Old 15.11.2012, 04:09   #38
Shestak
 Junior Member User Information

Shestak's Avatar
Quote:
Originally Posted by rkw View Post
how do I create an alpha for my line?
not work :-/
http://www.wowpedia.org/API_UIObject_SetAlpha

Tags
black

Thread Tools



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