Skip to content

Commit 2d66d05

Browse files
committed
clean up whitespaces
1 parent c27ab79 commit 2d66d05

File tree

9 files changed

+162
-162
lines changed

9 files changed

+162
-162
lines changed

BestTimesUI.lua

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ function MPT:CreateEditPanel()
9494
local bosstime = F.RunEditPanel.BossTimeEdits[i]:GetText()
9595
if bosstime and bosstime ~= "" then
9696
BossNames[i] = name and name ~= "" and name or (bosstime and bosstime ~= "" and L["Boss %s"]:format(i)) or nil -- add placeholder bossname if it's not given
97-
BossTimes[i] = bosstime and bosstime ~= "" and self:StrToTime(bosstime) or nil
97+
BossTimes[i] = bosstime and bosstime ~= "" and self:StrToTime(bosstime) or nil
9898
if not BossTimes[i] then
9999
print(L["Invalid time format for Boss "]..i..L[". For Timers you are expected to supply a string in the format mm:ss"])
100100
return
@@ -106,11 +106,11 @@ function MPT:CreateEditPanel()
106106
local level = F.RunEditPanel.LevelEdit:GetNumber()
107107
if (not time) or (not forces) then
108108
print(L["Invalid time format. For Timers you are expected to supply a string in the format mm:ss"])
109-
return
109+
return
110110
end
111111
if level == 0 or next(BossTimes) == nil then
112112
print(L["You must fill in at least Level, Completion Time, Enemy Forces Time and one Boss Timer."])
113-
return
113+
return
114114
end
115115
time = time
116116
self:AddRun(UIDropDownMenu_GetSelectedValue(F.RunEditPanel.DungeonDropdown), level,
@@ -126,7 +126,7 @@ function MPT:CreateEditPanel()
126126
F.RunEditPanel.CancelButton:SetScript("OnClick", function(s)
127127
F.RunEditPanel:Hide()
128128
end)
129-
129+
130130
F.RunEditPanel:EnableKeyboard(false)
131131
self:EnableEditBoxKeyboard(F.RunEditPanel.LevelEdit)
132132
self:EnableEditBoxKeyboard(F.RunEditPanel.CompletionEdit)
@@ -140,7 +140,7 @@ end
140140

141141
function MPT:ShowEditPanel(seasonID, cmap)
142142
local F = self.BestTimeFrame
143-
if not F or not F.RunEditPanel then return end
143+
if not F or not F.RunEditPanel then return end
144144
F.RunEditPanel:Show()
145145
local dungeons = {}
146146
for i, cmap in ipairs(self.SeasonData[seasonID].Dungeons) do
@@ -196,7 +196,7 @@ function MPT:EnableEditBoxKeyboard(editbox)
196196
end)
197197
end
198198

199-
function MPT:CreatePBFrame()
199+
function MPT:CreatePBFrame()
200200
if not self.PBInfoFrame then
201201
-- Main Frame
202202
self.BestTimeFrame = CreateFrame("Frame", nil, UIParent, "BackdropTemplate")
@@ -228,7 +228,7 @@ function MPT:CreatePBFrame()
228228
self.SelectedDungeonButton = nil
229229
self.SelectedLevelButton = nil
230230

