魔兽世界的帮助。 [英] World of warcraft addon help.

查看:167
本文介绍了魔兽世界的帮助。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须承认我是新手,所以我们走了;



所以我正在创建一个魔兽世界插件,我还没有尝试过之前和我在挣扎。首先,我试图在屏幕底部创建一个框架,其中显示一个图像。我能够创建框架,但图像显示为绿色并且不显示,显然暗示纹理不正确或无法找到。下面我将发布我的所有xml代码,以及我创建纹理的步骤。老实说,任何帮助都会很感激 d,谢谢。

 





我尝试过:



纹理创建:



World of warcraft允许使用.blp或.tga格式的图像。

首先,我打开我的图像编辑器/创建软件GIMP并创建一个空白背景的新纹理,大小为300x:300y,来自我能说的是可接​​受的尺寸。然后我绘制我想要出现的任何内容,然后以.tga格式导出它,并将RLE压缩到左下角。然后我将纹理放在我的界面/插件/ DS /文件夹中。



## CODE在我的DS.xml文件中。



Ui

帧名=DS_MainFrameparent =UIParent

锚点

锚点=左 /

锚点=右/

锚点=BOTTOM/

/锚点

大小

RelDimension x =1y =0.15/

/尺寸

Backdrop bgfile =Interface\Tooltips\UI-工具提示 - 背景

Title =true>

TitleSize

AbsValue val =16/

/ TitleSize

/背景

图层

图层等级=背景

纹理名称=MyTexture file =Interface \\AddOns \\DS\\DS2.blpalphaMode =ADD

尺寸

AbsDimension x =13 y =13/

/尺寸

锚点

锚点=中心

Of fset

Rel x =1y =0.1/

/ Offset

/ Anchor

/锚点

TexCoords left =0.398right =0.445top =0.402bottom =0.449/

/纹理

/图层

/图层

/帧



/ Ui

解决方案

从专用网站开始:Google可以找到你很多。

世界魔兽插件教程 - 谷歌搜索 [ ^ ] - 这是一个基于IT的网站,而不是与游戏相关的网站需要与更专注的人交谈。

这将是一个开始: AddOn编程教程 - WoWWiki - Wikia [ ^ ] - 加入社区并询问它们。

Right I have to admit I'm new to this so here we go;

So I am creating a World of Warcraft addon, something I have not attempted before and I am struggling. To start with I am trying to create a frame at the bottom of the screen with an image displayed within it. I am able to create the frame, but the image appears green and does not appear, obviously implying that the texture is incorrect or cannot be found. Below I will post all my xml code, as well as my steps to create the texture. Honestly any help would be appreciated, Thanks.



What I have tried:

Texture creation:

World of warcraft allows for either .blp or .tga format for images.
Firstly I open my image editor/creation software "GIMP" and create a new texture with a blank background with size 300x:300y which from what I can tell is an acceptable size. Then I draw whatever I wish to appear, and then export it in .tga format, and RLE compress it to bottom Left. I then place the texture in my Interface/addons/DS/ Folder.

##CODE in my DS.xml file.

Ui
Frame name="DS_MainFrame" parent="UIParent"
Anchors
Anchor point="LEFT"/
Anchor point="RIGHT"/
Anchor point="BOTTOM"/
/Anchors
Size
RelDimension x="1" y="0.15" /
/Size
Backdrop bgfile="Interface\Tooltips\UI-Tooltip-Background"
Title="true">
TitleSize
AbsValue val="16" /
/TitleSize
/Backdrop
Layers
Layer level="BACKGROUND"
Texture name="MyTexture" file="Interface\\AddOns\\DS\\DS2.blp" alphaMode="ADD"
Size
AbsDimension x="13" y="13"/
/Size
Anchors
Anchor point="CENTER"
Offset
Rel x="1" y="0.1"/
/Offset
/Anchor
/Anchors
TexCoords left="0.398" right="0.445" top="0.402" bottom="0.449"/
/Texture
/Layer
/Layers
/Frame

/Ui

解决方案

Start with a dedicated site: Google can find you lots.
World of Warcraft addon tutorial- Google Search[^] - this is an IT based site, not a games related one, and you need to talk to more "focused" people.
This would be a start: AddOn programming tutorial - WoWWiki - Wikia[^] - join the community there and ask them.


这篇关于魔兽世界的帮助。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