View Single Post
  #1  
Unread 12-07-2023, 09:37 PM
maliki7676a's Avatar
maliki7676a maliki7676a is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Jun 2006
Posts: 104
Default Help with adding dropdown menu instead of buttons

Good day to you all,

Well I have been working on my Lore and Legend add-on. and trying to see if I can change the buttons to a dropdown list format.

I got something working with 4 options, but they aren't doing anything. I click the menu and see the options, but nothing happens.

Below a sample of my Lore & Legend add-on.

If somebody could steer me in the right direction. that would be great. thanks in advance. I'm still in the learning curb.

Currently using Notepad++ and the eq2Uibuilder. if you have a better program let me know also. thanks.

Code:
<?xml version="1.0" encoding="utf-8"?>
<Page Activated="true" eq2usescomwndcontrols="true" ExpandWin="263,400" Location="176,27" MaxSize="16384,16384" MinimumSize="235,325" MinSize="235,325" Name="LoreandLegend_Info" PackLocation="center,center" ScrollExtent="574,752" Size="574,752" Tier_10.Visible="False" Tier_11.Visible="False" Tier_12.Visible="False" Tier_13.Visible="False" Tier_14.Visible="False" Tier_15.Visible="False" Tier_16.Visible="False" Tier_17.Visible="False" Tier_18.Visible="False" Tier_19.Visible="False" Tier_20.Visible="False" Tier_21.Visible="False" Tier_22.Visible="False" Tier_23.Visible="False" Tier_24.Visible="False" Tier_25.Visible="False" Tier_26.Visible="False" Tier_27.Visible="False" Tier_28.Visible="False" Tier_29.Visible="False" Tier_30.Visible="False" Tier_31.Visible="False" Tier_32.Visible="False" Tier_33.Visible="False" Tier_34.Visible="False" Tier_35.Visible="False" Tier_36.Visible="False" Tier_37.Visible="False" Tier_38.Visible="False" Tier_39.Visible="False" Tier_40.Visible="False" Tier_41.Visible="False" Tier_42.Visible="False" Tier_43.Visible="False" Tier_44.Visible="False" Tier_45.Visible="False" Tier_46.Visible="False" Tier_47.Visible="False" Tier_48.Visible="False" Tier_49.Visible="False" Tier_5.Visible="False" Tier_50.Visible="False" Tier_51.Visible="False" Tier_52.Visible="False" Tier_6.Visible="False" Tier_7.Visible="False" Tier_8.Visible="False" Tier_9.Visible="False" UserMovable="true">
    <Button Location="15,78" Name="Tier 1 Option" NormalTextColor="#00FF00" OnPress="Parent.Tier_1.Visible=True&#xD;&#xA;Parent.Tier_2.Visible=False &#xD;&#xA;Parent.Tier_3.Visible=False &#xD;&#xA;Parent.Tier_4.Visible=False &#xD;&#xA;" ScrollExtent="109,31" Size="109,31" Style="/CommonElements.PushButton.data.style">Gnoll</Button>
    <Button Location="14,125" Name="Tier 2 Option" NormalTextColor="#00FFFF" OnPress="Parent.Tier_1.Visible=False&#xD;&#xA;Parent.Tier_2.Visible=True &#xD;&#xA;Parent.Tier_3.Visible=False &#xD;&#xA;Parent.Tier_4.Visible=False " ScrollExtent="110,31" Size="110,31" Style="/CommonElements.PushButton.data.style">Orc</Button>
    <Button .Parent.Tier_9.Visible="False" Location="14,172" Name="Tier 3 Option" NormalTextColor="#FFFFFF" OnPress="Parent.Tier_1.Visible=False&#xD;&#xA;Parent.Tier_2.Visible=False &#xD;&#xA;Parent.Tier_3.Visible=True &#xD;&#xA;Parent.Tier_4.Visible=False " ScrollExtent="110,31" Size="110,31" Style="/CommonElements.PushButton.data.style">Goblin</Button>
    <Button Location="15,222" Name="Tier 4 Option" NormalTextColor="#FFFF00" OnPress="Parent.Tier_1.Visible=False&#xD;&#xA;Parent.Tier_2.Visible=False &#xD;&#xA;Parent.Tier_3.Visible=False &#xD;&#xA;Parent.Tier_4.Visible=True" ScrollExtent="109,31" Size="109,31" Style="/CommonElements.PushButton.data.style">Centaur</Button>
    <Dropdownbox DataSource="MiscMapsDS" Location="20,40" Name="MiscDropdown" OnSelect="Parent.Tier_1.Visible=True&#xD;&#xA;Parent.Tier_2.Visible=False &#xD;&#xA;Parent.Tier_3.Visible=False &#xD;&#xA;Parent.Tier_4.Visible=False &#xD;&#xA;" RowTemplate="/Templates.dropdowntemplate" ScrollExtent="112,16" SelectedItemIndex="3" Size="112,16" Style="/dropdownlist.dropdown_default" />
    <DataSource Name="MiscMapsDS">
        <Data Name="Gnoll" text="Gnoll" />
        <Data Name="Orc" text="Orc" />
        <Data Name="Goblin" text="Goblin" />
        <Data Name="Centaur" text="Centaur" />
    </DataSource>
    <DataSource Name="MiscMapsDS">
        <Data command="parent.size=&apos;10,10&apos; parent.location=&apos;1,1&apos;" Name="Gnoll" text="Gnoll" />
        <Data command="parent.size=&apos;20,20&apos; parent.location=&apos;2,2&apos;" Name="Orc" text="Orc" />
        <Data command="parent.size=&apos;30,30&apos; parent.location=&apos;3,3&apos;" Name="Goblin" text="Goblin" />
        <Data command="parent.size=&apos;40,40&apos; parent.location=&apos;4,4&apos;" Name="Centaur" text="Centaur" />
    </DataSource>
    <Button Name="RunCommands" OnPress="Parent.Tier_1.Visible=True&#xD;&#xA;Parent.Tier_2.Visible=False &#xD;&#xA;Parent.Tier_3.Visible=False &#xD;&#xA;Parent.Tier_4.Visible=False &#xD;&#xA;" ScrollExtent="2,2" Size="2,2" Visible="false" />
    <Dropdownbox DataSource="MiscMapsDS" Location="140,40" Name="MiscDropdown" OnSelect="Parent.Tier_1.Visible=True&#xD;&#xA;Parent.Tier_2.Visible=False &#xD;&#xA;Parent.Tier_3.Visible=False &#xD;&#xA;Parent.Tier_4.Visible=False &#xD;&#xA;" RowTemplate="/Templates.dropdowntemplate" ScrollExtent="112,16" SelectedItemIndex="3" Size="112,16" Style="/dropdownlist.dropdown_default" />
    <Page AbsorbsInput="false" BackgroundColor="#00FF00" eq2usescomwndcontrols="true" Location="125,77" Name="Tier_1" PackLocation="fixed,fixed" paperdoll.visible="false" ScrollExtent="429,635" Size="429,635" Visible="false">
        <Text AbsorbsInput="false" Font="/Fonts.Font_Euro_Zapf20" Location="3,-3" Name="Tier 1" ScrollExtent="348,66" Size="348,66" TextAlignment="Center" TextAlignmentVertical="Center" TextColor="#00FF00">Gnoll  (Level 10 - Tier 2) 
