Apply stylua to the entire codebase
This commit is contained in:
1 parent
0cced419a6
commit
f181c0022c
10 files changed
+38
-44
No files matched your search
+11
-7
@@ -36,7 +36,6 @@ local BorderIndicator = types.BorderIndicator
|
||||
local UnitFrame = types.CreateClass("UnitFrame")
|
||||
types.UnitFrame = UnitFrame
|
||||
|
||||
|
||||
local colors = {
|
||||
hostile = { 0.5, 0.0, 0.0 },
|
||||
neutral = { 0.7, 0.7, 0.0 },
|
||||
@@ -54,8 +53,8 @@ local colors = {
|
||||
bomb = { 1.0, 0.7, 0.7 },
|
||||
cyan = { 0.0, 0.8, 0.8 },
|
||||
white = { 1.0, 1.0, 1.0 },
|
||||
shield = { 0.85, .95, 1.0 },
|
||||
absorb = { 0.5, .4, .75 },
|
||||
shield = { 0.85, 0.95, 1.0 },
|
||||
absorb = { 0.5, 0.4, 0.75 },
|
||||
}
|
||||
|
||||
-- This trucates _codepoints_ not graphemes. If combination codepoints are
|
||||
@@ -112,7 +111,6 @@ function UnitFrame:Init(unit, config)
|
||||
|
||||
self.auras = AuraList:new(self)
|
||||
|
||||
|
||||
local overlays = CreateFrame("Frame", nil, secure)
|
||||
overlays:SetFrameStrata("MEDIUM")
|
||||
overlays:SetFrameLevel(100)
|
||||
@@ -292,9 +290,15 @@ function UnitFrame:PrepareWheelBinds(bindings)
|
||||
if bind.button == "wheel-up" or bind.button == "wheel-down" then
|
||||
local prefix = ModifiersToPrefix(bind.mods)
|
||||
local button = bind.button == "wheel-up" and "MOUSEWHEELUP" or "MOUSEWHEELDOWN"
|
||||
table.insert(bindScript,
|
||||
string.format([[self:SetBindingClick(false, "%s%s", "OmicronSecureFrame%s", "%s%s")]],
|
||||
prefix, button, unit, prefix, bind.button
|
||||
table.insert(
|
||||
bindScript,
|
||||
string.format(
|
||||
[[self:SetBindingClick(false, "%s%s", "OmicronSecureFrame%s", "%s%s")]],
|
||||
prefix,
|
||||
button,
|
||||
unit,
|
||||
prefix,
|
||||
bind.button
|
||||
)
|
||||
)
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user