TA的每日心情 | 奋斗 2024-10-11 15:45 |
---|
签到天数: 40 天 [LV.5]常住居民I
|
楼主 |
发表于 2007-9-14 09:06:16
|
显示全部楼层
-- =============================================================================
-- B. 标准的WOW用户界面部分
-- =============================================================================
-- 这是需要编辑的最重要的部分
-- 主要的字体被预先列出,其余部分字体按照字母表顺序排列
-- 如果在补丁改变的情况下,声明可能会有所忽略
-- -----------------------------------------------------------------------------
-- 举个例子:游戏初始字体如下:SetFont(CLEAR_FONT, 19 * CF_SCALE)
-- 在括号里的第一部分是字体类型,第二部分是字体大小
-- 根据个人所需而改变
-- =============================================================================
function ClearFont:ApplySystemFonts()
-- -----------------------------------------------------------------------------
-- 世界环境中、3D字体等 (Dark Imakuni)
-- -----------------------------------------------------------------------------
-- 聊天泡泡
STANDARD_TEXT_FONT = CLEAR_FONT_CHAT;
-- 人头上的名字
UNIT_NAME_FONT = CLEAR_FONT;
NAMEPLATE_FONT = CLEAR_FONT;
-- 显示在被攻击目标头上的效果 (和插件SCT/SDT无关)
DAMAGE_TEXT_FONT = CLEAR_FONT_DAMAGE;
-- 拾取菜单字体大小
UIDROPDOWNMENU_DEFAULT_TEXT_HEIGHT = 19 * CF_SCALE;
-- -----------------------------------------------------------------------------
-- Raid 等级色彩 (默认禁止)
-- -----------------------------------------------------------------------------
-- RAID_CLASS_COLORS = {
-- ["HUNTER"] = { r = 0.67, g = 0.83, b = 0.45 },
-- ["WARLOCK"] = { r = 0.58, g = 0.51, b = 0.79 },
-- ["PRIEST"] = { r = 1.0, g = 1.0, b = 1.0 },
-- ["PALADIN"] = { r = 0.96, g = 0.55, b = 0.73 },
-- ["MAGE"] = { r = 0.41, g = 0.8, b = 0.94 },
-- ["ROGUE"] = { r = 1.0, g = 0.96, b = 0.41 },
-- ["DRUID"] = { r = 1.0, g = 0.49, b = 0.04 },
-- ["SHAMAN"] = { r = 0, g = 0.86, b = 0.73 },
-- ["WARRIOR"] = { r = 0.78, g = 0.61, b = 0.43 }
-- };
-- -----------------------------------------------------------------------------
-- 系统字体
-- -----------------------------------------------------------------------------
if (CanSetFont(SystemFont)) then SystemFont:SetFont(CLEAR_FONT, 19 * CF_SCALE); end
-- -----------------------------------------------------------------------------
-- 主游戏字体: 随处可见的主要的字体
-- -----------------------------------------------------------------------------
if (CanSetFont(GameFontNormal)) then GameFontNormal:SetFont(CLEAR_FONT, 19 * CF_SCALE); end
if (CanSetFont(GameFontHighlight)) then GameFontHighlight:SetFont(CLEAR_FONT, 19 * CF_SCALE); end
if (CanSetFont(GameFontDisable)) then GameFontDisable:SetFont(CLEAR_FONT, 19 * CF_SCALE); end
if (CanSetFont(GameFontDisable)) then GameFontDisable:SetTextColor(0.6, 0.6, 0.6); end
if (CanSetFont(GameFontGreen)) then GameFontGreen:SetFont(CLEAR_FONT, 19 * CF_SCALE); end
if (CanSetFont(GameFontRed)) then GameFontRed:SetFont(CLEAR_FONT, 19 * CF_SCALE); end
if (CanSetFont(GameFontBlack)) then GameFontBlack:SetFont(CLEAR_FONT, 17 * CF_SCALE); end
if (CanSetFont(GameFontWhite)) then GameFontWhite:SetFont(CLEAR_FONT, 17 * CF_SCALE); end
-- -----------------------------------------------------------------------------
-- 小字体:经常用小字体的地方,也用在 Titan Panel
-- -----------------------------------------------------------------------------
if (CanSetFont(GameFontNormalSmall)) then GameFontNormalSmall:SetFont(CLEAR_FONT, 17 * CF_SCALE); end
if (CanSetFont(GameFontHighlightSmall)) then GameFontHighlightSmall:SetFont(CLEAR_FONT, 17 * CF_SCALE); end
if (CanSetFont(GameFontHighlightSmallOutline)) then GameFontHighlightSmallOutline:SetFont(CLEAR_FONT, 17 * CF_SCALE, "OUTLINE"); end
if (CanSetFont(GameFontDisableSmall)) then GameFontDisableSmall:SetFont(CLEAR_FONT, 17 * CF_SCALE); end
if (CanSetFont(GameFontDisableSmall)) then GameFontDisableSmall:SetTextColor(0.6, 0.6, 0.6); end
if (CanSetFont(GameFontDarkGraySmall)) then GameFontDarkGraySmall:SetFont(CLEAR_FONT, 17 * CF_SCALE); end
if (CanSetFont(GameFontDarkGraySmall)) then GameFontDarkGraySmall:SetTextColor(0.4, 0.4, 0.4); end
if (CanSetFont(GameFontGreenSmall)) then GameFontGreenSmall:SetFont(CLEAR_FONT, 17 * CF_SCALE); end
if (CanSetFont(GameFontRedSmall)) then GameFontRedSmall:SetFont(CLEAR_FONT, 17 * CF_SCALE); end
-- -----------------------------------------------------------------------------
-- 大字体:标题
-- -----------------------------------------------------------------------------
if (CanSetFont(GameFontNormalLarge)) then GameFontNormalLarge:SetFont(CLEAR_FONT, 19 * CF_SCALE); end
if (CanSetFont(GameFontHighlightLarge)) then GameFontHighlightLarge:SetFont(CLEAR_FONT, 19 * CF_SCALE); end
if (CanSetFont(GameFontDisableLarge)) then GameFontDisableLarge:SetFont(CLEAR_FONT, 19 * CF_SCALE); end
if (CanSetFont(GameFontDisableLarge)) then GameFontDisableLarge:SetTextColor(0.6, 0.6, 0.6); end
if (CanSetFont(GameFontGreenLarge)) then GameFontGreenLarge:SetFont(CLEAR_FONT, 19 * CF_SCALE); end
if (CanSetFont(GameFontRedLarge)) then GameFontRedLarge:SetFont(CLEAR_FONT, 19 * CF_SCALE); end
-- -----------------------------------------------------------------------------
-- 极大字体:Raid警报
-- -----------------------------------------------------------------------------
if (CanSetFont(GameFontNormalHuge)) then GameFontNormalHuge:SetFont(CLEAR_FONT, 21 * CF_SCALE); end
-- -----------------------------------------------------------------------------
-- 战斗文字: 集成 SCT-style 信息
-- -----------------------------------------------------------------------------
if (CanSetFont(CombatTextFont)) then CombatTextFont:SetFont(CLEAR_FONT, 26 * CF_SCALE); end
-- -----------------------------------------------------------------------------
-- 数字字体: 拍卖行,金币,按键绑定,物品堆叠数量
-- -----------------------------------------------------------------------------
if (CanSetFont(NumberFontNormal)) then NumberFontNormal:SetFont(CLEAR_FONT_NUMBER, 19 * CF_SCALE, "OUTLINE"); end
if (CanSetFont(NumberFontNormalYellow)) then NumberFontNormalYellow:SetFont(CLEAR_FONT_NUMBER, 19 * CF_SCALE, "OUTLINE"); end
if (CanSetFont(NumberFontNormalSmall)) then NumberFontNormalSmall:SetFont(CLEAR_FONT_NUMBER, 19 * CF_SCALE, "OUTLINE"); end
if (CanSetFont(NumberFontNormalSmallGray)) then NumberFontNormalSmallGray:SetFont(CLEAR_FONT_NUMBER, 19 * CF_SCALE, "OUTLINE"); end
if (CanSetFont(NumberFontNormalLarge)) then NumberFontNormalLarge:SetFont(CLEAR_FONT_NUMBER, 19 * CF_SCALE, "OUTLINE"); end
if (CanSetFont(NumberFontNormalHuge)) then NumberFontNormalHuge:SetFont(CLEAR_FONT_DAMAGE, 24 * CF_SCALE, "THICKOUTLINE"); end
if (CanSetFont(NumberFontNormalHuge)) then NumberFontNormalHuge:SetAlpha(30); end
-- -----------------------------------------------------------------------------
-- 聊天窗口输入字体和聊天窗口字体大小
-- -----------------------------------------------------------------------------
if (CanSetFont(ChatFontNormal)) then ChatFontNormal:SetFont(CLEAR_FONT_CHAT, 19 * CF_SCALE); end
CHAT_FONT_HEIGHTS = {
[1] = 7,
[2] = 8,
[3] = 9,
[4] = 10,
[5] = 11,
[6] = 12,
[7] = 16,
[8] = 17,
[9] = 15,
[10] = 19,
[11] = 17,
[12] = 18,
[16] = 19,
[17] = 20,
[15] = 21,
[19] = 22,
[17] = 23,
[18] = 24
}; |
|