Know your Gnolls Book
</Text>
        <Text AbsorbsInput="false" Font="/Fonts.Font_Euro_Zapf20" Location="-1,56" Name="Zones" ScrollExtent="341,237" Size="341,237" TextAlignment="Center" TextAlignmentVertical="Center" TextColor="#FF8000">ZONES:

Level 10+: The Caves (Solo) -
Level 10+: Antonica (Solo)
Level 20+: The Thundering Steppes (Solo to Heroic) 
Level 20+: Sundered Splitpaw (Solo to Heroic)
Level 50+: The Sinking Sands (Solo) 
Level 50+: the Living Tombs (Heroic) 
Level 60+: The Silent City (Heroic) - </Text>
        <Page Location="5,299" Name="MOBs/Creatures" ScrollExtent="335,199" Size="335,199">
            <Text AbsorbsInput="false" Font="/Fonts.Font_Euro_Zapf20" Name="Parts" ScrollExtent="325,31" Size="325,31" TextAlignment="Center" TextAlignmentVertical="Center" TextColor="#00FF00">Parts:</Text>
            <Text AbsorbsInput="false" Font="/Fonts.Font_Euro_Zapf20" Location="0,22" Name="C1" ScrollExtent="245,29" Size="245,29" TextAlignmentVertical="Center">Auto-Updates</Text>
            <Text AbsorbsInput="false" Font="/Fonts.Font_Euro_Zapf20" Location="-1,12" Name="C2item" ScrollExtent="326,73" Size="326,73" TextAlignment="Right" TextAlignmentVertical="Center" TextColor="#00FFFF">a gnoll spirit
