EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   XML Modification Help & Info (https://www.eq2interface.com/forums/forumdisplay.php?f=22)
-   -   Illusionist illusions, problem with button (https://www.eq2interface.com/forums/showthread.php?t=10980)

saroiel 05-11-2008 05:19 AM

Illusionist illusions, problem with button
 
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 :rolleyes: )

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>


nluerdarea 05-11-2008 09:26 AM

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>


saroiel 05-12-2008 06:41 AM

humm, tanks !!

i've check and try your code but it don't work :(

perhaps spells names are not corrects for French server, but /useability work fine ....

i'll try on an US server

@ ++


All times are GMT -5. The time now is 12:09 PM.

vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI