Quantcast
change lafont to be global instead of per charector - WoWInterface
Thread Tools Display Modes
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
03-29-16, 04:43 AM   #2
Folji
A Flamescale Wyrmkin
 
Folji's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2009
Posts: 136
All you should really have to do is delete if (myname == "Example") then. And then also find the corresponding end tag later on in the config file and remove that too.

That line calls for an if/else check to see if the character's name matches up with a name given to any of the config profiles, and then it runs the code inside if it does match up. So just delete that line and the following "end" line that I'm guessing you cut out of the copypasted code, and you're good to go.
  Reply With Quote
03-29-16, 04:48 AM   #3
Kronzo
A Defias Bandit
Join Date: Mar 2016
Posts: 3
thank you
i will look at it straight away i had tried to delete it, but dident know about the end tag
thanks
  Reply With Quote
08-05-16, 06:36 PM   #4
imsystem
A Kobold Labourer
Join Date: Mar 2008
Posts: 1
Originally Posted by Folji View Post
All you should really have to do is delete if (myname == "Example") then. And then also find the corresponding end tag later on in the config file and remove that too.

That line calls for an if/else check to see if the character's name matches up with a name given to any of the config profiles, and then it runs the code inside if it does match up. So just delete that line and the following "end" line that I'm guessing you cut out of the copypasted code, and you're good to go.
try changing if (myname == "Example") then
to if (myname ~= "Example") then

theoretically, it would then work for any characters without the name Example
  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