OUF头像编辑设定及DIY研究
原文地址:http://wowskinui.com/article/84/140.html
- Configuration - font, fontsize and textures --材质和字体大小等设置
-- ------------------------------------------------------------------------
local font = "Interface\\AddOns\\oUF_Asym\\fonts\\XXXX.ttf" -- 字体设置,修改成自己喜欢的字体所在路径。或把喜欢的字体重命名替换
local fontsize = 12 -- default 12 --字体大小(除了施法条以外的字号)默认为12
local fontsizeCB = 12 -- castbar fontsize --施法条的字体大小,默认为12
local bartex = "Interface\\AddOns\\oUF_Asym\\textures\\dm" -- change bar texture here --头像的背景框,默认是dm,可以自己去该文件夹查看图片并替换成自己喜欢的
local castbartex = "Interface\\AddOns\\oUF_Asym\\textures\\dm" -- change castbar texture here --施法条的背景框材质,默认是dm
local bufftex = "Interface\\AddOns\\oUF_Asym\\textures\\border1" -- change buff/debuff border texture here --buff和debuff的背景框材质
local playerClass = select(2, UnitClass("player"))
local PorBG = "Interface\\AddOns\\oUF_Asym\\textures\\Border4.tga" -- change target portait background texture here --头像材质
local frameborder = "Interface\\AddOns\\oUF_Asym\\textures\\frameborder4.tga" --边框材质
local borderDebuffHigh = "Interface\\AddOns\\oUF_Asym\\textures\\frameborder4large.tga" --debuff边框高亮材质
-- color and alpha for frameborders --背景框色调和透明度设置,一般不用改
local color_rb = 0.40 -- default 0.00
local color_gb = 0.40 -- default 0.00
local color_bb = 0.40 -- default 0.00
local alpha_fb = 0.80 -- default 0.35
-- Castbar position for player and target --施法条的位置
local playerCB_x = 0 --自己施法条的横坐标
local playerCB_y = -265 --自己施法条的纵坐标
local targetCB_x = 270 --目标施法条的横坐标
local targetCB_y = -152 --目标施法条的纵坐标
-- Portraits --小队和团队头像开关
-- enable/disable party portrait -- 0 = disable, 1 = enable
local partyport = 1 --是否显示小队头像,1开0闭
-- enable/disable raid portrait -- 0 = disable, 1 = enable
local raidport = 0 -- disabled by default --是否显示团队头像,1开0闭
-- ------------------------------------------------------------------------
-- End of Configuration
-- ------------------------------------------------------------------------
-- local background --头像背景透明度设置
-- ------------------------------------------------------------------------
local backdrop = {
bgFile = "Interface\\ChatFrame\\ChatFrameBackground",
insets = {top = -1, left = -1, bottom = -1, right = -1},
}
-- ------------------------------------------------------------------------
-- change some colors :)
-- ------------------------------------------------------------------------
oUF.colors.happiness = {
[1] = {182/225, 34/255, 32/255}, -- unhappy --不开心的颜色
[2] = {220/225, 180/225, 52/225}, -- content --普通状态的颜色
[3] = {143/255, 194/255, 32/255}, -- happy --开心的颜色
}
local corb = 1
local cogb = 0
local cobb = 0
原文地址:http://wowskinui.com/article/84/140.html
- Configuration - font, fontsize and textures --材质和字体大小等设置
-- ------------------------------------------------------------------------
local font = "Interface\\AddOns\\oUF_Asym\\fonts\\XXXX.ttf" -- 字体设置,修改成自己喜欢的字体所在路径。或把喜欢的字体重命名替换
local fontsize = 12 -- default 12 --字体大小(除了施法条以外的字号)默认为12
local fontsizeCB = 12 -- castbar fontsize --施法条的字体大小,默认为12
local bartex = "Interface\\AddOns\\oUF_Asym\\textures\\dm" -- change bar texture here --头像的背景框,默认是dm,可以自己去该文件夹查看图片并替换成自己喜欢的
local castbartex = "Interface\\AddOns\\oUF_Asym\\textures\\dm" -- change castbar texture here --施法条的背景框材质,默认是dm
local bufftex = "Interface\\AddOns\\oUF_Asym\\textures\\border1" -- change buff/debuff border texture here --buff和debuff的背景框材质
local playerClass = select(2, UnitClass("player"))
local PorBG = "Interface\\AddOns\\oUF_Asym\\textures\\Border4.tga" -- change target portait background texture here --头像材质
local frameborder = "Interface\\AddOns\\oUF_Asym\\textures\\frameborder4.tga" --边框材质
local borderDebuffHigh = "Interface\\AddOns\\oUF_Asym\\textures\\frameborder4large.tga" --debuff边框高亮材质
-- color and alpha for frameborders --背景框色调和透明度设置,一般不用改
local color_rb = 0.40 -- default 0.00
local color_gb = 0.40 -- default 0.00
local color_bb = 0.40 -- default 0.00
local alpha_fb = 0.80 -- default 0.35
-- Castbar position for player and target --施法条的位置
local playerCB_x = 0 --自己施法条的横坐标
local playerCB_y = -265 --自己施法条的纵坐标
local targetCB_x = 270 --目标施法条的横坐标
local targetCB_y = -152 --目标施法条的纵坐标
-- Portraits --小队和团队头像开关
-- enable/disable party portrait -- 0 = disable, 1 = enable
local partyport = 1 --是否显示小队头像,1开0闭
-- enable/disable raid portrait -- 0 = disable, 1 = enable
local raidport = 0 -- disabled by default --是否显示团队头像,1开0闭
-- ------------------------------------------------------------------------
-- End of Configuration
-- ------------------------------------------------------------------------
-- local background --头像背景透明度设置
-- ------------------------------------------------------------------------
local backdrop = {
bgFile = "Interface\\ChatFrame\\ChatFrameBackground",
insets = {top = -1, left = -1, bottom = -1, right = -1},
}
-- ------------------------------------------------------------------------
-- change some colors :)
-- ------------------------------------------------------------------------
oUF.colors.happiness = {
[1] = {182/225, 34/255, 32/255}, -- unhappy --不开心的颜色
[2] = {220/225, 180/225, 52/225}, -- content --普通状态的颜色
[3] = {143/255, 194/255, 32/255}, -- happy --开心的颜色
}
local corb = 1
local cogb = 0
local cobb = 0