a gnoll brain
a gnoll heart</Text>
            <Text AbsorbsInput="false" Font="/Fonts.Font_Euro_Zapf20" Location="0,71" Name="C4" ScrollExtent="245,37" Size="245,37" TextAlignmentVertical="Center">Looted/Examined:</Text>
            <Text AbsorbsInput="false" Font="/Fonts.Font_Euro_Zapf20" Location="-3,76" Name="C5item" ScrollExtent="327,125" Size="327,125" TextAlignment="Right" TextAlignmentVertical="Center" TextColor="#00FFFF">a gnoll paw
a gnoll tooth
a gnoll tail
a gnoll eye
a gnoll ear</Text>
        </Page>
        <Text AbsorbsInput="false" Font="/Fonts.Font_Euro_Zapf20" GetsInput="false" Interactive="false" Location="5,510" MaxLines="1" Name="Trophy" ScrollExtent="335,30" Size="335,30" TextAlignment="Center" TextColor="#FF8080">Trophy: Hogran&apos;s Halberd</Text>
        <Text AbsorbsInput="false" Font="/Fonts.Font_Euro_Zapf20" GetsInput="false" Interactive="false" Location="5,521" MaxLines="1" Name="Special Notes" ScrollExtent="335,22" Size="335,22" TextAlignment="Center" TextColor="#FF8080" />
    </Page>
    <Page AbsorbsInput="false" BackgroundColor="#00FF00" eq2usescomwndcontrols="true" Location="126,76" Name="Tier_2" PackLocation="fixed,fixed" paperdoll.visible="false" ScrollExtent="438,616" Size="438,616" Visible="false">
        <Text AbsorbsInput="false" Font="/Fonts.Font_Euro_Zapf20" Location="2,0" Name="Tier 2" ScrollExtent="348,47" Size="348,47" TextAlignment="Center" TextAlignmentVertical="Center" TextColor="#00FFFF">Orc: Level 11 (Tier 2)
Orc Society Book</Text>
        <Text AbsorbsInput="false" Font="/Fonts.Font_Euro_Zapf20" Location="1,70" Name="Zones" ScrollExtent="347,260" Size="347,217" TextAlignment="Center" TextAlignmentVertical="Center" TextColor="#FF8000">ZONES:

Level 1+: Frostfang Sea 
Level 10+: Greater Faydark 
Level 10+: The Commonlands
Level 10+: The Ruins 
Level 15+: The Wailing Caves 
Level 20+: Bloodskull Valley 
Level 35+: Zek, the Orcish Wastes
Level 40+: Deathfist Citadel 
Level 45+: The Sinking Sands 
Level 50+: The Clefts of Rujark
Level 90+: Great Divide and Eastern Wastes</Text>
        <Page Location="6,307" Name="Parts:" ScrollExtent="334,244" Size="334,244">
            <Text AbsorbsInput="false" Font="/Fonts.Font_Euro_Zapf20" Location="1,-3" Name="Parts" ScrollExtent="334,33" Size="334,33" TextAlignment="Center" TextAlignmentVertical="Center" TextColor="#00FF00">Parts:</Text>
            <Text AbsorbsInput="false" Font="/Fonts.Font_Euro_Zapf20" Location="0,22" Name="C1" ScrollExtent="245,28" Size="245,28" TextAlignmentVertical="Center">Auto-Updates</Text>
            <Text AbsorbsInput="false" Font="/Fonts.Font_Euro_Zapf20" Location="-11,21" Name="C2item" ScrollExtent="335,77" Size="335,77" TextAlignment="Right" TextAlignmentVertical="Center" TextColor="#00FFFF">a Orc Spirit
