• Страница 1 из 1
  • 1
Форум » Обсуждение аддонов » Разработка аддонов WoW » Не работает аддон (Не работает аддон)
Не работает аддон
fott
Скаут
Сделал аддон описанный в

http://wowjp.net/forum/240-179086-1

прилагаю файл toc

## Interface: 50300
## Title: Hello
## Author: Fott Bawlea
## Version: 1.0
## Notes: My addon gandon
## eMail: bawr2@mail.ru
## URL: xiy.ru

hello.lua

============
файл lua

function hello()
SendChatMessage("Привет народ! Как жизнь?","guild");
SlashCmdList["HELLO"] = hello;
SLASH_HELLO1 = "/hey";
SLASH_HELLO2 = "/hello";
<Button name="Buttona" text="Кнопка 1">

<Size>
<AbsDimension x="34" y="15" />
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="64" y="-155" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>Код до события
Buttona:Hide();
Buttonb:Show();
</OnClick>
</Scripts>
<NormalTexture file="Interface\Buttons\UI-Panel-Button-Up">
<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
</NormalTexture>
<PushedTexture file="Interface\Buttons\UI-Panel-Button-Down">
<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
</PushedTexture>
<DisabledTexture file="Interface\Buttons\UI-Panel-Button-Disabled">
<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
</DisabledTexture>
<HighlightTexture file="Interface\Buttons\UI-Panel-Button-Highlight" alphaMode="ADD">
<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
</HighlightTexture>
<ButtonText name="$parentText">
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="1" />
</Offset>
</Anchor>
</Anchors>
<FontHeight>
<AbsValue val="10" />
</FontHeight>
</ButtonText>
<NormalFont style="GameFontNormal" />
<HighlightFont style="GameFontHighlight" />
<DisabledFont style="GameFontDisable" />
<PushedTextOffset x="0" y="0" />

</Button>
<Button name="Buttonb" hidden="true" text="Кнопка 2 (скрытая)">

<Size>
<AbsDimension x="34" y="15" />
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="64" y="-155" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>Код до события
Buttonb:Hide();
Buttona:Show();

</OnClick>
</Scripts>
<NormalTexture file="Interface\Buttons\UI-Panel-Button-Up">
<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
</NormalTexture>
<PushedTexture file="Interface\Buttons\UI-Panel-Button-Down">
<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
</PushedTexture>
<DisabledTexture file="Interface\Buttons\UI-Panel-Button-Disabled">
<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
</DisabledTexture>
<HighlightTexture file="Interface\Buttons\UI-Panel-Button-Highlight" alphaMode="ADD">
<TexCoords left="0" right="0.625" top="0" bottom="0.6875" />
</HighlightTexture>
<ButtonText name="$parentText">
<Anchors>
<Anchor point="CENTER">
<Offset>
<AbsDimension x="0" y="1" />
</Offset>
</Anchor>
</Anchors>
<FontHeight>
<AbsValue val="10" />
</FontHeight>
</ButtonText>
<NormalFont style="GameFontNormal" />
<HighlightFont style="GameFontHighlight" />
<DisabledFont style="GameFontDisable" />
<PushedTextOffset x="0" y="0" />

в меню модификации ставил отметки использования. память выделить до 64 кб ? В чем еще могут быть проблемы что не работает?
Сообщение # 1 написано 21.07.2013 в 21:41
Форум » Обсуждение аддонов » Разработка аддонов WoW » Не работает аддон (Не работает аддон)
  • Страница 1 из 1
  • 1
Поиск: