插件中文资料库
中文说明、玩家点评、适用场景和替代推荐,方便快速判断是否适合你。
- 界面布局、头像框、姓名板和动作条优化
LibColors-1.0 插件下载与使用指南
本页整理了 LibColors-1.0 的功能用途、适用人群、安装方法和常见问题,方便玩家快速判断是否需要安装。
适合谁用
LibColors-1.0 是一款 运行库 类插件,适合需要优化界面、提升操作效率或补充游戏信息提示的魔兽世界玩家。
基本信息
- 插件作者:hizuro_de
- 插件分类:运行库
- 适配版本:1.15.8,2.5.5,12.0.5,3.80.1,5.5.4
- 累计下载:14,165
安装方法
- 点击上方下载按钮获取 LibColors-1.0插件文件。
- 解压后将插件文件夹放入 World of Warcraft/_retail_/Interface/AddOns 目录。
- 重启游戏或在角色界面点击插件,确认 LibColors-1.0 已启用。
- 如果插件不生效,请检查版本是否匹配,或关闭同类冲突插件后重试。
使用建议
LibColors-1.0 安装后建议先在角色界面确认已启用,进入游戏后根据插件提供的命令、小地图按钮或设置面板进行调整。如遇到报错,可先单独启用该插件排查冲突。
LibColors-1.0 常见问题
LibColors-1.0 适合需要 运行库 类功能的玩家,特别是希望提升游戏便利性、界面管理或战斗信息获取效率的用户。
下载后解压到 Interface/AddOns 目录,然后重启游戏并在角色界面启用插件。
常见原因是目录多套一层、游戏版本不匹配、依赖插件缺失或同类插件冲突。
可以查看本页的替代插件推荐和相关插件区域,按下载量和分类选择同类工具。
插件 AI 问答
可以问:这个插件正式服能用吗、和 DBM 冲突吗、怎么设置、有没有替代插件。
LibColors-1.0 是一个插件依赖库,为其他插件提供数据或功能支持。
插件用途
LibColors-1.0 主要面向需要运行库功能的玩家,用来改善游戏体验、减少重复操作或补充默认界面没有直接提供的信息。
适用场景
- 插件库、数据接口或依赖支持
使用建议
安装后建议先在角色选择界面或插件管理器中确认已启用,再进入游戏测试是否与现有整合包、WA 和其他插件冲突。如遇报错,可以先禁用同类插件排查。
Short description
A library to easy coloring strings by hex codes, color tables, class names, color names and more.
Supported types
- Hex code with 8 and 6 characters. [<alpha>]<red><green><blue> like 9E342C (alpha is optional)
- Color table in two variants: { <red[number]>, <green[number]>, <blue[number]>, <alpha[number](optional)> } or { ["r"] = <{ <red[number]>, ["g"] = <green[number]>, ["b"] = <blue[number]>, ["a"] = <alpha[number](optional)> }
- Class names supports english and localized names on non english clients
- ITEM_QUALITY_COLORS as quality[number] and lower string version of ITEM_QUALITY[number]_DESC
- or keywords
- playerclass will be relaced with the current players class color
- Cecond parameter must not be a string to coloring it
- not set second parameter returns hex color code
- the string "colortable" as second parameter returns the requested color as color table
To use in addons
lib = LibStub("LibColors-1.0")
API
num2hex
Convert a number between 0 and 1 into a hex code between 00 and ff
string = lib:num2hex( number )
colorTable2HexCode
Converts numeric or associative color tables into a 8 character long hex color code.
assoc_table = { r = 0.8, g = 0.8, b = 0.1, a = 1 }
numeric_table = {
0.8, -- red
0.8, -- green
0.8, -- blue
1 -- alpha
}
string = lib:colorTable2HexCode( table )
Any not defined or nil table entry will be ignored. An empty table returns the hex code for the color white.
hexCode2ColorTable
converts a hex code into a color table
table = lib:hexCode2ColorTable( string )
colorset
Add a single color code to list of known colors
lib:colorset( string, string or table )
or add a list of color codes
table = { ["color name"] = color string or color table }lib:colorset( table )
color
Create a colored string like |c<color><string>|r
string = lib:color( color, string )
As first parameter you can use colors names, color tables or keywords. Currently implemented keyword for colors are "playerclass".
As second parameter you can use normal text or a keyword. Currently implemented keyword for second parameter are "colortable" that returns the requested color as colortable.
getNames
The parameter are optional and used to return matching color names.
table = lib:getNames( [string] )
colorGradient (new)
Creates a color between 2 or 3 colors selected by an fraction (float) value between 0 and 1.
colorTable = lib:gradientColor( fraction, colorTable1, colorTable2[, colorTable3] )
hexColorCode = lib:gradientColor( fraction, hexColorCode1, hexColorCode2[, hexColorCode3] )
Arguments:
- fraction (number) - float number between 0 and 1
- color1 (table|string) - Color table {<red(number)>, <green(number)><blue(number)>} or hex color code RRGGBB.
- color2 (table|string) - Same like color1. Must not be the same type as color1.
- color3 (table|string) - optional -- Same like color2. Must not be the same type as color1.
Return:
- table|string - color table or hex color code; depends on argument color1 if table or string
Available colors
Direct integrated
colors = {
-- basic colors
yellow = "ffff00",
orange = "ff8000",
red = "ff0000",
violet = "ff00ff",
blue = "0000ff",
cyan = "00ffff",
green = "00ff00",
black = "000000",
gray = "808080",
white = "ffffff",
-- wow money colors
money_gold = "ffd700",
money_silver = "eeeeef",
money_copper = "f0a55f",
}
Color sets in extra files
You can find 3 files named colors_<name>.lua in the directory and in LibColors-1.0.xml the lines to use it. The sources for the color sets are on top of the files.
Licence
To the hell with all licenses, the hole money, all weapons and other bad things... :P
Hizuro's other projects
CurseForge: https://www.curseforge.com/wow/addons/libstringcoloring-1-0用户评价
暂无 / 5,0 条评价相关推荐
继续看看这些内容