我正在尝试学习如何开始为魔兽世界制作附加组件。我正在尝试遵循《魔兽世界编程》第一版这本书,但似乎情况发生了变化。我正在尝试设置 XML 以在没有 Lua 的情况下在屏幕上显示某些内容。我找不到错误,任何帮助都会很棒!
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
..\FrameXML\UI.xsd">
<Script File="GD_Guild.lua"/>
<Button name="GD_GuildFrame" parent="UIParent" enableMouse="true"
movable="true" frameStrata="LOW">
<Size x="175 y="40"/>
<Anchors>
<Anchor point="TOP" relativePoint="BOTTOM" relativeTo="Minimap">
<Offset x="-30" y="-30"/>
</Anchor>
</Anchors>
<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background"
edgeFile="Interface\DialogFrame\UI-DialogBox-Border" title="true">
<BackgroundInsets>
<AbsInset left="11" right="12" top="12" bottom="11"/>
</BackgroundInsets>
<TileSize>
<AbsValue val="32"/>
</TileSize>
<EdgeSize>
<AbsValue val="32"/>
</EdgeSize>
</Backdrop>
<Layers>
<Layer level="OVERLAY">
<FontString name=$parentText" inherits="GameFontNormalSmall"
justifyH="Center" setAllPoints="true" text="GD_Guild"/>
</Layer>
</Layers>
<Scripts>
<OnLoad>
GD_Guild_OnLoad(self)
</OnLoad>
<OnEvent>
GD_Guild_OnEvent(self, event, ...)
</OnEvent>
<OnClick>
GD_Guild_ReportDPS()
</OnClick>
<OnDragStart>
self:StartMoving()
</OnDragStart>
<OnDragStop>
self:StopMovingOrSizing()
</OnDragStop>
</Scripts>
</Button>
</Ui>