魔兽科普汇聚WoW玩家们专属综合资讯门户网站!

Krowi's World Map Buttons

Krowi's World Map Buttons 是一款魔兽世界插件,主要用于界面框架、头像、动作条或冷却显示优化、背包、银行、专业制造或物品整理、地图、区域、任务路线或交通提醒。建议根据自己的版本和插件环境先测试兼容性。

免费下载 举报 收藏插件
插件详情

插件中文资料库

中文说明、玩家点评、适用场景和替代推荐,方便快速判断是否适合你。

玩家一句话点评
Krowi's World Map Buttons 适合需要运行库、界面增强或玩法辅助的玩家,建议结合自己的职业和版本先测试再长期使用。
适用场景
  • 背包、银行和物品整理
  • 任务路线、地图标记和野外探索
  • 界面布局、头像框、姓名板和动作条优化

Krowi's World Map Buttons 插件下载与使用指南

本页整理了 Krowi's World Map Buttons 的功能用途、适用人群、安装方法和常见问题,方便玩家快速判断是否需要安装。

适合谁用

Krowi's World Map Buttons 是一款 运行库 类插件,适合需要优化界面、提升操作效率或补充游戏信息提示的魔兽世界玩家。

基本信息

  • 插件作者:Krowi
  • 插件分类:运行库
  • 适配版本:1.15.8,5.5.3,12.0.5
  • 累计下载:2,184

安装方法

  1. 点击上方下载按钮获取 Krowi's World Map Buttons插件文件。
  2. 解压后将插件文件夹放入 World of Warcraft/_retail_/Interface/AddOns 目录。
  3. 重启游戏或在角色界面点击插件,确认 Krowi's World Map Buttons 已启用。
  4. 如果插件不生效,请检查版本是否匹配,或关闭同类冲突插件后重试。

使用建议

Krowi's World Map Buttons 安装后建议先在角色界面确认已启用,进入游戏后根据插件提供的命令、小地图按钮或设置面板进行调整。如遇到报错,可先单独启用该插件排查冲突。

Krowi's World Map Buttons 常见问题

这个插件适合哪些玩家?

Krowi's World Map Buttons 适合需要 运行库 类功能的玩家,特别是希望提升游戏便利性、界面管理或战斗信息获取效率的用户。

下载后怎么安装?

下载后解压到 Interface/AddOns 目录,然后重启游戏并在角色界面启用插件。

为什么插件不显示或不生效?

常见原因是目录多套一层、游戏版本不匹配、依赖插件缺失或同类插件冲突。

有没有类似插件可以替代?

可以查看本页的替代插件推荐和相关插件区域,按下载量和分类选择同类工具。

插件 AI 问答

可以问:这个插件正式服能用吗、和 DBM 冲突吗、怎么设置、有没有替代插件。

Krowi's World Map Buttons 是一款魔兽世界插件,主要用于界面框架、头像、动作条或冷却显示优化、背包、银行、专业制造或物品整理、地图、区域、任务路线或交通提醒。建议根据自己的版本和插件环境先测试兼容性。

插件用途

Krowi's World Map Buttons 主要面向需要运行库功能的玩家,用来改善游戏体验、减少重复操作或补充默认界面没有直接提供的信息。

适用场景

  • 界面框架、头像、动作条或冷却显示优化
  • 背包、银行、专业制造或物品整理
  • 地图、区域、任务路线或交通提醒

使用建议

安装后建议先在角色选择界面或插件管理器中确认已启用,再进入游戏测试是否与现有整合包、WA 和其他插件冲突。如遇报错,可以先禁用同类插件排查。

A library for World of Warcraft addon development that simplifies adding custom buttons to the world map interface with automatic positioning and dynamic layout management.

Features

World Map Button Library (Krowi_WorldMapButtons-1.4)

  • Easy Button Integration: Add custom buttons to the world map with a single function call
  • Automatic Positioning: Buttons are automatically positioned in the top-right corner of the map
  • Dynamic Layout: Automatically adjusts layout when buttons are shown or hidden
  • Multi-Version Support: Works across Retail (Mainline) and Classic variants (Wrath, Classic, TBC)
  • Default Button Integration: Automatically manages default Blizzard buttons (tracking, options)
  • Independent: No dependency on other addons for world map modifications
  • LibStub Support: Standard LibStub library structure for dependency management

Usage Examples

Basic Button Setup

local _, addon = ...
addon.Gui.WorldMapButton = {}
local worldMapButton = addon.Gui.WorldMapButton

-- Get the library instance
addon.WorldMapButtons = LibStub("Krowi_WorldMapButtons-1.4")

