Quantcast
Download
(865 Kb)
Download
Updated: 07-25-16 06:42 PM
Pictures
File Info
Compatibility:
Legion Pre-Patch (7.0.3)
Updated:07-25-16 06:42 PM
Created:12-28-09 12:08 PM
Downloads:30,738
Favorites:83
MD5:
7.0.3

AftermathhUI  Updated less than 3 days ago!  Popular! (More than 5000 hits)

Version: 1.20
by: Game92 [More]

Welcome To AftermathhUI!

AftermathhUI is based on Muqq's UI which is Shadow Priest based UI. I really loved Muqq's UI so i decide to make my own version and make it Lightweight & Minimalistic and not too much CPU.

It's of course usable for any class or spec!

AddOn-List:

AftermathhUI - inclues unitframes, font changing, skinning chat, map, buffs, nameplates...
Bartender4 - ActionBar replacement mod.
Masque - is a button enhancement engine that will skin the buttons of add-ons that support its features.
Masque_Aftermathh - Custom Masque skin.

Slash-Command List:

/rc - ready check
/rl - reload UI
/bt - bartender
/msq - masque
/setupui - Sets the UI up, puts right scale & etc..

Config:

Everything is LUA based which means you'll have to edit them in a notepad based program to changed the settings of the UI.

1.20 - Legion READY.

Updated for legion.

Added Artifact Power Bar
Added Orderhall Bar
Added AFK Frame

Removed alot of unless stuff and cleaned up alot of code..

10.0 - WoD READY.

Added AfterExp
Added AfterRep
Added Masque
Added Masque_Aftermathh

Updated Bartender4
Updated oUF_AuraWatch
Updated to oUF 1.6.8

Removed alot of none working/outdated mods

Removed oUF Reputation
Removed oUF Experience

TODO:

Fix Loot/Group Loot
Fix Improve Bags
Optional Files (1)
File Name
Version
Size
Author
Date
Type
1.0
40kB
01-05-12 01:01 PM
Addon


Archived Files (1)
File Name
Version
Size
Author
Date
10.0
883kB
Game92
11-10-14 06:01 PM


Post A Reply Comment Options
Unread 01-20-12, 11:13 AM  
karzan10
A Kobold Labourer

Forum posts: 0
File comments: 6
Uploads: 0
Originally Posted by Game92
Originally Posted by karzan10
function ShortNumber(num)
if(num >= 1e6) then
return (math.ceil( (num/1e6) * 10) )/10 .. "m"
elseif (num >= 1e3) then
return (math.ceil( (num/1e3) * 10) )/10 .. "k"
else
return num
end


Isn't that a function for shorter HP numbers? If you could just tell me how to insert it, that would be awesome. Been trying for hours but I know nothing about coding and it seems to be impossible if you don't.
I only use this script for raid frames.
Based on this UI, you seem to be pretty good at coding, can't you make the HP show as 20k instead of 20000. It's pretty annoying when raiding bosses :P
And I could use some other unitframes but it's just that these ones are so damn nice
Report comment to moderator  
Reply With Quote
Unread 01-20-12, 06:00 AM  
Game92
A Molten Giant
 
Game92's Avatar
AddOn Author - Click to view AddOns

Forum posts: 672
File comments: 701
Uploads: 14
Originally Posted by karzan10
function ShortNumber(num)
if(num >= 1e6) then
return (math.ceil( (num/1e6) * 10) )/10 .. "m"
elseif (num >= 1e3) then
return (math.ceil( (num/1e3) * 10) )/10 .. "k"
else
return num
end


Isn't that a function for shorter HP numbers? If you could just tell me how to insert it, that would be awesome. Been trying for hours but I know nothing about coding and it seems to be impossible if you don't.
I only use this script for raid frames.
Report comment to moderator  
Reply With Quote
Unread 01-19-12, 11:27 PM  
karzan10
A Kobold Labourer

