Thread Tools Display Modes
Prev Previous Post   Next Post Next
03-29-16, 02:21 AM   #1
Kronzo
A Defias Bandit
Join Date: Mar 2016
Posts: 3
change lafont to be global instead of per charector

I found lafont to change zone text but it hasent really been active in years but it still work but you have to create a lua file for each of your charectors is it har to make it global

Code:
------------------------------------------------------------------------------------------------------------
---------- This is an example ---------------------------- SEE THE README! ---------------------------------
------------------------------------------------------------------------------------------------------------

local myname, _ = UnitName("player") 

---------- Simply change your "Example" into your Charname -------------------------------------------------
if (myname == "Example") then
---------- And configurate everything ----------------------------------------------------------------------

--- true = yes 
--- false = no
local font = "Interface\\AddOns\\laFont\\font.ttf"                            --- The font you want to have.
 
local ZoneText = true                                             --- Should the ZoneText have another font?
local CombatText = true                                         --- Should the DamageText have another font?
 
local CustomColors = true                   --ONLY ZONETEXT!                    --- Want some custom colors?
local CustomText = false                    --ONLY ZONETEXT!                      --- Want some custom text?

--- Default: pvp: 20; Zone: 100; SubZone: 30  
--- Fontsize has to be between 0 and 100
local pvpFontSize = {20}                                                                     -- pvp Fontsize
local ZoneFontSize = {100}                                                                  -- Zone Fontsize
local SubZoneFontSize = {30}                                                             -- SubZone Fontsize

local SColor = {0, 255, 255}                                                      --- Sanctuary custom color
local AColor = {255, 0, 0}														      --- Arena custom color
local FColor = {0, 255, 0}														   --- Friendly custom color
local HColor = {255, 0, 0}															--- Hostile custom color
local CColor = {255, 255, 0}												      --- Contested custom color

local SText = 'Safe Zone!'                                                         --- Sanctuary custom text
local AText = 'Arena!'									    	                	   --- Arena custom text
local FText = 'Friends inc!'                                     		    	    --- Friendly custom text
local HText = 'Enemies inc!'			                                             --- Hostile custom text
local CText = 'Letz fight!'         									           --- Contested custom text

-- Default: 24
local CTFontSize = {24}                                                               -- Combattext Fontsize
  Reply With Quote
 

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » change lafont to be global instead of per charector

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off