Apply auto formatting to all source files

This commit is contained in:
2023-09-10 12:37:25 +02:00
parent e20887d46b
commit 24c571658c
9 changed files with 117 additions and 70 deletions

View File

@@ -66,6 +66,7 @@ function omif.OnAddonLoaded(name)
omif.MainEventHandler(nil, "OMICRON_LOADING") omif.MainEventHandler(nil, "OMICRON_LOADING")
print("Loaded", AddonName) print("Loaded", AddonName)
end end
omif.SetEventHandler("ADDON_LOADED", omif.OnAddonLoaded) omif.SetEventHandler("ADDON_LOADED", omif.OnAddonLoaded)
-- Fire custom event OMICRON_FULLY_LOADED. This event is fired when the player -- Fire custom event OMICRON_FULLY_LOADED. This event is fired when the player
@@ -75,6 +76,7 @@ function omif.FireFullyLoadedEvent(initialLogin, reloadUI)
omif.MainEventHandler(nil, "OMICRON_FULLY_LOADED") omif.MainEventHandler(nil, "OMICRON_FULLY_LOADED")
end end
end end
omif.SetEventHandler("PLAYER_ENTERING_WORLD", omif.FireFullyLoadedEvent) omif.SetEventHandler("PLAYER_ENTERING_WORLD", omif.FireFullyLoadedEvent)
function omif.SlashCommand(args) function omif.SlashCommand(args)

View File

@@ -37,26 +37,73 @@ local statusLists = {
[397797] = true, -- Corrupted Vortex, Jade Serpent Temple [397797] = true, -- Corrupted Vortex, Jade Serpent Temple
[387843] = true, -- Astral Bomb, Algeth'ar Academy [387843] = true, -- Astral Bomb, Algeth'ar Academy
[386181] = true, -- Mana Bomb, Algeth'ar Academy [386181] = true, -- Mana Bomb, Algeth'ar Academy
[401330] = true, -- Sarkareth, Burning Claws (p1 tank)
[411241] = true, -- Sarkareth, Void Claws (p2 tank) [411241] = true, -- Sarkareth, Void Claws (p2 tank)
[408429] = true, -- Sarkareth, Void Slash (p3 tank) [408429] = true, -- Sarkareth, Void Slash (p3 tank)
[410642] = true, -- Sarkareth, Void fracture (bombs) [404218] = true, -- Sarkareth, Void fracture (bombs)
}, },
Burn = { Burn = {
[114803] = true, -- Throw Torch, Jade Serpent Temple -- Jade Serpent Temple
[397914] = true, -- Defiling Mist, Jade Serpent Temple [114803] = true, -- Throw Torch
[106114] = true, -- Touch of Nothingness, Jade Serpent temple [397914] = true, -- Defiling Mist
[152819] = true, -- Shadow Word: Frailty, Shadowmoon Burial Ground [106114] = true, -- Touch of Nothingness
[153524] = true, -- Plague Spit, Shadowmoon Burial Ground
[397907] = true, -- Impending Doom, ??? -- Shadow moon Burial Ground
[209516] = true, -- Mana Fang, Court of Stars [152819] = true, -- Shadow Word: Frailty
[207980] = true, -- Disintegration Beam, Court of Stars [153524] = true, -- Plague Spit
[211464] = true, -- Fel Detonation, Court of Stars
-- Court of Stars
[397907] = true, -- Impending Doom
[209516] = true, -- Mana Fang
[207980] = true, -- Disintegration Beam
[211464] = true, -- Fel Detonation
-- Algeth'ar Academy
[376997] = true, -- Savage Peck, Algeth'ar Academy [376997] = true, -- Savage Peck, Algeth'ar Academy
[388912] = true, -- Severing Slash, Algeth'ar Academy [388912] = true, -- Severing Slash, Algeth'ar Academy
[388866] = true, -- Mana Void, Algeth'ar Academy [388866] = true, -- Mana Void, Algeth'ar Academy
-- Vault of the Incarnates
[390911] = true, -- Raszageth, Lingering Charge [390911] = true, -- Raszageth, Lingering Charge
-- Atal'Dazar
[255582] = true, -- Priestess Alun'za, Molten Gold [255582] = true, -- Priestess Alun'za, Molten Gold
-- The MOTHERLODE!!
[259853] = true, -- Rixxa Fluxflame, Chemical Burn [259853] = true, -- Rixxa Fluxflame, Chemical Burn
-- Halls of Infusion
-- Uldaman: Legacy of Tyr
[372718] = true, -- Earthen Shards
-- Brackenhide Hollow
[367521] = true, -- Bone Bolt
[367484] = true, -- Vicious Clawmangle
[378020] = true, -- Gash Frenzy
[385058] = true, -- Withering Poison
[384575] = true, -- Crippling Bite
-- Neltharus
[373735] = true, -- Dragon Strike
[372224] = true, -- Draogonbone Axe
[377018] = true, -- Molten Gold
[372570] = true, -- Bold Ambush
-- Neltharion's Lair
-- Freehold
[413131] = true, -- Whirling Dagger
-- The Underrot
[265019] = true, -- Savage Cleave
[265568] = true, -- Dark Omen
[273226] = true, -- Decaying Spores
-- Vortex Pinnacle
-- Aberrus
[404010] = true, -- Zkarn, ???
[405462] = true, -- Zkarn, ???
}, },
} }

View File

@@ -77,7 +77,6 @@ function BorderIndicator:Show(data)
frame:Show() frame:Show()
end end
function BorderIndicator:Update(data) function BorderIndicator:Update(data)
if data.color then if data.color then
self:SetColor(data.color) self:SetColor(data.color)
@@ -109,4 +108,3 @@ function BorderIndicator:Hide()
self.frame = nil self.frame = nil
borderPool:Release(frame) borderPool:Release(frame)
end end

View File

@@ -36,4 +36,3 @@ end
--- Hide the indicator --- Hide the indicator
function Indicator:Hide() function Indicator:Hide()
end end

View File

@@ -48,6 +48,7 @@ function types.IsDerivedFrom(a, b)
return true return true
end end
current = current.__typeInfo.parent current = current.__typeInfo.parent
until current == nil; until current == nil
;
return false return false
end end