Forum posts: 0
File comments: 6
Uploads: 0
function ShortNumber(num)
if(num >= 1e6) then
return (math.ceil( (num/1e6) * 10) )/10 .. "m"
elseif (num >= 1e3) then
return (math.ceil( (num/1e3) * 10) )/10 .. "k"
else
return num
end


Isn't that a function for shorter HP numbers? If you could just tell me how to insert it, that would be awesome. Been trying for hours but I know nothing about coding and it seems to be impossible if you don't.
Report comment to moderator  
Reply With Quote
Unread 01-17-12, 07:19 AM  
Blindlabel
A Kobold Labourer

Forum posts: 0
File comments: 22
Uploads: 0
Re: Re: More debuffs

If anyone is interested in adding item quality to more than just bags & bank. Here's the code I've put together to get borders on character frame, guild bank, void storage and inspect frame.

I take no credit for this because as I said, I just put two parts of code together. Not sure if it's the most efficient way of doing it, but it works.

Entire Modules\\Blizzard\\Itemglow.lua

Code:
local _G = _G -- import globals for faster usage

local function UpdateGlow(button, id)
	local quality, texture, _
	if(id) then
		quality, _, _, _, _, _, _, texture = select(3, GetItemInfo(id))
	end

	local glow = button.glow
	if(not glow) then
		glow = CreateFrame("Frame", nil, button)
		CreateBorderLight(glow, AftermathhUI.media.bordersize, AftermathhUI.bordercolor, AftermathhUI.bordercolor, AftermathhUI.bordercolor, 1)
		SetTexture(glow, AftermathhUI.media.bordernormal)
	    glow:SetPoint("TOPLEFT", button, "TOPLEFT")
		glow:SetPoint("BOTTOMRIGHT", button, "BOTTOMRIGHT")
		button.glow = glow
	end

	if(texture) then
		local r, g, b = GetItemQualityColor(quality)
		if _G[button:GetName().."IconQuestTexture"] and _G[button:GetName().."IconQuestTexture"]:IsShown() then
			r, g, b = unpack(AftermathhUI.loot.questitemcolor)
		end
		ColorBorder(glow, r, g, b)
		glow:Show()
	else
		glow:Hide()
	end
end

hooksecurefunc("BankFrameItemButton_Update", function(self)
	UpdateGlow(self, GetInventoryItemID("player", self:GetInventorySlot()))
end)

hooksecurefunc("ContainerFrame_Update", function(self)
	for i=1, self.size do
		local button = _G[self:GetName().."Item"..i]
		local itemID = GetContainerItemID(self:GetID(), button:GetID())
		UpdateGlow(button, itemID)
	end
end)

local slots = {
	"Head", "Neck", "Shoulder", "Shirt", "Chest", "Waist", "Legs", "Feet", "Wrist",
	"Hands", "Finger0", "Finger1", "Trinket0", "Trinket1", "Back", "MainHand",
	"SecondaryHand", "Ranged", "Tabard",
}

local updatechar = function(self)
	if CharacterFrame:IsShown() then
		for key, slotName in ipairs(slots) do
			-- Ammo is located at 0.
			local slotID = key % 20
			local slotFrame = _G['Character' .. slotName .. 'Slot']
			local slotLink = GetInventoryItemLink('player', slotID)

			UpdateGlow(slotFrame, slotLink)
		end
	end
end

local f = CreateFrame("Frame")
f:RegisterEvent("UNIT_INVENTORY_CHANGED")
f:SetScript("OnEvent", updatechar)
CharacterFrame:HookScript('OnShow', updatechar)

local updateinspect = function(self)
	local unit = InspectFrame.unit
	if InspectFrame:IsShown() and unit then
		for key, slotName in ipairs(slots) do
			local slotID = key % 20
			local slotFrame = _G["Inspect"..slotName.."Slot"]
			local slotLink = GetInventoryItemLink(unit, slotID)
			UpdateGlow(slotFrame, slotLink)
		end
	end