a Orc Brain
a Orc Heart</Text>
            <Text AbsorbsInput="false" Font="/Fonts.Font_Euro_Zapf20" Location="0,83" Name="C3item" ScrollExtent="341,40" Size="341,20" TextAlignment="Right" TextAlignmentVertical="Center" TextColor="#00FFFF">--------------------------------------------------------------------------------</Text>
            <Text AbsorbsInput="false" Font="/Fonts.Font_Euro_Zapf20" Location="0,92" Name="C4" ScrollExtent="245,38" Size="245,38" TextAlignmentVertical="Center">Looted/Examined:</Text>
            <Text AbsorbsInput="false" Font="/Fonts.Font_Euro_Zapf20" Location="-12,88" Name="C5item" ScrollExtent="336,122" Size="336,122" TextAlignment="Right" TextAlignmentVertical="Center" TextColor="#00FFFF">an orc eye
an orc skin
an orc spine
an orc tooth
an orc ear</Text>
            <Text AbsorbsInput="false" Font="/Fonts.Font_Euro_Zapf20" Location="7,194" Name="C2" ScrollExtent="324,50" Size="324,50" TextAlignmentVertical="Center" TextColor="#00FF40">Tip: New Hala Starting Island, respawn continously</Text>
        </Page>
        <Text AbsorbsInput="false" Font="/Fonts.Font_Euro_Zapf20" GetsInput="false" Interactive="false" Location="1,570" MaxLines="1" Name="Tropy" ScrollExtent="339,37" Size="339,37" TextAlignment="Center" TextColor="#FF8080">Trophy: Fellfeather</Text>
        <Text AbsorbsInput="false" Font="/Fonts.Font_Euro_Zapf20" GetsInput="false" Interactive="false" Location="3,578" MaxLines="2" Name="Special Notes:" ScrollExtent="337,26" Size="337,26" TextAlignment="Center" TextColor="#FF8080" />
    </Page>
    <Page AbsorbsInput="false" BackgroundColor="#00FF00" eq2usescomwndcontrols="true" Location="124,70" Name="Tier_3" PackLocation="fixed,fixed" paperdoll.visible="false" ScrollExtent="429,636" Size="429,636" Visible="false">
        <Text AbsorbsInput="false" Font="/Fonts.Font_Euro_Zapf20" Location="2,-4" Name="Tier 3" ScrollExtent="338,63" Size="338,63" TextAlignment="Center" TextAlignmentVertical="Center" TextColor="#00FFFF">Goblin: (Level 25 - Tier 3)
Life Among The Goblins Book</Text>
        <Text AbsorbsInput="false" Font="/Fonts.Font_Euro_Zapf20" Location="7,56" Name="Zones" ScrollExtent="320,340" Size="320,231" TextAlignment="Center" TextAlignmentVertical="Center" TextColor="#FF8000">ZONES:

Level 5+: Greater Faydark
Level 20+: Butcherblock Mountains
Level 25+: Nektulos Forest
Level 25+: The Condemned Catacomb
Level 30+: Kaladim 
Level 30+: The Tombs of Night 
Level 35+: Enchanted Lands
Level 35+: Runnyeye 
Level 45+: Lavastorm
Level 55+: The Pillars of Flame 
Level 65+: Kylong Plains
Level 70+: Fens of Nathsar
Level 75+: Kunzar Jungle 
Level 80+: Nu&apos;roga
Level 80+: Runnyeye: The Gathering </Text>
        <Page Location="9,316" Name="MOBs/Creatures" ScrollExtent="324,225" Size="324,225">
            <Text AbsorbsInput="false" Font="/Fonts.Font_Euro_Zapf20" Location="0,-3" Name="Parts" ScrollExtent="334,33" Size="334,33" TextAlignment="Center" TextAlignmentVertical="Center" TextColor="#00FF00">Parts:</Text>
            <Text AbsorbsInput="false" Font="/Fonts.Font_Euro_Zapf20" Location="0,22" Name="C1" ScrollExtent="245,20" Size="245,20" TextAlignmentVertical="Center">Auto-Updates</Text>
            <Text AbsorbsInput="false" Font="/Fonts.Font_Euro_Zapf20" Location="11,25" Name="C2item" ScrollExtent="303,81" Size="303,81" TextAlignment="Right" TextAlignmentVertical="Center" TextColor="#00FFFF">a Goblin Spirit 
