插件中文资料库
中文说明、玩家点评、适用场景和替代推荐,方便快速判断是否适合你。
- 界面布局、头像框、姓名板和动作条优化
Lucky's Utils 插件下载与使用指南
本页整理了 Lucky's Utils 的功能用途、适用人群、安装方法和常见问题,方便玩家快速判断是否需要安装。
适合谁用
Lucky's Utils 是一款 开发工具 类插件,适合需要优化界面、提升操作效率或补充游戏信息提示的魔兽世界玩家。
基本信息
- 插件作者:Lucky_Phil
- 插件分类:开发工具
- 适配版本:12.0.7
- 累计下载:4,663
安装方法
- 点击上方下载按钮获取 Lucky's Utils插件文件。
- 解压后将插件文件夹放入 World of Warcraft/_retail_/Interface/AddOns 目录。
- 重启游戏或在角色界面点击插件,确认 Lucky's Utils 已启用。
- 如果插件不生效,请检查版本是否匹配,或关闭同类冲突插件后重试。
使用建议
Lucky's Utils 安装后建议先在角色界面确认已启用,进入游戏后根据插件提供的命令、小地图按钮或设置面板进行调整。如遇到报错,可先单独启用该插件排查冲突。
Lucky's Utils 常见问题
Lucky's Utils 适合需要 开发工具 类功能的玩家,特别是希望提升游戏便利性、界面管理或战斗信息获取效率的用户。
下载后解压到 Interface/AddOns 目录,然后重启游戏并在角色界面启用插件。
常见原因是目录多套一层、游戏版本不匹配、依赖插件缺失或同类插件冲突。
可以查看本页的替代插件推荐和相关插件区域,按下载量和分类选择同类工具。
插件 AI 问答
可以问:这个插件正式服能用吗、和 DBM 冲突吗、怎么设置、有没有替代插件。
Lucky's Utils 是一款魔兽世界插件,主要用于插件库、数据接口或依赖支持。建议根据自己的版本和插件环境先测试兼容性。
插件用途
Lucky's Utils 主要面向需要开发工具功能的玩家,用来改善游戏体验、减少重复操作或补充默认界面没有直接提供的信息。
适用场景
- 插件库、数据接口或依赖支持
使用建议
安装后建议先在角色选择界面或插件管理器中确认已启用,再进入游戏测试是否与现有整合包、WA 和其他插件冲突。如遇报错,可以先禁用同类插件排查。
Lucky's Utils
Shared library for Lucky Phil's WoW addons. Provides a consistent UI theme, reusable frame components, settings panel builder, minimap button factory, and general utilities.
This addon is a dependency — it does nothing on its own. If another addon asked you to install it, you're in the right place. No configuration is needed.
What's Included
- LuckyUI — dark/gold colour palette and frame builders: styled panels, headers, buttons, checkboxes, dividers, and drag-to-move with position persistence.
- LuckySettings — fluent builder for Interface Options panels: toggles, selectors, sliders, and section headings.
- LuckyMinimap — draggable minimap buttons with saved position and visibility state, no extra library required.
- LuckyLog — gated debug loggers that stay silent until an addon's debug flag is on.
- LuckyDeps — optional dependency checks with version validation.
- LuckySound — helpers for addon sound files and built-in WoW sound kit entries.
- LuckyUtils — general utilities: recursive SavedVariables initialisation and canonical
Name-Realmcharacter keys.
For Addon Developers
Installation as a dependency
Add to your .toc:
## OptionalDeps: Luckys_Utils
And to your .pkgmeta to embed it in packaged releases:
externals:
YourAddon/Luckys_Utils: https://github.com/LuckyPhilDev/LuckyUtils
The library loads before your addon code. All globals (LuckyUI, LuckySettings, LuckyMinimap, LuckyLog, LuckyDeps, LuckySound, LuckyUtils) are available after ADDON_LOADED fires for your addon.
LuckyUtils
-- Apply defaults to a SavedVariables table (recursive for nested tables)
LuckyUtils.ApplyDefaults(MyAddonDB, {
devMode = false,
showPanel = true,
threshold = { min = 1, max = 10 },
})
-- Canonical "Name-Realm" key for the current character
local key = LuckyUtils.CharacterKey() -- e.g. "Tharindel-Silvermoon"
LuckyUI
Colour palette — LuckyUI.C (RGBA 0–1 tables) and LuckyUI.WC (WoW colour escape strings):
-- Print with gold accent
print(LuckyUI.WC.goldPrimary .. "MyAddon" .. LuckyUI.WC.reset .. ": hello")
Key palette tokens: bgDark, bgPanel, bgInput, goldPrimary, goldAccent, goldMuted, textLight, textMuted, danger, info, success, purple.
Frame helpers:
-- Styled panel (dark bg, gold border, draggable)
local panel = LuckyUI.CreatePanel("MyPanel", UIParent, 400, 300)
-- Header bar with title and close button
LuckyUI.CreateHeader(panel, "My Addon")
-- Buttons: "primary" | "secondary" (default) | "danger"
local btn = LuckyUI.CreateButton(parent, "Save", 90, 28, "primary")
-- Checkbox (gold fill when checked)
local cb = LuckyUI.CreateCheckbox(parent, 16)
-- Horizontal divider with optional label
local div = LuckyUI.CreateDivider(parent, "Section Title")
-- Drag-to-move with SavedVariables persistence
LuckyUI.EnableDrag(myFrame, {
db = MyAddonDB,
key = "windowPos",
default = { "TOP", "TOP", 0, -200 },
})
-- Restores saved position immediately; adds myFrame:RestorePosition()
LuckySettings
local panel = LuckySettings:NewPanel("My Addon")
panel:Section("General")
panel:Toggle({
label = "Enable feature",
desc = "Turns the feature on or off.",
checked = MyAddonDB.featureEnabled,
MyAddonDB.featureEnabled = v end,
})
panel:Selector({
label = "Mode",
value = MyAddonDB.mode,
choices = { { value="auto", label="Auto" }, { value="manual", label="Manual" } },
MyAddonDB.mode = v end,
})
panel:Slider({
label = "Threshold",
key = "threshold",
min = 1, max = 100, value = MyAddonDB.threshold,
suffix = "%",
MyAddonDB.threshold = v end,
})
-- Open programmatically
panel:Open()
-- or: LuckySettings:Open(panel.category)
LuckyMinimap
LuckyMinimap:Create({
name = "MyAddonMinimapButton",
icon = "Interface\\Icons\\INV_Misc_Bag_36",
dbKey = "minimap", -- key in db for { minimapPos, hide }
db = MyAddonDB,
mouseBtn)
if mouseBtn == "LeftButton" then MyAddon:Toggle() end
end,
tooltip = function(tt)
tt:AddLine(LuckyUI.WC.goldPrimary .. "My Addon" .. LuckyUI.WC.reset)
tt:AddLine("Left-click: Toggle", 0.91, 0.86, 0.78)
tt:AddLine("Shift-drag: Move button", 0.54, 0.49, 0.42)
end,
})
LuckyLog
local DevLog = LuckyLog:New("|cffc9a84cMyAddon|r:", function()
return MyAddonDB and MyAddonDB.devMode
end)
-- Prints only when devMode is true
DevLog("Player entered zone:", GetZoneText())
LuckyDeps
-- Check if an optional dependency is installed and enabled
if LuckyDeps:IsEnabled("WeakAuras") then ... end
-- Check if loaded and optionally at minimum version
local ok, err = LuckyDeps:Check("Details", "9.0.0")
if not ok then print(err) end
LuckySound
-- Play an addon sound file
LuckySound:Play(LuckySound:Path("MyAddon", "sounds\\alert.ogg"))
-- Play a built-in WoW sound
LuckySound:PlayKit(SOUNDKIT.IG_QUEST_LOG_OPEN)
-- Stop a playing sound
local _, handle = LuckySound:Play(path)
LuckySound:Stop(handle)
Author
Lucky Phil
CurseForge: https://www.curseforge.com/wow/addons/luckys-utils用户评价
暂无 / 5,0 条评价相关推荐
继续看看这些内容