mirror of
https://github.com/brues-code/Vanilla_MikScrollingBattleText.git
synced 2026-10-15 09:50:49 +00:00
Patch 4.4
game damage font 6 new fonts
This commit is contained in:
@@ -234,6 +234,7 @@ end
|
||||
function MikSBT.OnLoad()
|
||||
-- Register for the ADDON_LOADED event.
|
||||
MSBTEventFrame:RegisterEvent("ADDON_LOADED");
|
||||
MSBTEventFrame:RegisterEvent("PLAYER_ENTERING_WORLD");
|
||||
end
|
||||
|
||||
-- **********************************************************************************
|
||||
@@ -242,12 +243,15 @@ end
|
||||
function MikSBT.OnEvent()
|
||||
-- When an addon is loaded.
|
||||
if (event == "ADDON_LOADED") then
|
||||
|
||||
-- Set Game Damage font
|
||||
if MikSBT_Save then
|
||||
DAMAGE_TEXT_FONT = MikSBT.AVAILABLE_FONTS[MikSBT_Save.Profiles[MikSBT_Save.CurrentProfile].BlizzardFontSettings.Normal.FontIndex].Path or "Fonts\\FRIZQT__.TTF"
|
||||
end
|
||||
|
||||
-- Make sure it's this addon.
|
||||
if (arg1 == MikSBT.MOD_NAME) then
|
||||
|
||||
-- Don't get notification for other addons being loaded.
|
||||
this:UnregisterEvent("ADDON_LOADED");
|
||||
|
||||
-- Register for the events the helper is interested in receiving.
|
||||
MikSBT.RegisterEvents();
|
||||
|
||||
@@ -256,6 +260,11 @@ function MikSBT.OnEvent()
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
if (event == "PLAYER_ENTERING_WORLD") then
|
||||
this:UnregisterEvent("ADDON_LOADED");
|
||||
this:UnregisterEvent("PLAYER_ENTERING_WORLD");
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -364,7 +373,6 @@ function MikSBT.Init()
|
||||
-- Updates profiles created by older versions.
|
||||
MikSBT.UpdateProfiles();
|
||||
|
||||
|
||||
-- Set the current profile.
|
||||
MikSBT.CurrentProfile = MikSBT_Save.Profiles[MikSBT_Save.CurrentProfile];
|
||||
|
||||
@@ -1272,6 +1280,13 @@ function MikSBT.UpdateProfiles()
|
||||
profile.CreationVersion = 4.3;
|
||||
end
|
||||
|
||||
if (profile.CreationVersion < 4.4) then
|
||||
|
||||
profile.BlizzardFontSettings = MikSBT.CopyTable(MikSBT.DEFAULT_CONFIG.BlizzardFontSettings);
|
||||
|
||||
profile.CreationVersion = 4.4;
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user