231-
F:SetResizable(true)
231+
F:SetResizable(true)
232232
F.Handle = self:CreateButton(20, 20, F)
233233
self:SetPoint(F.Handle, "BOTTOMRIGHT", F, "BOTTOMRIGHT", -2, 2)
234234
F.Handle:SetNormalTexture("Interface\\ChatFrame\\UI-ChatIM-SizeGrabber-Up")
@@ -344,7 +344,7 @@ function MPT:CreatePBFrame()
344344
self:ShowCharacterFrames(self.SelectedSeason)
345345
end)
346346
self:AddMouseoverTooltip(F.TotalStatsButton, L["Show your Stats for the selected Season"])
347-
347+
348348
-- Scale Slider
349349
F.ScaleSlider = CreateFrame("Slider", nil, F, "OptionsSliderTemplate")
350350
F.ScaleSlider:SetMinMaxValues(0.5, 2)
@@ -394,7 +394,7 @@ function MPT:HidePBButtons(level)
394394
self.SelectedLevelButton.Border:Hide()
395395
self.SelectedLevel = nil
396396
if self.SelectedLevelButton.BorderFrame then self.SelectedLevelButton.BorderFrame:Hide() end
397-
end
397+
end
398398
end
399399
if level >= 2 then -- Clicking on Dungeon Button
400400
for k, v in pairs(F.LevelButtons or {}) do
@@ -404,16 +404,16 @@ function MPT:HidePBButtons(level)
404404
self.SelectedLevelButton.Border:Hide()
405405
self.SelectedLevel = nil
406406
if self.SelectedLevelButton.BorderFrame then self.SelectedLevelButton.BorderFrame:Hide() end
407-
end
407+
end
408408
if self.SelectedDungeonButton then
409409
self.SelectedDungeonButton.Border:Hide()
410410
self.SelectedDungeon = nil
411-
end
411+
end
412412
end
413413
if level >= 3 then -- Showing Dungeon Buttons
414414
for k, v in pairs(F.DungeonButtons or {}) do
415415
v:Hide()
416-
end
416+
end
417417
end
418418
if level >= 4 then -- Clicking on Season Button
419419
if self.SelectedSeasonButton then
@@ -424,7 +424,7 @@ function MPT:HidePBButtons(level)
424424
if level >= 5 then -- Frame opening
425425
for k, v in pairs(F.SeasonButtons or {}) do
426426
v:Hide()
427-
end
427+
end
428428
end
429429
end
430430

@@ -486,7 +486,7 @@ function MPT:ShowDungeonFrames(seasonID) -- Showing Dungeon Buttons
486486
if not F then return end
487487
if F and seasonID then
488488
local num = 1
489-
self:HidePBButtons(3)
489+
self:HidePBButtons(3)
490490
if not MPTSV.BestTime then MPTSV.BestTime = {} end
491491
for i, cmap in pairs(self.SeasonData[seasonID].Dungeons) do
492492
local parent = num == 1 and F.DungeonButtonFrame or F.DungeonButtons[num-1]
@@ -507,7 +507,7 @@ function MPT:ShowDungeonFrames(seasonID) -- Showing Dungeon Buttons
507507
btn.Text:SetText(name)
508508
btn:Show()
509509
num = num+1
510-
end
510+
end
511511
end
512512
end
513513

@@ -551,7 +551,7 @@ function MPT:ShowLevelFrames(cmap, seasonID) -- Showing Level Buttons
551551
self.SelectedLevel = level
552552
self:ShowPBDataFrame(seasonID, cmap, level)
553553
btn.Border:Show()
554-
end
554+
end
555555
btn.Text:SetText(level)
556556
else
557557
btn:SetScript("OnClick", function(s)
@@ -601,7 +601,7 @@ function MPT:AddCharacterButton(data, num, seasonID, G, color)
601601
})
602602
btn.BorderFrame:SetBackdropBorderColor(1, 1, 1, 1)
603603
btn.BorderFrame:Hide()
604-
F.LevelButtons[num] = btn
604+
F.LevelButtons[num] = btn
605605
end
606606
self:SetPoint(btn, "TOP", F.LevelContent, "TOP", -5, num == 1 and -5 or ((num-1)*-45)-5)
607607
local color = color or self:GetClassColor(data.class)
@@ -621,7 +621,7 @@ function MPT:AddCharacterButton(data, num, seasonID, G, color)
621621
btn.BorderFrame:SetBackdropBorderColor(1, 0, 0, 1) -- use red border for priests
622622
end
623623
btn.BorderFrame:Show()
624-
end)
624+
end)
625625
local text = data.name
626626
if data.realm and data.realm ~= GetNormalizedRealmName() then
627627
text = text.."\n"..data.realm
@@ -637,8 +637,8 @@ function MPT:AddCharacterButton(data, num, seasonID, G, color)
637637
end
638638
btn.BorderFrame:Show()
639639
end
640-
num = num+1
641-
return num
640+
num = num+1
641+
return num
642642
end
643643