a Goblin Brain
a Goblin Heart</Text>
            <Text AbsorbsInput="false" Font="/Fonts.Font_Euro_Zapf20" Location="0,86" Name="C1item" ScrollExtent="334,40" Size="334,20" TextAlignment="Right" TextAlignmentVertical="Center" TextColor="#00FFFF">--------------------------------------------------------------</Text>
            <Text AbsorbsInput="false" Font="/Fonts.Font_Euro_Zapf20" Location="0,95" Name="C4" ScrollExtent="245,34" Size="245,34" TextAlignmentVertical="Center">Looted/Examined:</Text>
            <Text AbsorbsInput="false" Font="/Fonts.Font_Euro_Zapf20" Location="31,111" Name="C5item" ScrollExtent="284,109" Size="284,109" TextAlignment="Right" TextAlignmentVertical="Center" TextColor="#00FFFF">A Goblin Eye
A Goblin Ear
A Goblin Claw
A Goblin Tooth
A Goblin Spine</Text>
        </Page>
        <Text AbsorbsInput="false" Font="/Fonts.Font_Euro_Zapf20" GetsInput="false" Interactive="false" Location="1,571" MaxLines="1" Name="Tropy" ScrollExtent="339,28" Size="339,28" TextAlignment="Center" TextColor="#FF8080">Trophy: The Tickler</Text>
        <Text AbsorbsInput="false" Font="/Fonts.Font_Euro_Zapf20" GetsInput="false" Interactive="false" Location="3,574" MaxLines="2" Name="Special Notes:" ScrollExtent="337,36" Size="337,36" TextAlignment="Center" TextColor="#FF8080" />
    </Page>
    <Page AbsorbsInput="false" BackgroundColor="#00FF00" eq2usescomwndcontrols="true" Location="135,64" Name="Tier_4" PackLocation="fixed,fixed" paperdoll.visible="false" ScrollExtent="429,638" Size="429,638">
        <Text AbsorbsInput="false" Font="/Fonts.Font_Euro_Zapf20" Location="2,0" Name="Tier 4" ScrollExtent="338,63" Size="338,63" TextAlignment="Center" TextAlignmentVertical="Center" TextColor="#00FFFF">Centaur: (Level 20-30) (Tier 3)
History of the Centaur Book
</Text>
        <Text AbsorbsInput="false" Font="/Fonts.Font_Euro_Zapf20" Location="3,41" Name="Zones" ScrollExtent="337,216" Size="337,216" TextAlignment="Center" TextAlignmentVertical="Center" TextColor="#FF8000">ZONES:

Level 20+: The Thundering Steppes
Level 55+: The Lesser Faydark</Text>
        <Page Location="6,230" Name="MOBs/Creatures" ScrollExtent="334,240" Size="334,240">
            <Text AbsorbsInput="false" Font="/Fonts.Font_Euro_Zapf20" Name="Parts" ScrollExtent="334,20" Size="334,17" TextAlignment="Center" TextAlignmentVertical="Center" TextColor="#00FF00">Parts:</Text>
            <Text AbsorbsInput="false" Font="/Fonts.Font_Euro_Zapf20" Location="0,22" Name="C1" ScrollExtent="245,20" Size="245,20" TextAlignmentVertical="Center">Auto-Updates</Text>
            <Text AbsorbsInput="false" Font="/Fonts.Font_Euro_Zapf20" Location="-11,26" Name="C2item" ScrollExtent="335,84" Size="335,84" TextAlignment="Right" TextAlignmentVertical="Center" TextColor="#00FFFF">a centaur spirit
