Skip to content
This repository has been archived by the owner on Oct 18, 2022. It is now read-only.

Commit

Permalink
Cleanup shit that is not in TBC. Added more sayings to AFK. Now testi…
Browse files Browse the repository at this point in the history
…ng SpittingFacts module :D
  • Loading branch information
Kkthnx committed Jun 7, 2021
1 parent c9d1177 commit 3c1d64b
Show file tree
Hide file tree
Showing 12 changed files with 51 additions and 381 deletions.
32 changes: 19 additions & 13 deletions KkthnxUI/Developer/Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,23 @@ do
end
end

-- function FuckYou_Spitters(_, msg, sender)
-- if msg and msg:find("spits on you") then
-- local Responses = {"Spit on me Daddy", "Oh yeah I like it dirty", "uWu thanks"}
-- SendChatMessage(Responses[math.random(1, #Responses)], "WHISPER", nil, sender)
-- end
-- end
local spitFactResponses = {
"Did you know a lack of spit was once used as an admission of guilt.",
"Did you know saliva production has a circadian rhythm.",
"Did you know spit can battle bacteria.",
"Did you know spit is mostly water.",
"Did you know spit keeps you from getting cavities.",
"Did you know stress can leave you spit-less.",
"Did you know there are five different kinds of spit.",
"Did you know there's a medical standard for how much spit you should have.",
"Did you know you need spit if you want to taste anything.",
}

-- local frame = CreateFrame("Frame")
-- frame:RegisterEvent("PLAYER_LOGIN")
-- frame:RegisterEvent("CHAT_MSG_EMOTE")
-- frame:RegisterEvent("CHAT_MSG_TEXT_EMOTE")
-- frame:SetScript("OnEvent", function(self, event)
-- FuckYou_Spitters()
-- end)
local function SpitFacts(_, _, msg, author)
if string.find(msg, "spits on you") then
SendChatMessage(spitFactResponses[math.random(1, #spitFactResponses)], "WHISPER", nil, author)
end
end

ChatFrame_AddMessageEventFilter("CHAT_MSG_EMOTE", SpitFacts)
ChatFrame_AddMessageEventFilter("CHAT_MSG_TEXT_EMOTE", SpitFacts)
36 changes: 18 additions & 18 deletions KkthnxUI/Modules/DataBars/Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -194,22 +194,22 @@ function Module:UpdateReputation()

if isCapped and textFormat ~= 0 then
-- show only name and standing on exalted
displayString = string_format("%s: [%s]", name, isFriend and friendText or K.ShortenString(standingLabel, 1, false))
displayString = string_format("%s: [%s]", name, K.ShortenString(standingLabel, 1, false))
else
if textFormat == 1 then
displayString = string_format("%s: %d%% [%s]", name, ((value - Min) / (maxMinDiff) * 100), isFriend and friendText or standingLabel)
displayString = string_format("%s: %d%% [%s]", name, ((value - Min) / (maxMinDiff) * 100), standingLabel)
elseif textFormat == 2 then
displayString = string_format("%s: %s - %s [%s]", name, K.ShortValue(value - Min), K.ShortValue(Max - Min), isFriend and friendText or standingLabel)
displayString = string_format("%s: %s - %s [%s]", name, K.ShortValue(value - Min), K.ShortValue(Max - Min), standingLabel)
elseif textFormat == 3 then
displayString = string_format("%s: %s - %d%% [%s]", name, K.ShortValue(value - Min), ((value - Min) / (maxMinDiff) * 100), isFriend and friendText or standingLabel)
displayString = string_format("%s: %s - %d%% [%s]", name, K.ShortValue(value - Min), ((value - Min) / (maxMinDiff) * 100), standingLabel)
elseif textFormat == 4 then
displayString = string_format("%s: %s [%s]", name, K.ShortValue(value - Min), isFriend and friendText or standingLabel)
displayString = string_format("%s: %s [%s]", name, K.ShortValue(value - Min), standingLabel)
elseif textFormat == 5 then
displayString = string_format("%s: %s [%s]", name, K.ShortValue((Max - Min) - (value-Min)), isFriend and friendText or standingLabel)
displayString = string_format("%s: %s [%s]", name, K.ShortValue((Max - Min) - (value-Min)), standingLabel)
elseif textFormat == 6 then
displayString = string_format("%s: %s - %s [%s]", name, K.ShortValue(value - Min), K.ShortValue((Max - Min) - (value-Min)), isFriend and friendText or standingLabel)
displayString = string_format("%s: %s - %s [%s]", name, K.ShortValue(value - Min), K.ShortValue((Max - Min) - (value-Min)), standingLabel)
elseif textFormat == 7 then
displayString = string_format("%s: %s - %d%% (%s) [%s]", name, K.ShortValue(value - Min), ((value - Min) / (maxMinDiff) * 100), K.ShortValue((Max - Min) - (value-Min)), isFriend and friendText or standingLabel)
displayString = string_format("%s: %s - %d%% (%s) [%s]", name, K.ShortValue(value - Min), ((value - Min) / (maxMinDiff) * 100), K.ShortValue((Max - Min) - (value-Min)), standingLabel)
end
end

Expand Down Expand Up @@ -237,6 +237,16 @@ function Module:OnEnter()
if RestedXP and RestedXP > 0 then
GameTooltip:AddDoubleLine(L["Rested"], string_format("+%d (%.2f%%)", RestedXP, PercentRested), 1, 1, 1)
end

if K.Class == "HUNTER" and HasPetUI() then
local cur, max = GetPetExperience()
if max ~= 0 then
GameTooltip:AddLine(" ")
GameTooltip:AddLine("Pet Experience")
GameTooltip:AddDoubleLine(L["XP"], string_format(" %d / %d (%d%%)", cur, max, cur/max * 100), 1, 1, 1)
GameTooltip:AddDoubleLine(L["Remaining"], string_format(" %d (%d%% - %d "..L["Bars"]..")", max - cur, (max - cur) / max * 100, 20 * (max - cur) / max), 1, 1, 1)
end
end
end

if GetWatchedFactionInfo() then
Expand All @@ -257,16 +267,6 @@ function Module:OnEnter()
end
end

if K.Class == "HUNTER" and HasPetUI() then
local cur, max = GetPetExperience()
if max ~= 0 then
GameTooltip:AddLine(" ")
GameTooltip:AddLine("Pet Experience")
GameTooltip:AddDoubleLine(L["XP"], string_format(" %d / %d (%d%%)", cur, max, cur/max * 100), 1, 1, 1)
GameTooltip:AddDoubleLine(L["Remaining"], string_format(" %d (%d%% - %d "..L["Bars"]..")", max - cur, (max - cur) / max * 100, 20 * (max - cur) / max), 1, 1, 1)
end
end

GameTooltip:Show()
end

Expand Down
2 changes: 1 addition & 1 deletion KkthnxUI/Modules/DataText/Elements/System.lua
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ function Module:CreateSystemDataText()

Module.SystemDataTextFrame.Texture = Module.SystemDataTextFrame:CreateTexture(nil, "BACKGROUND")
Module.SystemDataTextFrame.Texture:SetPoint("LEFT", Module.SystemDataTextFrame, "LEFT", 0, 0)
Module.SystemDataTextFrame.Texture:SetTexture([[Interface\HELPFRAME\HelpIcon-CharacterStuck]])
Module.SystemDataTextFrame.Texture:SetTexture([[Interface\HELPFRAME\HelpIcon-ReportLag]])
Module.SystemDataTextFrame.Texture:SetSize(24, 24)

Module.SystemDataTextFrame.Text = Module.SystemDataTextFrame:CreateFontString("OVERLAY")
Expand Down
2 changes: 2 additions & 0 deletions KkthnxUI/Modules/Inventory/Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -898,6 +898,8 @@ function Module:OnEnable()
return
end

print(PawnIsContainerItemAnUpgrade)

if self.UpgradeIcon then
self.UpgradeIcon:SetShown(PawnIsContainerItemAnUpgrade(item.bagID, item.slotID))
end
Expand Down
19 changes: 7 additions & 12 deletions KkthnxUI/Modules/Load_Modules.xml
Original file line number Diff line number Diff line change
Expand Up @@ -147,43 +147,38 @@
<Script file="DataBars\Core.lua" />
<!-- Loot -->
<Script file="Loot\Core.lua" />
<Script file="Loot\Elements\GroupLoot.lua" />
<Script file="Loot\Elements\AutoConfirm.lua" />
<Script file="Loot\Elements\AutoGreed.lua" />
<Script file="Loot\Elements\FasterLoot.lua" />
<Script file="Loot\Elements\GroupLoot.lua" />
<!-- Skins Blizzard -->
<Include file="Skins\Core.lua" />
<Include file="Skins\Blizzard\Character.lua" />
<Include file="Skins\Blizzard\ChatBubble.lua" />
<Include file="Skins\Blizzard\ChatFrame.lua" />
<Include file="Skins\Blizzard\Friends.lua" />
<Include file="Skins\Blizzard\Inspect.lua" />
<Include file="Skins\Blizzard\Miscellaneous.lua" />
<Include file="Skins\Blizzard\ObjectiveTracker.lua" />
<Include file="Skins\Blizzard\SpellBook.lua" />
<Include file="Skins\Blizzard\Inspect.lua" />
<Include file="Skins\Blizzard\StackSplit.lua" />
<Include file="Skins\Blizzard\StaticPopup.lua" />
<Include file="Skins\Blizzard\Talent.lua" />
<Include file="Skins\Blizzard\TradeSkill.lua" />
<Include file="Skins\Blizzard\Miscellaneous.lua" />
<!-- <Include file="Skins\Blizzard\DeathRecap.lua" />
<Include file="Skins\Blizzard\WidgetFrame.lua" />
<Include file="Skins\Blizzard\LossControl.lua" />
<Include file="Skins\Blizzard\Miscellaneous.lua" /> -->
<!-- Skins AddOns -->
<Include file="Skins\Addons\BugSack.lua" />
<Include file="Skins\Addons\DeadlyBossMods.lua" />
<Include file="Skins\Addons\Details.lua" />
<Include file="Skins\Addons\Dominos.lua" />
<Include file="Skins\Addons\Pawn.lua" />
<Include file="Skins\Addons\TradeSkillFrame.lua" />

<!-- Disabled/Broken/WIP AddOns -->
<!-- <Include file="Skins\Addons\Bartender4.lua" />
<Include file="Skins\Addons\RareScanner.lua" />
<Include file="Skins\Addons\TinyInspect.lua" />
<Include file="Skins\Addons\WeakAuras.lua" />
<Include file="Skins\Addons\Simulationcraft.lua" /> -->

<!-- Disabled/Broken/WIP AddOns -->
<!-- <Include file="Skins\Addons\BigWigs.lua" />
<Include file="Skins\Addons\Simulationcraft.lua" />
<Include file="Skins\Addons\BigWigs.lua" />
<Include file="Skins\Addons\ChocolateBar.lua" />
<Include file="Skins\Addons\Immersion.lua" />
<Include file="Skins\Addons\OPie.lua" />
Expand Down
5 changes: 4 additions & 1 deletion KkthnxUI/Modules/Miscellaneous/Elements/AFKCam.lua
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,14 @@ local daysAbr = {
local stats = {
"Burning Crusade was released on January 16th, 2007",
"Burning Crusade, was the first expansion for World of Warcraft",
"Don't just play warrior. Be a warrior!",
"Don't just watch a player struggle, help them!",
"Druids in cat form are not tameable by hunters".."|TInterface\\Addons\\KkthnxUI\\Media\\Chat\\Emojis\\StuckOutTongueClosedEyes:0:0:4|t",
"Druids receive Flight Form at level 68",
"Flying mounts are only usable in Outland at level 70",
"Group quests is a means to make new friends",
"Normal flying mount training costs 225g",
"You can jump down from the Scryer elevator without dying",
"Druids in cat form are not tameable by hunters".."|TInterface\\Addons\\KkthnxUI\\Media\\Chat\\Emojis\\StuckOutTongueClosedEyes:0:0:4|t"
}

local function IsIn(val, ...)
Expand Down
54 changes: 0 additions & 54 deletions KkthnxUI/Modules/Skins/Blizzard/Achievement.lua

This file was deleted.

21 changes: 0 additions & 21 deletions KkthnxUI/Modules/Skins/Blizzard/Archaeology.lua

This file was deleted.

100 changes: 0 additions & 100 deletions KkthnxUI/Modules/Skins/Blizzard/Collectables.lua

This file was deleted.

Loading

0 comments on commit 3c1d64b

Please sign in to comment.