644644

@@ -672,7 +672,7 @@ function MPT:ShowPBDataFrame(seasonID, cmap, level) -- Showing PB Data
672672
end
673673
local date = self:GetDateFormat(pbdata.date)
674674
if date == "" then date = L["No Date - Imported or manually Added Run"] else date = L["Date: "]..date end
675-
text = text..string.format(L["Enemy Forces: %s\n%s\n"], self:FormatTime(pbdata.forces), date)
675+
text = text..string.format(L["Enemy Forces: %s\n%s\n"], self:FormatTime(pbdata.forces), date)
676676
F.DeleteButton:Show()
677677
self:AddMouseoverTooltip(F.DeleteButton, L["Delete the currently selected run from your saved best times.\nIt does not remove it from your total run history."])
678678
F.DeleteButton.Text:SetText(L["Delete Run"])
@@ -737,8 +737,8 @@ function MPT:ShowTotalStatsFrame(seasonID, characteronly, GUID)
737737
totaldepletedkeys = totaldepletedkeys + data.depleted
738738
totalabandoned = totalabandoned + data.abandoned
739739
end
740-
end
741-
740+
end
741+
742742
F.DeleteButton.Text:SetText(L["Delete Character"])
743743
F.DeleteButton:SetScript("OnClick", function(s)
744744
StaticPopup_Show("MPT_DELETE_CHARACTER")
@@ -763,7 +763,7 @@ function MPT:ShowTotalStatsFrame(seasonID, characteronly, GUID)
763763
totaldepletedkeys = totaldepletedkeys + data.depleted
764764
totalabandoned = totalabandoned + data.abandoned
765765
end
766-
end
766+
end
767767
local name = self:Utf8Sub(self:GetDungeonName(cmap), 1, 15)
768768
local completed = completedruns[cmap] or 0
769769
local depleted = depletedruns[cmap] or 0
@@ -779,7 +779,7 @@ function MPT:ShowTotalStatsFrame(seasonID, characteronly, GUID)
779779
text2 = text2.."\n"
780780
end
781781
end
782-
end
782+
end
783783
text = string.format(L["Total Run Stats: |cFFFFFF4D%s|r Runs (|cFF00FF00%s|r Intime, |cFFFF0000%s|r Depleted, |cFFFFAA00%s|r Abandoned)\n"], totalcompletedkeys+totaldepletedkeys, totalcompletedkeys, totaldepletedkeys, totalabandoned)..text
784784
if not F.PBDataText then
785785
F.PBDataText = F.PBDataFrame:CreateFontString(nil, "OVERLAY", "GameFontNormal")

Data.lua

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ MPT.maptoID = { -- MapChallengeMode = JournalInstance
3434
[76] = {246, L["Scholomance"]},
3535
[77] = {311, L["Scarlet Halls"]},
3636
[78] = {316, L["Monastery"]},
37-
37+
3838
-- WoD
3939
[161] = {476, L["Skyreach"]},
4040
[163] = {385, L["Slag Mines"]},
@@ -44,7 +44,7 @@ MPT.maptoID = { -- MapChallengeMode = JournalInstance
4444
[167] = {559, L["UBRS"]},
4545
[168] = {556, L["Everbloom"]},
4646
[169] = {558, L["Iron Docks"]},
47-
47+
4848
-- Legion
4949
[197] = {716, L["Eye of Azshara"]},
5050
[198] = {762, L["Darkheart"]},
@@ -59,7 +59,7 @@ MPT.maptoID = { -- MapChallengeMode = JournalInstance
5959
[233] = {900, L["Cathedral"]},
6060
[234] = {860, L["Kara: Upper"]},
6161
[239] = {945, L["Seat"]},
62-
62+
6363
-- BfA
6464
[244] = {968, L["Atal'Dazar"]},
6565
[245] = {1001, L["Freehold"]},
@@ -73,7 +73,7 @@ MPT.maptoID = { -- MapChallengeMode = JournalInstance
7373
[353] = {1023, L["Boralus"]},
7474
[369] = {1178, L["Junkyard"]},
7575
[370] = {1178, L["Workshop"]},
76-
76+
7777
-- Shadowlands
7878
[375] = {1184, L["Mists"]},
7979
[376] = {1182, L["Necrotic Wake"]},
@@ -86,7 +86,7 @@ MPT.maptoID = { -- MapChallengeMode = JournalInstance
8686
[391] = {1194, L["Streets"]},
8787
[392] = {1194, L["Gambit"]},
8888
-- Dragonflight
89-
89+
9090
[399] = {1202, L["Ruby Pools"]},
9191
[400] = {1198, L["Nokhud"]},
9292
[401] = {1203, L["Azure Vault"]},
@@ -97,9 +97,9 @@ MPT.maptoID = { -- MapChallengeMode = JournalInstance
9797
[406] = {1204, L["Halls"]},
9898
[463] = {1209, L["DotI: Lower"]},
9999
[464] = {1209, L["DotI: Upper"]},
100-
100+
101101
-- The War Within
102-
102+
103103
[499] = {1267, L["Priory"]},
104104
[500] = {1268, L["The Rookery"]},
105105
[501] = {1269, L["Stonevault"]},
@@ -123,7 +123,7 @@ MPT.maptoID = { -- MapChallengeMode = JournalInstance
123123
[0] = {1311, L["Den of Nalorakk"]},
124124
[0] = {1309, L["Blinding Vale"]},
125125
[0] = {1313, L["Voidscar Arena"]},
126-
]]
126+
]]
127127
}
128128

129129
MPT.DefaultProfile = {
@@ -223,7 +223,7 @@ MPT.DefaultProfile = {
223223
Anchor = "TOPLEFT",
224224
RelativeTo = "BOTTOMLEFT",
225225
AnchoredTo = "KeyInfo",
226-
Splits = true,
226+
Splits = true,
227227
ChestTimerDisplay = 1, -- 1 == relevant timers. 2 == all timers. 3 = no timers
228228
Width = 330,
229229
Height = 24,
@@ -471,7 +471,7 @@ MPT.DefaultProfile = {
471471
BackgroundColor = {0, 0, 0, 0.5},
472472
BorderColor = {0, 0, 0, 1},
473473
},
474-
474+
475475
PBInfo = {
476476
enabled = false,
477477
Anchor = "RIGHT",
@@ -505,50 +505,50 @@ MPT.AnchorTypes = {
505505

506506
MPT.Gossips = {
507507
[196974] = {Name = L["Academy Crit Buff"], enabled = true, number = 1},
508-
[196977] = {Name = L["Academy Haste Buff"], enabled = true, number = 1},
508+
[196977] = {Name = L["Academy Haste Buff"], enabled = true, number = 1},
509509
[196978] = {Name = L["Academy Mastery Buff"], enabled = true, number = 1},
510510
[196981] = {Name = L["Academy Versatility Buff"], enabled = true, number = 1},
511511
[196979] = {Name = L["Academy Healing Taken Buff"], enabled = true, number = 1},
512-
512+
513513
[97081] = {Name = L["HoV - King Bjorn"], enabled = true, number = 1},
514-
[95843] = {Name = L["HoV - King Haldor"], enabled = true, number = 1},
514+
[95843] = {Name = L["HoV - King Haldor"], enabled = true, number = 1},
515515
[97083] = {Name = L["HoV - King Ranulf"], enabled = true, number = 1},
516516
[97084] = {Name = L["HoV - King Tor"], enabled = true, number = 1},
517517
[95676] = {Name = L["HoV - Odyn"], enabled = true, number = 1},
518518

519519
[194602] = {Name = L["Azure Vault 1st Book"], enabled = true, number = 1},
520-
[194712] = {Name = L["Azure Vault 2nd Book"], enabled = true, number = 1},
520+
[194712] = {Name = L["Azure Vault 2nd Book"], enabled = true, number = 1},
521521
[194713] = {Name = L["Azure Vault 3rd Book"], enabled = true, number = 1},
522522
[194714] = {Name = L["Azure Vault 4th Book"], enabled = true, number = 1},
523-
[194715] = {Name = L["Azure Vault 5th Book"], enabled = true, number = 1},
523+
[194715] = {Name = L["Azure Vault 5th Book"], enabled = true, number = 1},
524524

525525
[135978] = {Name = L["Freehold - Beer Event"], enabled = true, number = 1},
526-
[130086] = {Name = L["Davey"], enabled = true, number = 1},
526+
[130086] = {Name = L["Davey"], enabled = true, number = 1},
527527

528528
[194675] = {Name = L["Brackenhide - Alchemy Cauldron"], enabled = true, number = 1},
529529

530530
[194675] = {Name = L["Halls of Infusion - Eng Buff"], enabled = true, number = 1},
531531
[197654] = {Name = L["Halls of Infusion - Infused Mushroom"], enabled = true, number = 1},
532-
532+
533533
[189219] = {Name = L["Neltharus - Qalashi Goulash"], enabled = true, number = 1},
534-
[189786] = {Name = L["Neltharus - Blazing Aegis"], enabled = true, number = 1},
534+
[189786] = {Name = L["Neltharus - Blazing Aegis"], enabled = true, number = 1},
535535

536536
[138761] = {Name = L["Waycrest Manor - Entrance Teleport"], enabled = true, number = 1},
537-
538-
[105729] = {Name = L["Court of Stars - Lantern"], enabled = true, number = 1},
537+
538+
[105729] = {Name = L["Court of Stars - Lantern"], enabled = true, number = 1},
539539
[106468] = {Name = L["Court of Stars - Disguise"], enabled = true, number = 1},
540540
[107486] = {Name = L["Court of Stars - Clue"], enabled = true, number = 1},
541-
[105157] = {Name = L["Court of Stars - Engineering Orb"], enabled = true, number = 1},
542-
[105117] = {Name = L["Court of Stars - Alchemy Flask"], enabled = true, number = 1},
541+
[105157] = {Name = L["Court of Stars - Engineering Orb"], enabled = true, number = 1},
542+
[105117] = {Name = L["Court of Stars - Alchemy Flask"], enabled = true, number = 1},
543543
[106018] = {Name = L["Court of Stars - Bazaar Goods"], enabled = true, number = 1},
544544
[106113] = {Name = L["Court of Stars - Nightborne Statue"], enabled = true, number = 1},
545-
[105215] = {Name = L["Court of Stars - Discarded Junk"], enabled = true, number = 1},
546-
[106112] = {Name = L["Court of Stars - Wounded Civilian"], enabled = true, number = 1},
545+
[105215] = {Name = L["Court of Stars - Discarded Junk"], enabled = true, number = 1},
546+
[106112] = {Name = L["Court of Stars - Wounded Civilian"], enabled = true, number = 1},
547547
[105160] = {Name = L["Court of Stars - Fel Orb"], enabled = true, number = 1},
548548
[105831] = {Name = L["Court of Stars - Infernal Tome"], enabled = true, number = 1},
549549
[106024] = {Name = L["Court of Stars - Magical Lantern"], enabled = true, number = 1},
550-
[105249] = {Name = L["Court of Stars - Refreshments"], enabled = true, number = 1},
551-
[106108] = {Name = L["Court of Stars - Rose Brew"], enabled = true, number = 1},
550+
[105249] = {Name = L["Court of Stars - Refreshments"], enabled = true, number = 1},
551+
[106108] = {Name = L["Court of Stars - Rose Brew"], enabled = true, number = 1},
552552
[105340] = {Name = L["Court of Stars - Umbral Bloom"], enabled = true, number = 1},
553553
[106110] = {Name = L["Court of Stars - Waterlogged Scroll"], enabled = true, number = 1},
554554

0 commit comments

Comments
 (0)