a centaur heart
a centaur brain</Text>
            <Text AbsorbsInput="false" Font="/Fonts.Font_Euro_Zapf20" Location="0,96" Name="C1item" ScrollExtent="334,40" Size="334,20" TextAlignment="Right" TextAlignmentVertical="Center" TextColor="#00FFFF">-------------------------------------------------------------------------</Text>
            <Text AbsorbsInput="false" Font="/Fonts.Font_Euro_Zapf20" Location="0,112" Name="C4" ScrollExtent="245,21" Size="245,21" TextAlignmentVertical="Center">Looted/Examined:</Text>
            <Text AbsorbsInput="false" Font="/Fonts.Font_Euro_Zapf20" Location="-11,121" Name="C5item" ScrollExtent="336,120" Size="336,109" TextAlignment="Right" TextAlignmentVertical="Center" TextColor="#00FFFF">a centaur hoof
a centaur eye
a centaur hand
a centaur ear
a centaur mane

</Text>
        </Page>
        <Text AbsorbsInput="false" Font="/Fonts.Font_Euro_Zapf20" GetsInput="false" Interactive="false" Location="1,490" MaxLines="1" Name="Tropy" ScrollExtent="339,45" Size="339,45" TextAlignment="Center" TextAlignmentVertical="Center" TextColor="#FF8080">Trophy: Obrel&apos;s Gambit</Text>
        <Text AbsorbsInput="false" Font="/Fonts.Font_Euro_Zapf20" GetsInput="false" Interactive="false" Location="3,474" MaxLines="2" Name="Special Notes:" ScrollExtent="337,36" Size="337,36" TextAlignment="Center" TextColor="#FF8080" />
    </Page>
    <Page AbsorbsInput="false" Activated="true" Location="4,22" Name="WindowFrame" PackLocation="center,center" ScrollExtent="570,691" Size="570,691">
        <Button Location="503,15" Name="Settings" PackLocation="right,top" ScrollExtent="18,18" Size="18,18" Style="/WindowElements.WindowFrame.data.settings.style" Tooltip=":5d158c55ec278586:Window Settings" UserMovable="true" />
        <Button Location="527,14" MaximumSize="20,20" MinimumSize="20,20" Name="Close" ScrollExtent="20,20" Size="20,20" Style="/WindowElements.WindowFrame.data.close.style">:bf0474542d3f513f:Close</Button>
        <Button Location="529,16" Name="WC_CloseButton" PackLocation="right,top" ScrollExtent="15,15" Size="15,15" Style="/ButtonStyles.close_button" Tooltip="Close" UserMovable="true" />
        <Text AbsorbsInput="false" Font="/TextStyles.Large.LargeStyle" Location="217,9" MaxLines="1" Name="Title" ScrollExtent="250,38" ShadowStyle="/ShadowStylesNew.Outline.style" Size="250,38" TextAlignment="Center" TextAlignmentVertical="Center" TextColor="#88CCFF">Lore and Legends</Text>
        <Page AbsorbsInput="false" Location="380,-1" Name="RightGrouper" PackLocation="right,top" ScrollExtent="190,70" Size="190,70" />
        <Page AbsorbsInput="false" BackgroundOpacity="1.000" Location="0,1" Name="Frame" PackLocation="left,top" PackSize="absolute,absolute" RStyleDefault="/WindowElements.DesktopWindowFrame.data.frame.rect" ScrollExtent="565,691" Size="565,691" />
        <Page AbsorbsInput="false" BackgroundOpacity="1.000" Color="#0000F0" Location="-82,-79" Name="Bkg" PackLocation="left,top" PackSize="absolute,absolute" RStyleDefault="/WindowElements.WindowFrame.data.bkg.rect" ScrollExtent="676,839" Size="676,839" />
    </Page>
</Page>
__________________
Reply With Quote