Skip to content

Commit 84f8c75

Browse files
author
LocalIdentity
committed
Fix indents
1 parent b37d68a commit 84f8c75

2 files changed

Lines changed: 24 additions & 24 deletions

File tree

src/Classes/PassiveTreeView.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,11 @@ function PassiveTreeViewClass:Draw(build, viewPort, inputEvents)
182182
local offsetY = self.zoomY + viewPort.y + viewPort.height/2
183183
local function treeToScreen(x, y)
184184
return x * scale + offsetX,
185-
y * scale + offsetY
185+
y * scale + offsetY
186186
end
187187
local function screenToTree(x, y)
188188
return (x - offsetX) / scale,
189-
(y - offsetY) / scale
189+
(y - offsetY) / scale
190190
end
191191

192192
if IsKeyDown("SHIFT") then

src/Classes/Tooltip.lua

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -78,28 +78,28 @@ function TooltipClass:CheckForUpdate(...)
7878
end
7979

8080
function TooltipClass:AddLine(size, text, font)
81-
if text then
82-
local fontToUse
83-
if main.showFlavourText then
84-
fontToUse = font or "VAR"
85-
else
86-
fontToUse = "VAR"
87-
end
88-
for line in s_gmatch(text .. "\n", "([^\n]*)\n") do
89-
if line:match("^.*(Equipping)") == "Equipping" or line:match("^.*(Removing)") == "Removing" then
90-
t_insert(self.blocks, { height = size + 2})
91-
else
92-
self.blocks[#self.blocks].height = self.blocks[#self.blocks].height + size + 2
93-
end
94-
if self.maxWidth then
95-
for _, line in ipairs(main:WrapString(line, size, self.maxWidth - H_PAD)) do
96-
t_insert(self.lines, { size = size, text = line, block = #self.blocks, font = fontToUse })
97-
end
98-
else
99-
t_insert(self.lines, { size = size, text = line, block = #self.blocks, font = fontToUse })
100-
end
101-
end
102-
end
81+
if text then
82+
local fontToUse
83+
if main.showFlavourText then
84+
fontToUse = font or "VAR"
85+
else
86+
fontToUse = "VAR"
87+
end
88+
for line in s_gmatch(text .. "\n", "([^\n]*)\n") do
89+
if line:match("^.*(Equipping)") == "Equipping" or line:match("^.*(Removing)") == "Removing" then
90+
t_insert(self.blocks, { height = size + 2})
91+
else
92+
self.blocks[#self.blocks].height = self.blocks[#self.blocks].height + size + 2
93+
end
94+
if self.maxWidth then
95+
for _, line in ipairs(main:WrapString(line, size, self.maxWidth - H_PAD)) do
96+
t_insert(self.lines, { size = size, text = line, block = #self.blocks, font = fontToUse })
97+
end
98+
else
99+
t_insert(self.lines, { size = size, text = line, block = #self.blocks, font = fontToUse })
100+
end
101+
end
102+
end
103103
end
104104

105105
function TooltipClass:SetRecipe(recipe)

0 commit comments

Comments
 (0)