EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > UI Developer Discussion

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Unread 03-03-2006, 07:47 AM
mkb102 mkb102 is offline
A Young Mystail Rat
 
Join Date: Dec 2005
Server: Antonia Bayle
Posts: 6
Default Extracting broker data?

Hi,

Let me start by saying that i have zero experience with EQ2 UI moding, but have had some experience with the World of Warcraft API (which seems to be considerably more powerful).

Would it be possible to extract data from the broker window in any manner? I was thinking along the lines of having a button that when pressed, pasted the selected item/price/seller into the chat window - the resulting output could then be parsed from the log file. Is this possible at all? Or totally impossible within EQ2?

Thanks for any advice.
Reply With Quote
  #2  
Unread 03-03-2006, 08:50 AM
Magus Magus is offline
A Griffon
 
Join Date: Apr 2005
Server: Mistmoore
Posts: 541
Default

Don't think it's possible.
Reply With Quote
  #3  
Unread 03-03-2006, 12:23 PM
Zonx's Avatar
Zonx Zonx is offline
A Green Troll
This person is a EQ2Map developer.
Featured
 
Join Date: Dec 2004
Server: Blackburrow
Posts: 2,221
Default

Possible, but a PITA and would likely make the item selection somewhat flaky.

Take a look at how my Store window passes the item name to the "Find It" button. A similar mechanism could pass a concatinated list in 1 line to the chat input. You'd need to select each item and hit return. You'd also have to page through long list since there's no known way to grab more than the current 8 items at a time. Hardcoded returns in the data may be a problem, might also provide a way to auto return the chat input.
Reply With Quote
  #4  
Unread 03-03-2006, 04:16 PM
mkb102 mkb102 is offline
A Young Mystail Rat
 
Join Date: Dec 2005
Server: Antonia Bayle
Posts: 6
Default

Thanks for the advice! Being able to click a button and have a concatinated list of the 8 items/prices/sellers pasted into chat definately has potential. Could i impose again and ask how you would actually have the button paste the info into chat? I assume it would be something in the OnPress attribute.

Thanks in advance.
Reply With Quote
  #5  
Unread 03-04-2006, 02:11 AM
mkb102 mkb102 is offline
A Young Mystail Rat
 
Join Date: Dec 2005
Server: Antonia Bayle
Posts: 6
Default

Had a go at it myself: created a new button in the market search page (where the Find Items + Reset buttons are). Within the OnPress attribute i had the code:

Parent.Parent.Parent.Parent.MainHUD.MainChat.Chatpage.ChatFrame.ChatInput.Text = Parent.Parent.ResultsPage.Table.ScrollPage.row Item Name.LocalText

Unfortunately this didnt seem to work at all and i couldn't find any usefull debugging information within the ui.log file.

Could anyone with some more experience possibly tell me what the problem is? Needless to say, the problem is that i am either setting the text into the chat window wrong, extracting the text from the market window wrong, or possibly (and most likely!) both.

Thanks.
Reply With Quote
  #6  
Unread 03-04-2006, 06:06 PM
Zonx's Avatar
Zonx Zonx is offline
A Green Troll
This person is a EQ2Map developer.
Featured
 
Join Date: Dec 2004
Server: Blackburrow
Posts: 2,221
Default

Played with this a bit... sadly it seams the selected item name and price data includes an invisible object that wont pass through chat. I can get it to paste the data into the chat input just fine, but getting it to pass through chat requires manually deleting the invisible object preceeding the price.

When I have more time, I may try to decifer how the lists are dealing with selected item indexes. If I can figure that out, it might be possible to pull the data directly from the dataSource. All of this is hardcoded, so its doubtfull I'll stumble upon the hidden properties.
Reply With Quote
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 02:34 PM.


Our Network
EQInterface | EQ2Interface | WoWInterface | LoTROInterface | ESOUI | MMOUI