end

local last = 0
local OnUpdate = function(self, elapsed)
	last = last + elapsed
	if last >= 1 then
		self:SetScript("OnUpdate", nil)
		last = 0
		updateinspect()
	end
end

local startinspect = function()
	updateinspect()
	InspectFrame:SetScript("OnUpdate", OnUpdate)
end

local g = CreateFrame("Frame")
g:RegisterEvent("ADDON_LOADED")
g:SetScript("OnEvent", function(self, event, addon)
	if addon ~= "Blizzard_InspectUI" then return end

	InspectFrame:HookScript("OnShow", function()
		g:RegisterEvent("PLAYER_TARGET_CHANGED")
		g:RegisterEvent("INSPECT_READY")
		g:SetScript("OnEvent", startinspect)
	end)
	InspectFrame:HookScript("OnHide", function()
		g:UnregisterEvent("PLAYER_TARGET_CHANGED")
		g:UnregisterEvent("INSPECT_READY")
			g:SetScript("OnEvent", nil)
		InspectFrame:SetScript("OnUpdate", nil)
	end)

	g:UnregisterEvent("ADDON_LOADED")
end)

local h = CreateFrame("Frame")
h:RegisterEvent("GUILDBANKBAGSLOTS_CHANGED")
h:RegisterEvent("GUILDBANKFRAME_OPENED")
h:SetScript("OnEvent", function()
	if not IsAddOnLoaded("Blizzard_GuildBankUI") then return end

	local tab = GetCurrentGuildBankTab()
	for i = 1, MAX_GUILDBANK_SLOTS_PER_TAB do
		local index = math.fmod(i, 14)
		if index == 0 then
			index = 14
		end
		local column = math.ceil((i-0.5)/14)

		local slotLink = GetGuildBankItemLink(tab, i)
		local slotFrame = _G["GuildBankColumn"..column.."Button"..index]

		UpdateGlow(slotFrame, slotLink)
	end
end)

local void = CreateFrame("Frame")
void:RegisterEvent("ADDON_LOADED")
void:RegisterEvent("VOID_STORAGE_CONTENTS_UPDATE")
void:RegisterEvent("VOID_STORAGE_DEPOSIT_UPDATE")
void:RegisterEvent("VOID_TRANSFER_DONE")
void:RegisterEvent("VOID_STORAGE_OPEN")

local updateContents = function(self)
	if not IsAddOnLoaded("Blizzard_VoidStorageUI") then return end

	for slot = 1, VOID_WITHDRAW_MAX or 80 do
		local slotFrame =  _G["VoidStorageStorageButton"..slot]
		UpdateGlow(slotFrame, GetVoidItemInfo(slot))
	end

	for slot = 1, VOID_WITHDRAW_MAX or 9 do
		local slotFrame = _G["VoidStorageWithdrawButton"..slot]
		UpdateGlow(slotFrame, GetVoidTransferWithdrawalInfo(slot))
	end
end

local updateDeposit = function(self, event, slot)
	if not IsAddOnLoaded("Blizzard_VoidStorageUI") then return end

	local slotFrame = _G["VoidStorageDepositButton"..slot]
	UpdateGlow(slotFrame, GetVoidTransferDepositInfo(slot))
end

local update = function(self)
	if not IsAddOnLoaded("Blizzard_VoidStorageUI") then return end

	for slot = 1, VOID_DEPOSIT_MAX or 9 do
		updateDeposit(self, nil, slot)
	end

	return updateContents(self)
end

