Skip to content

Commit

Permalink
New vehicle status icon
Browse files Browse the repository at this point in the history
  • Loading branch information
d87 committed Apr 18, 2020
1 parent e1ac3b4 commit d0f037b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ config.UnitNameStatus = { name = "UnitName", assignto = "text1", nametext = true
config.HealthBarColor = { name = "HealthBar", assignto = "health", color = {1, .3, .3}, classcolor = true, priority = 20 }
config.PowerBarColor = { name = "PowerBar", assignto = "power", color = {.5,.5,1}, priority = 20 }
config.OutOfRangeStatus = { name = "OOR", assignto = "self", color = {0.5,0.5,0.5}, alpha = 0.5, text = "OOR", priority = 50 }
config.InVehicleStatus = { name = "InVehicle", assignto = "border", color = {0.3,1,0.3}, priority = 21 }
config.InVehicleStatus = { name = "InVehicle", assignto = "vehicle", color = {0.3,1,0.3}, priority = 21 }
config.LOSStatus = { name = "OutOfSight", assignto = "healfeedback", scale = 1.6, color = {1,0.1,0.1}, resetAnimation = true, priority = 95, fade = 0.3 }
config.DispelStatus = { name = "Dispel", assignto = "bossdebuff", scale = 0.8, priority = 6 }
config.StaggerStatus = { name = "Stagger", assignto = "text2", percentColor = true, priority = 20 }
Expand Down
19 changes: 19 additions & 0 deletions frame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1274,6 +1274,24 @@ local CreateMindControlIcon = function(parent)
return f
end

local CreateVehicleIcon = function(parent)
if isClassic then return end

local f = CreateFrame("Frame", nil, parent)
local tex = f:CreateTexture(nil, "ARTWORK", nil, -3)
tex:SetAllPoints(f)
tex:SetTexture("Interface/AddOns/Aptechka/gear")
local height = parent:GetHeight()
local width = parent:GetWidth()
local len = math.min(height, width) / 1.8
f:SetFrameLevel(7)
f:SetSize(len, len)
f:SetPoint("TOPLEFT",parent,"TOPLEFT",0,0)

f:Hide()
return f
end

local LibCustomGlow = LibStub("LibCustomGlow-1.0")
local SetJob_PixelGlow = function(self, job)
local color = job.color or {1,1,1,1}
Expand Down Expand Up @@ -1484,6 +1502,7 @@ local optional_widgets = {
autocastGlow = CreateAutocastGlow,

mindcontrol = CreateMindControlIcon,
vehicle = CreateVehicleIcon,
unhealable = CreateUnhealableOverlay,
innerglow = CreateInnerGlow,
flash = CreateFlash,
Expand Down
Binary file added gear.tga
Binary file not shown.

0 comments on commit d0f037b

Please sign in to comment.