Patch 4.4

game damage font
6 new fonts
This commit is contained in:
Athene
2015-11-27 17:04:36 +01:00
parent 63e5606597
commit 00517d96ef
13 changed files with 98 additions and 11 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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
@@ -1,5 +1,5 @@
## Interface: 11200
## Version: 4.32
## Version: 4.4
## Title: Mik's Scrolling Battle Text
## Notes: Scrolls battle information around the character model.
## OptionalDeps: SW_FixLogStrings
+12 -3
View File
@@ -12,8 +12,8 @@ MikSBT = {};
-------------------------------------------------------------------------------
MikSBT.MOD_NAME = "MikScrollingBattleText"
MikSBT.VERSION_NUMBER = 4.32;
MikSBT.VERSION_STRING = "v4.32";
MikSBT.VERSION_NUMBER = 4.4;
MikSBT.VERSION_STRING = "v4.4";
MikSBT.WINDOW_TITLE = "Mik's Scrolling Battle Text " .. MikSBT.VERSION_STRING .. " - \124cffF58CBA\124hAthene Edit\124h\124r";
MikSBT.COMMAND = "/msbt";
@@ -100,6 +100,12 @@ MikSBT.AVAILABLE_FONTS = {
[14] = {Name="Bazooka", Path="Interface\\Addons\\MikScrollingBattleText\\Fonts\\bazooka.ttf"},
[15] = {Name="Cooline", Path="Interface\\Addons\\MikScrollingBattleText\\Fonts\\cooline.ttf"},
[16] = {Name="Yellowjacket", Path="Interface\\Addons\\MikScrollingBattleText\\Fonts\\yellowjacket.ttf"},
[17] = {Name="Defused", Path="Interface\\Addons\\MikScrollingBattleText\\Fonts\\defused.ttf"},
[18] = {Name="Zombie", Path="Interface\\Addons\\MikScrollingBattleText\\Fonts\\zombie.ttf"},
[19] = {Name="Basket Of Hammers", Path="Interface\\Addons\\MikScrollingBattleText\\Fonts\\basketofhammers.ttf"},
[20] = {Name="College", Path="Interface\\Addons\\MikScrollingBattleText\\Fonts\\college.ttf"},
[21] = {Name="Galaxy", Path="Interface\\Addons\\MikScrollingBattleText\\Fonts\\galaxy.ttf"},
[22] = {Name="Skratch Punk", Path="Interface\\Addons\\MikScrollingBattleText\\Fonts\\skratchpunk.ttf"},
};
-- Holds the available font outlines.
@@ -170,7 +176,10 @@ MikSBT.DEFAULT_CONFIG = {
AnimationStep = 1.5,
MasterFontSettings = {
Normal = {FontIndex=7, OutlineIndex=2, FontSize=18},
Crit = {FontIndex=7, OutlineIndex=2, FontSize=26},
Crit = {FontIndex=7, OutlineIndex=2, FontSize=26},
},
BlizzardFontSettings = {
Normal = {FontIndex=6},
},
DisplaySettings = {
Incoming = {