mistahmikey
Active Member
Been banging my head against this most of the day. Using the following function:
and calling it as follows:
call DumpLabels "EQ2UIPage[Journals,JournalsQuest].Child[Page,TabPages]"
the following output is produced:
Problem is, there does not appear to be any widget I can "click" to make the choice. I figured the choices are probably associated with the "Icon" types under RewardWindow.ToEQ2UIPage.Child[Page,RewardPack].Child[Page,16].Child[Page,1]. I was hoping I might be able to use the LeftClick method on them (in the xml file they have an attribute TreatAsButton="true"), but no soap - crasheroo.
So has anyone been able to successfully program the choice selection?
Code:
function DumpLabels(string startElement)
{
variable int childIndex
variable int childCount
childIndex:Set[0]
childCount:Set[${${startElement}.NumChildren}]
echo "${startElement}" - Type: ${${startElement}.Type}, Label: ${${startElement}.Label}
while ${childIndex:Inc} <= ${childCount}
{
variable string elementType
elementType:Set[${${startElement}.ChildType[${childIndex}]}]
variable string nextElement
nextElement:Set["${startElement}.Child[${elementType},${childIndex}]"]
call DumpLabels "${nextElement}"
}
}
call DumpLabels "EQ2UIPage[Journals,JournalsQuest].Child[Page,TabPages]"
the following output is produced:
Code:
RewardWindow.ToEQ2UIPage.Child[Page,RewardPack] - Type: Page, Label: NULL
RewardWindow.ToEQ2UIPage.Child[Page,RewardPack].Child[Page,1] - Type: Page, Label: NULL
RewardWindow.ToEQ2UIPage.Child[Page,RewardPack].Child[Text,2] - Type: Text, Label: Collection Reward!
RewardWindow.ToEQ2UIPage.Child[Page,RewardPack].Child[Text,3] - Type: Text, Label: [DEVL]You have been offered the quest
RewardWindow.ToEQ2UIPage.Child[Page,RewardPack].Child[Text,4] - Type: Text, Label: Description
RewardWindow.ToEQ2UIPage.Child[Page,RewardPack].Child[Composite,5] - Type: Composite, Label: NULL
RewardWindow.ToEQ2UIPage.Child[Page,RewardPack].Child[Text,6] - Type: Text, Label: Reward
RewardWindow.ToEQ2UIPage.Child[Page,RewardPack].Child[Text,7] - Type: Text, Label: Experience
RewardWindow.ToEQ2UIPage.Child[Page,RewardPack].Child[Text,8] - Type: Text, Label: Unlocked Kitchen
RewardWindow.ToEQ2UIPage.Child[Page,RewardPack].Child[Page,9] - Type: Page, Label: NULL
RewardWindow.ToEQ2UIPage.Child[Page,RewardPack].Child[Scrollbar,10] - Type: NULL, Label: NULL
RewardWindow.ToEQ2UIPage.Child[Page,RewardPack].Child[Page,11] - Type: Page, Label: NULL
RewardWindow.ToEQ2UIPage.Child[Page,RewardPack].Child[Text,12] - Type: Text, Label:
RewardWindow.ToEQ2UIPage.Child[Page,RewardPack].Child[Text,13] - Type: Text, Label: The Freeport Militia +20
RewardWindow.ToEQ2UIPage.Child[Page,RewardPack].Child[Text,14] - Type: Text, Label: Select one of the following
RewardWindow.ToEQ2UIPage.Child[Page,RewardPack].Child[Scrollbar,15] - Type: NULL, Label: NULL
RewardWindow.ToEQ2UIPage.Child[Page,RewardPack].Child[Page,16] - Type: Page, Label: NULL
RewardWindow.ToEQ2UIPage.Child[Page,RewardPack].Child[Page,16].Child[Page,1] - Type: Page, Label: NULL
RewardWindow.ToEQ2UIPage.Child[Page,RewardPack].Child[Page,16].Child[Page,1].Child[Icon,1] - Type: Icon, Label: NULL
RewardWindow.ToEQ2UIPage.Child[Page,RewardPack].Child[Page,16].Child[Page,1].Child[Text,2] - Type: Text, Label: Missing item name
RewardWindow.ToEQ2UIPage.Child[Page,RewardPack].Child[Page,16].Child[Page,1].Child[Image,3] - Type: NULL, Label: NULL
RewardWindow.ToEQ2UIPage.Child[Page,RewardPack].Child[Page,16].Child[Page,1].Child[Icon,4] - Type: Icon, Label: NULL
RewardWindow.ToEQ2UIPage.Child[Page,RewardPack].Child[Page,16].Child[Page,1].Child[Icon,5] - Type: Icon, Label: NULL
RewardWindow.ToEQ2UIPage.Child[Page,RewardPack].Child[Page,16].Child[Page,1].Child[Text,6] - Type: Text, Label: Missing item name
RewardWindow.ToEQ2UIPage.Child[Page,RewardPack].Child[Page,16].Child[Page,1].Child[Text,7] - Type: Text, Label: Missing item name
RewardWindow.ToEQ2UIPage.Child[Page,RewardPack].Child[Page,16].Child[Page,1].Child[Image,8] - Type: NULL, Label: NULL
RewardWindow.ToEQ2UIPage.Child[Page,RewardPack].Child[Page,16].Child[Page,1].Child[Image,9] - Type: NULL, Label: NULL
RewardWindow.ToEQ2UIPage.Child[Page,RewardPack].Child[Button,17] - Type: Button, Label: Accept Quest
RewardWindow.ToEQ2UIPage.Child[Page,RewardPack].Child[Button,18] - Type: Button, Label: Decline
RewardWindow.ToEQ2UIPage.Child[Page,RewardPack].Child[Button,19] - Type: Button, Label: Select
RewardWindow.ToEQ2UIPage.Child[Page,RewardPack].Child[Page,20] - Type: Page, Label: NULL
RewardWindow.ToEQ2UIPage.Child[Page,RewardPack].Child[Page,21] - Type: Page, Label: NULL
So has anyone been able to successfully program the choice selection?