function worldMapButton.Load()
    -- Add button using your custom template
    worldMapButton = addon.WorldMapButtons:Add("YourAddon_WorldMapButton_Template", "BUTTON")
    addon.Gui.WorldMapButton = worldMapButton
end

Button Mixin Example

YourAddon_WorldMapButtonMixin = {}

function YourAddon_WorldMapButtonMixin:OnLoad()
    -- Initialize your button
end

function YourAddon_WorldMapButtonMixin:OnMouseDown(button)
    -- Handle mouse down event
end

function YourAddon_WorldMapButtonMixin:OnMouseUp()
    -- Handle mouse up event
end

function YourAddon_WorldMapButtonMixin:OnClick()
    -- Handle click event
end

function YourAddon_WorldMapButtonMixin:OnEnter()
    -- Show tooltip or highlight
end

function YourAddon_WorldMapButtonMixin:OnHide()
    -- Clean up when hidden
end

function YourAddon_WorldMapButtonMixin:Refresh()
    -- Called when map opens or changes
    -- Use this to update button state:
    -- self:Enable(), self:Disable(), self:Show(), self:Hide()
end

Button Template Example (XML)

See ButtonTemplate.xml for a complete example template.

Custom Offset Configuration

local WorldMapButtons = LibStub("Krowi_WorldMapButtons-1.4")

-- Customize button positioning offsets
WorldMapButtons:SetOffsets(8, -4)  -- xOffset, yOffset

API Reference

Library Functions

Function Parameters Returns Description
Add(templateName, templateType) templateName (string), templateType (string) frame Creates and adds a button to the world map using the specified XML template
SetOffsets(xOffset, yOffset) xOffset (number, optional), yOffset (number, optional) - Sets custom positioning offsets for buttons. Defaults: xOffset=4, yOffset=-2
SetPoints() - - Internal function that recalculates and updates button positions

Add() Parameters

Parameter Type Required Description
templateName string Yes The name of your button template defined in XML
templateType string Yes The frame type, typically "BUTTON"

Returns: The created button frame object

Button Mixin Methods

Your button mixin should implement these methods:

Method Parameters Description
OnLoad() - Called when button is first created
OnMouseDown(button) button (string) Called when mouse button is pressed down
OnMouseUp() - Called when mouse button is released
OnClick() - Called when button is clicked
OnEnter() - Called when mouse enters button area (show tooltip)
OnHide() - Called when button is hidden
Refresh() - Called when map opens or changes. Update button state here

Library Properties

Property Type Description
HasNoOverlay boolean True if running WoW version without overlay frame system (Classic variants)
IsMainline boolean True if running Retail/Mainline version (11.x+)
XOffset number Horizontal offset for button positioning (default: 4)
YOffset number Vertical offset for button positioning (default: -2)
Buttons table Array of all registered buttons

Positioning Behavior

Retail (Mainline)

  • Buttons are stacked vertically from top to bottom
  • Position: Top-right corner of the map
  • Each button is 32 pixels below the previous one

Classic Variants (Wrath, Classic, TBC)

  • Buttons are arranged horizontally from right to left
  • Position: Top-right corner of the map
  • Each button is 32 pixels to the left of the previous one

Dynamic Layout

  • When a button is hidden, remaining buttons automatically shift to fill the gap
  • Buttons maintain their relative order based on addon load order
  • Default Blizzard buttons (tracking, options) are integrated into the layout system

Technical Details

Version Detection

The library automatically detects the WoW version and adjusts behavior:

  • Classic Era / TBC Classic / Wrath Classic: Uses WorldMapFrame.ScrollContainer parent
  • Retail/Mainline: Uses WorldMapFrame with overlay frame system

Refresh Hook

The library hooks into the appropriate map refresh event:

  • Classic variants: WorldMapFrame.OnMapChanged
  • Retail: WorldMapFrame.RefreshOverlayFrames

This ensures buttons update correctly when:

  • Opening the world map
  • Switching between different maps
  • Zooming in/out
  • Changing continents or zones

Use Cases

  • Quick access to addon features from the world map
  • Toggle visibility of custom map overlays or pins
  • Open addon configuration panels
  • Display addon-specific information
  • Navigate to addon-related content
  • Filter or search map data
  • Any functionality requiring map-context interaction

Requirements

  • LibStub
CurseForge: https://www.curseforge.com/wow/addons/krowi-world-map-buttons

用户评价

暂无 / 5,0 条评价
免费插件下载后可以评价;付费插件 / WA 购买后可以评价;委托订单完成后可以评价。
暂无评价。

相关推荐

继续看看这些内容

全站搜索