hello,
i try to make an "Illusions window" for my illusionist but i've a problem :
in game if i test /useability illusion: human --> it's ok !
i've make an ui window, with button for each illusion
if i put in the "onpress" field :
/useability illusion: human --> don't work
or
useability illusion: human --> don't work
anyone could help me ?
thank !!
(sorry for my language, i'm French

)
for helpers, window code is :
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">
<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>