Permalink
Browse files

Almost done with 0.6.2

  • Loading branch information...
1 parent f93dd95 commit e1a2bf1730f5ef6b74b048b60a0a11a21871b1c2 @WatcherXI WatcherXI committed Mar 24, 2013
View
@@ -9,6 +9,14 @@ This is where I will document the changes made for SnailUI in each release.
------------------------------------------------------------------------------
+Version 0.6.2
+- FPS and latency will now be shown underneath the minimap
+- The meter will now record the last 5 fights
+- Destruction Warlock timers now appear fel green when you have completed the Codex of Xerrath quest line
+- The meter will now show 5 bars instead of 4
+
+------------------------------------------------------------------------------
+
Version 0.6.1
- Fixed a bug where the chat frame was darker than intended
- 5 Holy Power is now supported for Paladins
View
@@ -851,9 +851,12 @@ function HandleMeter()
end
Bars[I]:SetFrameLevel(Meter:GetFrameLevel())
- Bars[I]:SetPoint(GetConfiguration().Meter[I].Anchor, GetConfiguration().Meter[I].X, GetConfiguration().Meter[I].Y)
Bars[I]:SetSize(GetConfiguration().Meter[I].Width - 6, GetConfiguration().Meter[I].Height - 6)
+ if I == 0 then
+ Bars[I]:SetPoint("TOP")
+ end
+
Bars[I].BackgroundBottom = Bars[I]:CreateTexture(nil, "LOW")
Bars[I].BackgroundBottom:SetPoint("BOTTOM", 0, -2)
Bars[I].BackgroundBottom:SetSize(GetConfiguration().Meter[I].Width - 2, 1)
@@ -900,6 +903,10 @@ function HandleMeter()
Bars[I].BorderTop:SetTexture(0, 0, 0)
end
+ for I = #GetConfiguration().Meter, 1, -1 do
+ Bars[I]:SetPoint("BOTTOM", 0, ((#GetConfiguration().Meter - I) * GetConfiguration().Meter[I].Height) - ((#GetConfiguration().Meter - I) * 3))
+ end
+
RefreshMeter(Meter)
end
end
View
@@ -93,6 +93,125 @@ function HandleMinimap()
TimeManagerClockTicker:SetTextColor(RAID_CLASS_COLORS[Class].r, RAID_CLASS_COLORS[Class].g, RAID_CLASS_COLORS[Class].b)
end
+ if GetConfiguration().Minimap.Info then
+ Minimap.Info = CreateFrame("Frame", nil, Minimap)
+ Minimap.Info:SetFrameLevel(Minimap:GetFrameLevel())
+ Minimap.Info:SetPoint(GetConfiguration().Minimap.Info.Anchor, GetConfiguration().Minimap.Info.X, GetConfiguration().Minimap.Info.Y)
+ Minimap.Info:SetSize(GetConfiguration().Minimap.Info.Width - 6, GetConfiguration().Minimap.Info.Height - 6)
+
+ if GetConfiguration().Minimap.Info.FPS or GetConfiguration().Minimap.Info.Latency then
+ Minimap.Info:SetScript("OnUpdate",
+ function(Self, ElapsedTime)
+ if not Self.Time then
+ Self.Time = 1
+ end
+
+ if (Self.Time + ElapsedTime) >= 1 then
+ if Self.FPS then
+ Self.FPS:SetText(math.floor(GetFramerate() + 0.5) .. " fps")
+ end
+
+ if Self.Latency then
+ Self.Latency:SetText(select(4, GetNetStats()) .. " ms")
+ end
+
+ Self.Time = 0
+ else
+ Self.Time = Self.Time + ElapsedTime
+ end
+ end
+ )
+ end
+
+ Minimap.Info.BackgroundBottom = Minimap.Info:CreateTexture(nil, "LOW")
+ Minimap.Info.BackgroundBottom:SetPoint("BOTTOM", 0, -2)
+ Minimap.Info.BackgroundBottom:SetSize(GetConfiguration().Minimap.Info.Width - 2, 1)
+ Minimap.Info.BackgroundBottom:SetTexture(RAID_CLASS_COLORS[Class].r, RAID_CLASS_COLORS[Class].g, RAID_CLASS_COLORS[Class].b)
+
+ Minimap.Info.BackgroundLeft = Minimap.Info:CreateTexture(nil, "LOW")
+ Minimap.Info.BackgroundLeft:SetPoint("LEFT", -2, 0)
+ Minimap.Info.BackgroundLeft:SetSize(1, GetConfiguration().Minimap.Info.Height - 4)
+ Minimap.Info.BackgroundLeft:SetTexture(RAID_CLASS_COLORS[Class].r, RAID_CLASS_COLORS[Class].g, RAID_CLASS_COLORS[Class].b)
+
+ Minimap.Info.BackgroundRight = Minimap.Info:CreateTexture(nil, "LOW")
+ Minimap.Info.BackgroundRight:SetPoint("RIGHT", 2, 0)
+ Minimap.Info.BackgroundRight:SetSize(1, GetConfiguration().Minimap.Info.Height - 4)
+ Minimap.Info.BackgroundRight:SetTexture(RAID_CLASS_COLORS[Class].r, RAID_CLASS_COLORS[Class].g, RAID_CLASS_COLORS[Class].b)
+
+ Minimap.Info.BackgroundTop = Minimap.Info:CreateTexture(nil, "LOW")
+ Minimap.Info.BackgroundTop:SetPoint("TOP", 0, 2)
+ Minimap.Info.BackgroundTop:SetSize(GetConfiguration().Minimap.Info.Width - 2, 1)
+ Minimap.Info.BackgroundTop:SetTexture(RAID_CLASS_COLORS[Class].r, RAID_CLASS_COLORS[Class].g, RAID_CLASS_COLORS[Class].b)
+
+ Minimap.Info.BorderBottom = Minimap.Info:CreateTexture(nil, "BACKGROUND")
+ Minimap.Info.BorderBottom:SetPoint("BOTTOM", 0, -3)
+ Minimap.Info.BorderBottom:SetSize(GetConfiguration().Minimap.Info.Width, 3)
+ Minimap.Info.BorderBottom:SetTexture(0, 0, 0)
+
+ Minimap.Info.BorderLeft = Minimap.Info:CreateTexture(nil, "BACKGROUND")
+ Minimap.Info.BorderLeft:SetPoint("LEFT", -3, 0)
+ Minimap.Info.BorderLeft:SetSize(3, GetConfiguration().Minimap.Info.Height - 2)
+ Minimap.Info.BorderLeft:SetTexture(0, 0, 0)
+
+ Minimap.Info.BorderRight = Minimap.Info:CreateTexture(nil, "BACKGROUND")
+ Minimap.Info.BorderRight:SetPoint("RIGHT", 3, 0)
+ Minimap.Info.BorderRight:SetSize(3, GetConfiguration().Minimap.Info.Height - 2)
+ Minimap.Info.BorderRight:SetTexture(0, 0, 0)
+
+ Minimap.Info.BorderTop = Minimap.Info:CreateTexture(nil, "BACKGROUND")
+ Minimap.Info.BorderTop:SetPoint("TOP", 0, 3)
+ Minimap.Info.BorderTop:SetSize(GetConfiguration().Minimap.Info.Width, 3)
+ Minimap.Info.BorderTop:SetTexture(0, 0, 0)
+
+ Minimap.Info.TransparentBackground = Minimap.Info:CreateTexture(nil, "BACKGROUND")
+ Minimap.Info.TransparentBackground:SetPoint("CENTER")
+ Minimap.Info.TransparentBackground:SetSize(GetConfiguration().Minimap.Info.Width - 6, GetConfiguration().Minimap.Info.Height - 6)
+ Minimap.Info.TransparentBackground:SetTexture(0, 0, 0, 0.5)
+
+ if GetConfiguration().Minimap.Info.FPS then
+ Minimap.Info.FPS = Minimap.Info:CreateFontString(nil, "OVERLAY")
+ Minimap.Info.FPS:SetFont(Configuration.Font.Name, Configuration.Font.Size, Configuration.Font.Outline)
+ Minimap.Info.FPS:SetPoint(GetConfiguration().Minimap.Info.FPS.Anchor, GetConfiguration().Minimap.Info.FPS.X, GetConfiguration().Minimap.Info.FPS.Y)
+ Minimap.Info.FPS:SetTextColor(RAID_CLASS_COLORS[Class].r, RAID_CLASS_COLORS[Class].g, RAID_CLASS_COLORS[Class].b)
+
+ Minimap.Info.FPS.Frame = CreateFrame("Frame", nil, Minimap.Info)
+ Minimap.Info.FPS.Frame:SetAllPoints(Minimap.Info.FPS)
+ Minimap.Info.FPS.Frame:SetScript("OnEnter", Blank)
+ end
+
+ if GetConfiguration().Minimap.Info.Latency then
+ Minimap.Info.Latency = Minimap.Info:CreateFontString(nil, "OVERLAY")
+ Minimap.Info.Latency:SetFont(Configuration.Font.Name, Configuration.Font.Size, Configuration.Font.Outline)
+ Minimap.Info.Latency:SetPoint(GetConfiguration().Minimap.Info.Latency.Anchor, GetConfiguration().Minimap.Info.Latency.X, GetConfiguration().Minimap.Info.Latency.Y)
+ Minimap.Info.Latency:SetTextColor(RAID_CLASS_COLORS[Class].r, RAID_CLASS_COLORS[Class].g, RAID_CLASS_COLORS[Class].b)
+
+ Minimap.Info.Latency.Frame = CreateFrame("Frame", nil, Minimap.Info)
+ Minimap.Info.Latency.Frame:SetAllPoints(Minimap.Info.Latency)
+ Minimap.Info.Latency.Frame:SetScript("OnEnter",
+ function(Self)
+ GameTooltip_SetDefaultAnchor(GameTooltip, Self)
+ GameTooltip:SetText("Bandwidth")
+
+ local incoming, outgoing, home, world = GetNetStats()
+
+ GameTooltip:AddDoubleLine("Incoming", string.format("%.1f", incoming) .. " kb/s", 1, 1, 1, 1, 1, 1)
+ GameTooltip:AddDoubleLine("Outgoing", string.format("%.1f", outgoing) .. " kb/s", 1, 1, 1, 1, 1, 1)
+ GameTooltip:AddLine(" ")
+ GameTooltip:AddLine("Latency")
+ GameTooltip:AddDoubleLine("Home", math.floor(home + 0.5) .. " ms", 1, 1, 1, 1, 1, 1)
+ GameTooltip:AddDoubleLine("World", math.floor(world + 0.5) .. " ms", 1, 1, 1, 1, 1, 1)
+ GameTooltip:Show()
+ end
+ )
+
+ Minimap.Info.Latency.Frame:SetScript("OnLeave",
+ function(Self)
+ GameTooltip:Hide()
+ end
+ )
+ end
+ end
+
if GetConfiguration().Minimap.Mail then
MiniMapMailBorder:Hide()
MiniMapMailFrame:ClearAllPoints()
View
@@ -1,7 +1,7 @@
-- Snail.lua
-- Written by Snail
-local Version = "0.6.1"
+local Version = "0.6.2"
oUF:RegisterStyle("SnailUI",
function(Self, Unit)
View
@@ -4,7 +4,7 @@
## Interface: 50200
## Notes: Snail's minimalistic UI
## Title: SnailUI
-## Version: 0.6.1
+## Version: 0.6.2
Configuration.lua
Functions.lua
View
@@ -12,7 +12,7 @@ Configuration.Themes.Default =
Height = 24,
Width = 48,
X = 0,
- Y = 108,
+ Y = 127,
TextureCoordinate =
{
@@ -30,7 +30,7 @@ Configuration.Themes.Default =
Height = 24,
Width = 48,
X = 0,
- Y = 136,
+ Y = 155,
TextureCoordinate =
{
@@ -99,7 +99,7 @@ Configuration.Themes.Default =
Chat =
{
Anchor = "BOTTOM",
- Height = 100,
+ Height = 119,
Width = 256,
X = -130,
Y = 9
@@ -206,6 +206,40 @@ Configuration.Themes.Default =
else
Go = true
end
+
+ if (#Timers > 0) and IsSpellKnown(101508) then
+ for I = 1, #Timers do
+ if Timers[I].Spell == "Backdraft" then
+ Timers[I].Color =
+ {
+ B = 57 / 255,
+ G = 241 / 255,
+ R = 127 / 255
+ }
+ elseif Timers[I].Spell == "Conflagrate" then
+ Timers[I].Color =
+ {
+ B = 10 / 255,
+ G = 221 / 255,
+ R = 153 / 255
+ }
+ elseif Timers[I].Spell == "Immolate" then
+ Timers[I].Color =
+ {
+ B = 63 / 255,
+ G = 1,
+ R = 204 / 255
+ }
+ elseif Timers[I].Spell == "Rain of Fire" then
+ Timers[I].Color =
+ {
+ B = 13 / 255,
+ G = 182 / 255,
+ R = 141 / 255
+ }
+ end
+ end
+ end
elseif (Class == "WARRIOR") or ((Class == "DRUID") and (Specialization == "GUARDIAN")) then
DefaultWithClassBar.Player.PowerBar.Border = true
DefaultWithClassBar.Player.PowerBar.Height = 24
@@ -223,54 +257,45 @@ Configuration.Themes.Default =
Meter =
{
Anchor = "BOTTOM",
- Height = 100,
+ Height = 119,
Width = 152,
X = 78,
Y = 7,
[0] =
{
- Anchor = "TOP",
Height = 24,
- Width = 152,
- X = 0,
- Y = 0
+ Width = 152
},
[1] =
{
- Anchor = "TOP",
Height = 22,
- Width = 152,
- X = 0,
- Y = -21
+ Width = 152
},
[2] =
{
- Anchor = "CENTER",
Height = 22,
- Width = 152,
- X = 0,
- Y = -1
+ Width = 152
},
[3] =
{
- Anchor = "BOTTOM",
Height = 22,
- Width = 152,
- X = 0,
- Y = 19
+ Width = 152
},
[4] =
{
- Anchor = "BOTTOM",
Height = 22,
- Width = 152,
- X = 0,
- Y = 0
+ Width = 152
+ },
+
+ [5] =
+ {
+ Height = 22,
+ Width = 152
}
},
@@ -280,7 +305,7 @@ Configuration.Themes.Default =
Height = 100,
Width = 100,
X = 208,
- Y = 7,
+ Y = 26,
Calender =
{
@@ -296,6 +321,29 @@ Configuration.Themes.Default =
Y = 5
},
+ Info =
+ {
+ Anchor = "BOTTOM",
+ Height = 22,
+ Width = 100,
+ X = 0,
+ Y = -19,
+
+ FPS =
+ {
+ Anchor = "LEFT",
+ X = 5,
+ Y = 0
+ },
+
+ Latency =
+ {
+ Anchor = "RIGHT",
+ X = -2,
+ Y = 0
+ }
+ },
+
Mail =
{
Anchor ="BOTTOMRIGHT",
@@ -324,7 +372,7 @@ Configuration.Themes.Default =
Height = 24,
Width = 256,
X = -130,
- Y = 164,
+ Y = 183,
CastingBar =
{
@@ -444,12 +492,12 @@ Configuration.Themes.Default =
Height = 24,
Width = 256,
X = 130,
- Y = 164,
+ Y = 183,
CastingBar =
{
Anchor = "TOPRIGHT",
- Height = 184,
+ Height = 203,
Orientation = "VERTICAL",
Width = 10,
X = 11,
@@ -10,7 +10,7 @@ DefaultHealer.Raid.Rows = 5
DefaultHealer.Raid.Shown = true
DefaultHealer.Raid.Width = 100
DefaultHealer.Raid.X = 0
-DefaultHealer.Raid.Y = 220
+DefaultHealer.Raid.Y = 239
DefaultHealer.Raid.HealthBar.Health.SmallText = nil
DefaultHealer.Raid.HealthBar.Height = 20
DefaultHealer.Raid.HealthBar.Orientation = "HORIZONTAL"
@@ -10,7 +10,7 @@ DefaultHealerWithClassBar.Raid.Rows = 5
DefaultHealerWithClassBar.Raid.Shown = true
DefaultHealerWithClassBar.Raid.Width = 100
DefaultHealerWithClassBar.Raid.X = 0
-DefaultHealerWithClassBar.Raid.Y = 248
+DefaultHealerWithClassBar.Raid.Y = 267
DefaultHealerWithClassBar.Raid.HealthBar.Health.SmallText = nil
DefaultHealerWithClassBar.Raid.HealthBar.Height = 20
DefaultHealerWithClassBar.Raid.HealthBar.Orientation = "HORIZONTAL"
Oops, something went wrong.

0 comments on commit e1a2bf1

Please sign in to comment.