View Single Post
  #2  
Unread 05-11-2008, 09:26 AM
nluerdarea nluerdarea is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Jan 2005
Server: Crushbone
Posts: 115
Default No need for the slashes

the correct format is onpress="useability Illusion: Human"

I took your window and changed the abilities to my own (my illusionist is only 17) and it worked fine. So assuming that those are the correct spell names, it should work for you. I used the UI Builder for this and it changed the code up, but it should be what you are looking for.

Code:
<?xml version="1.0" encoding="utf-8"?>
<Page eq2usescomwndcontrols="true" Location="32,308" Name="Illusions" PackLocation="center,center" ScrollExtent="206,242" 

Size="206,242" UserMovable="true">
    <Text Font="/Fonts.FontZapf24" Location="60,5" Name="Nom" ScrollExtent="145,42" ShadowStyle="/ShadowStyles.Outline1" 

Size="145,42" TextAlignment="Center" TextAlignmentVertical="Center">Illusions</Text>
    <Image Location="7,10" Name="Image" ScrollExtent="51,35" Size="51,35" SourceRect="404,93,488,147" 

SourceResource="/images/ico_cls_symbls.dds" />
    <Button Location="2,48" Name="BtnSemiElf" OnPress="useability Illusion: Half Elf" ScrollExtent="100,32" Size="100,32" 

Style="/CommonElements.PushButton.data.style">Semi elf</Button>
    <Button Location="2,80" Name="BtnHumain" OnPress="useability Illusion: humain" ScrollExtent="100,32" Size="100,32" 

Style="/CommonElements.PushButton.data.style">Humain</Button>
    <Button Location="2,112" Name="BtnGnoll" OnPress="useability illusion: gnoll" ScrollExtent="100,32" Size="100,32" 

Style="/CommonElements.PushButton.data.style">Gnoll</Button>
    <Button Location="105,48" Name="BtnSemiElfGroup" OnPress="useability group illusion: half elf" ScrollExtent="97,32" 

Size="97,32" Style="/CommonElements.PushButton.data.style">Groupe</Button>
    <Button Location="105,80" Name="BtnHumainGroup" OnPress="useability group illusion: human" ScrollExtent="97,32" 

Size="97,32" Style="/CommonElements.PushButton.data.style">Groupe</Button>
    <Button Location="105,112" Name="BtnGnollGroup" OnPress="useability group illusion: gnoll" ScrollExtent="97,32" 

Size="97,32" Style="/CommonElements.PushButton.data.style">Groupe</Button>
    <Button Location="3,145" Name="BtnNain" OnPress="useability illusion: dwarf" ScrollExtent="70,32" Size="70,32" 

Style="/CommonElements.PushButton.data.style">Nain</Button>
    <Button Location="68,145" Name="BtnBarbare" OnPress="useability illusion: barbarian" ScrollExtent="70,32" Size="70,32" 

Style="/CommonElements.PushButton.data.style">Barbare</Button>
    <Button Location="3,173" Name="BtnDrachnide" OnPress="useability illusion: drachnid" ScrollExtent="70,32" Size="70,32" 

Style="/CommonElements.PushButton.data.style">Drachnide</Button>
    <Button Location="68,173" Name="BtnYhaLei" OnPress="useability illusion: fishman" ScrollExtent="70,32" Size="70,32" 

Style="/CommonElements.PushButton.data.style">Yha-Lei</Button>
    <Button Location="133,173" Name="BtnBurinay" OnPress="useability illusion: burynai" ScrollExtent="70,32" Size="70,32" 

Style="/CommonElements.PushButton.data.style">Burynai</Button>
    <Button Location="133,145" Name="BtnSpiroc" OnPress="useability illusion: spiroc" ScrollExtent="70,32" Size="70,32" 

Style="/CommonElements.PushButton.data.style">Spiroc</Button>
    <Button IsCancelButton="true" Location="5,203" Name="BtnClose" OnPress="Parent.Visible=false" ScrollExtent="197,32" 

Size="197,32" Style="/CommonElements.PushButton.data.style">Fermer</Button>
    <Page Name="WindowFrame" PackSize="absolute,absolute" ScrollExtent="206,242" Size="206,242" Visible="false">
        <Page AbsorbsInput="false" BackgroundOpacity="1.000" Name="Frame" PackLocation="left,top" 

PackSize="absolute,absolute" RStyleDefault="/WindowElements.DesktopWindowFrame.data.frame.rect" ScrollExtent="206,242" 

Size="206,242" />
        <Page AbsorbsInput="false" BackgroundOpacity="1.000" Name="Bkg" PackLocation="left,top" PackSize="absolute,absolute" 

RStyleDefault="/WindowElements.DesktopWindowFrame.data.bkg.rect" ScrollExtent="206,242" Size="206,242" />
    </Page>
</Page>
__________________
Reply With Quote