void:SetScript("OnEvent", function(self, event, ...)
	if event == "ADDON_LOADED" then
		if ... == "Blizzard_VoidStorageUI" then
			self:UnregisterEvent("ADDON_LOADED")
			local last = 0
			self:SetScript("OnUpdate", function(self, elapsed)
				last = last + elapsed
				if last > 1 then
					self:SetScript("OnUpdate", nil)
					update(self)
				end
			end)
		end
	elseif event == "VOID_STORAGE_CONTENTS_UPDATE" then
		updateContents(self)
	elseif event == "VOID_STORAGE_DEPOSIT_UPDATE" then
		updateDeposit(self, event, ...)
	elseif event == "VOID_TRANSFER_DONE" or event == "VOID_STORAGE_OPEN" then
		update(self)
	end
end)


Please note, I still use old skin. This should work with the new skin as well. Picture only represents the colored borders not the Beautycase settings.
Last edited by Blindlabel : 01-17-12 at 07:23 AM.
Report comment to moderator  
Reply With Quote
Unread 01-13-12, 08:34 AM  
Game92
A Molten Giant
 
Game92's Avatar
AddOn Author - Click to view AddOns

Forum posts: 672
File comments: 701
Uploads: 14
Re: More debuffs

Originally Posted by valodani
Game!

I want to see more debuff on target frame. I have set the debuff number on target to 6, and want every other debuff beyond the 6th appear in a new line above, how is it possible?
I know its possible. But i dont know how.
Report comment to moderator  
Reply With Quote
Unread 01-13-12, 07:34 AM  
valodani
A Kobold Labourer

Forum posts: 0
File comments: 72
Uploads: 0
Question More debuffs

Game!

I want to see more debuff on target frame. I have set the debuff number on target to 6, and want every other debuff beyond the 6th appear in a new line above, how is it possible?
Report comment to moderator  
Reply With Quote
Unread 01-11-12, 06:18 AM  
Game92
A Molten Giant
 
Game92's Avatar
AddOn Author - Click to view AddOns

Forum posts: 672
File comments: 701
Uploads: 14
Originally Posted by valodani
Thank you!

Anyway, I have experimented for almost an hour and fixed the LFD icons. For those who are interested in it, open ouf_Aftermathh.lua and find these lines:

elseif unit == "party" then
self.LFDRole:SetPoint('BOTTOMRIGHT', self, 'TOPRIGHT', -298, -68)
self.LFDRole:SetSize(15, 15)

The 3rd line is not included in Game's original version, cut and copy it from the lines above it!
Then change -298 to 8, and -68 to -30. Enjoy role icons in LFD parties!

I suggest for you, Game, to correct these numbers in your version too for future versions!

Have a nice day!
No problem, nice done ^^ i will update it in the next update
Report comment to moderator  
Reply With Quote
Unread 01-11-12, 04:35 AM  
valodani
A Kobold Labourer

Forum posts: 0
File comments: 72
Uploads: 0
Thank you!

Anyway, I have experimented for almost an hour and fixed the LFD icons. For those who are interested in it, open ouf_Aftermathh.lua and find these lines:

elseif unit == "party" then
self.LFDRole:SetPoint('BOTTOMRIGHT', self, 'TOPRIGHT', -298, -68)
self.LFDRole:SetSize(15, 15)

The 3rd line is not included in Game's original version, cut and copy it from the lines above it!
Then change -298 to 8, and -68 to -30. Enjoy role icons in LFD parties!

I suggest for you, Game, to correct these numbers in your version too for future versions!

Have a nice day!
Report comment to moderator  
Reply With Quote
Unread 01-11-12, 04:16 AM  
Game92
A Molten Giant
 
Game92's Avatar
AddOn Author - Click to view AddOns

Forum posts: 672
File comments: 701
Uploads: 14
Originally Posted by valodani
Okay, will try some exprimenting

One last question about the nameplates: how can I do that enemy units has red nameplate? (Neutral and friendly units have already yellow and green coloring)
LUA Code:
  1. local r, g, b = frame.hp:GetStatusBarColor()
  2.     local newr, newg, newb
  3.     if g + b == 0 then
  4.         newr, newg, newb = .25, .25, .25

change to

LUA Code:
  1. local r, g, b = frame.hp:GetStatusBarColor()
  2.     local newr, newg, newb
  3.     if g + b == 0 then
  4.         newr, newg, newb = 1, 0, 0
Last edited by Game92 : 01-11-12 at 04:16 AM.
Report comment to moderator  
Reply With Quote
Unread 01-11-12, 03:53 AM  
valodani
A Kobold Labourer

Forum posts: 0
File comments: 72
Uploads: 0
Okay, will try some exprimenting

One last question about the nameplates: how can I do that enemy units has red nameplate? (Neutral and friendly units have already yellow and green coloring)
Report comment to moderator  
Reply With Quote
Unread 01-11-12, 03:41 AM  
Game92
A Molten Giant
 
Game92's Avatar
AddOn Author - Click to view AddOns

Forum posts: 672
File comments: 701
Uploads: 14
Originally Posted by valodani
Thanks, I will give it a try!

Oh and here is the extract of ouf_Aftermathh.lua about party LFD icons:

elseif unit == "party" then
self.LFDRole:SetPoint('BOTTOMRIGHT', self, 'TOPRIGHT', -298, -68)
self.LFDRole:SetSize(15, 15)

Are the coordinates right?
No idea. Since i dont use it^^ maybe you can try to fix it? =D
Report comment to moderator  
Reply With Quote
Unread 01-11-12, 03:16 AM  
valodani
A Kobold Labourer

Forum posts: 0
File comments: 72
Uploads: 0
Thanks, I will give it a try!

Oh and here is the extract of ouf_Aftermathh.lua about party LFD icons:

elseif unit == "party" then
self.LFDRole:SetPoint('BOTTOMRIGHT', self, 'TOPRIGHT', -298, -68)
self.LFDRole:SetSize(15, 15)

Are the coordinates right?
Report comment to moderator  
Reply With Quote
Unread 01-11-12, 03:09 AM  
Game92
A Molten Giant
 
Game92's Avatar
AddOn Author - Click to view AddOns

Forum posts: 672
File comments: 701
Uploads: 14
Originally Posted by valodani
Game!

How can I decrease the scale of the nameplates? (The overall scaling, so I wont screw up the height and length of the nameplate frames)

The nameplates.lua is very complicated to me, dunno what to configure
You can't change the scale, only the height & width.

LUA Code:
  1. local function UpdateObjects(frame)
  2.     frame = frame:GetParent()
  3.     frame.hp:SetSize(200, 16)
  4.  
  5. local function UpdateCastbar(frame)
  6.     frame:ClearAllPoints()
  7.     frame:SetSize(200, 16)
Report comment to moderator  
Reply With Quote
Unread 01-11-12, 03:04 AM  
valodani
A Kobold Labourer

Forum posts: 0
File comments: 72
Uploads: 0
Game!

How can I decrease the scale of the nameplates? (The overall scaling, so I wont screw up the height and length of the nameplate frames)

The nameplates.lua is very complicated to me, dunno what to configure

Oh and here is the extract of the ouf_Aftermathh.lua about the party LFD icons:

elseif unit == "party" then
self.LFDRole:SetPoint('BOTTOMRIGHT', self, 'TOPRIGHT', -298, -68)
self.LFDRole:SetSize(15, 15)

Are the coordinates right?
Last edited by valodani : 01-11-12 at 03:09 AM.
Report comment to moderator  
Reply With Quote
Unread 01-10-12, 01:35 PM  
Game92
A Molten Giant
 
Game92's Avatar
AddOn Author - Click to view AddOns

Forum posts: 672
File comments: 701
Uploads: 14
Originally Posted by Tebuh
Thank you so much

PD: how can I move the resticon?
LUA Code:
  1. self.Resting = InvisFrame:CreateTexture(nil, 'OVERLAY')
  2.         self.Resting:SetSize(20, 20)
  3.         self.Resting:SetPoint('CENTER', self.Health, -192, 34)
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.