This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
Returns the true cooldown of an ability or item, correcting for https://github.com/Stanzilla/WoWUIBugs/issues/47 | |
Credit to Eliote and Arkoniel in the WoW Addons discord | |
]] | |
local function GetCooldownLeft(start, duration) | |
if start < GetTime() then | |
local cdEndTime = start + duration | |
local cdLeftDuration = cdEndTime - GetTime() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# based on https://gist.github.com/dahjelle/8ddedf0aebd488208a9a7c829f19b9e8 | |
exitCode= | |
for file in $(git diff --cached --name-only | grep -E '\.lua$'); do | |
# we only want to check the staged changes, not any un-staged changes | |
if [[ -f "$file" ]]; then | |
luacheck "$file" --formatter plain | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local WOWDIR = "E:/World of Warcraft" | |
local CDN = "http://us.patch.battle.net:1119/wow/#us" | |
local FILE = "DBFilesClient/ManifestInterfaceData.db2" | |
local casc, dbc = require("casc"), require("dbc") | |
local conf = { | |
base = WOWDIR .. "/data", | |
locale = casc.locale.US, | |
verifyHashes = false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x1 SharedXML\NineSlice.lua:70: Attempt to access forbidden object from code tainted by an AddOn | |
Stack: [C] in function 'CreateTexture' | |
SharedXML\NineSlice.lua:70: in function <SharedXML\NineSlice.lua:62> | |
SharedXML\NineSlice.lua:150: in function 'ApplyNineSliceLayout' | |
SharedXML\PanelThemes.lua:118: in function <SharedXML\PanelThemes.lua:115> | |
Time: 2018/12/12 11:05:15 Index: 1/1 | |
RealUI Version: 2.0.6 | |
Locals: | |
(*temporary) = <unnamed> { | |
0 = <userdata> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### Edit these lines for your setup #### | |
$projectPath = "D:\Projects" # This is where your repos are located | |
$wowPath = "E:\World of Warcraft" # The root WoW folder | |
#### End Config #### | |
$branch = Read-Host "Which WoW branch do you want to link to? (live)|ptr|beta" | |
if ($branch -eq "") { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local casc = require("casc") | |
casc.GetImpl() | |
local filter, root = {} do | |
local code = arg[1] == 'code' or arg[1] == 'both' or arg[1] == nil | |
local art = arg[1] == 'art' or arg[1] == 'both' | |
root = "BlizzardInterface" .. (code and "Code" or art and "Art") | |
filter.xml, filter.lua, filter.toc, filter.xsd = code, code, code, code | |
filter.blp = art | |
end |