WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Learning XML help! (https://www.wowinterface.com/forums/showthread.php?t=1130)

Wing/ 06-28-05 01:42 PM

Learning XML help!
 
i wrote down this in a file ->


<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/
C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">
<Script file="ReCast.lua"/>


<CheckButton name="ReCastButtonTemplate" inherits="ActionButtonTemplate" parent="ReCast" virtual="true">
<Size>
<AbsDimension x="32" y="32"/>
</Size>
<Anchors>
<Anchor point="CENTER" relativeTo="ReCastFrame" relativePoint="CENTER">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
</Ui>


but the checkbutton dosent show up )= why?
(i got a Frame called ReCastFrame in a other file that includes the file were that is in ^ )

Beladona 06-28-05 02:31 PM

Quote:

Originally Posted by Wing/
i wrote down this in a file ->


<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/
C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">
<Script file="ReCast.lua"/>


<CheckButton name="ReCastButtonTemplate" inherits="ActionButtonTemplate" parent="ReCast" virtual="true">
<Size>
<AbsDimension x="32" y="32"/>
</Size>
<Anchors>
<Anchor point="CENTER" relativeTo="ReCastFrame" relativePoint="CENTER">
<Offset>
<AbsDimension x="0" y="0"/>
</Offset>
</Anchor>
</Anchors>
</CheckButton>
</Ui>


but the checkbutton dosent show up )= why?
(i got a Frame called ReCastFrame in a other file that includes the file were that is in ^ )

You are using ReCast as your parent and then attaching it to ReCastFrame. I would try changing parent to be ReCastFrame...

Wing/ 06-29-05 11:19 AM

tnx but it didnt change any thing when i changed that.....
ok im a bit now to uimods what does parent= mean?
i just wanna put a spell place in a frame but i dont get it to work!
:confused:
:Edit
well i dont know what it does but virtual="false" did make it show up
so now next problem how do i use "CheckButton" to put a spell in it i tryed to look at other codes but it dosent tell me any thing )= i just get confused :eek:

Beladona 06-29-05 02:37 PM

I was gonna mention that, but the name of the frame was a template, so I assumed you were using at a template, and had another button somewhere that was inheriting it. If this is THE button you want to make appear, then yes, you need to not use virtual. Use virtual when you want that element to be a template and you plan to inherit the settings in other elements...

you can remove the virtual setting completely because it default to false when not present...

Wing/ 06-29-05 02:50 PM

tnx now i undersand a bit more of the xml of wow ^_^


All times are GMT -6. The time now is 09:15 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI