View Single Post
  #9  
Unread 09-15-2006, 03:38 AM
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

A somewhat complicated select and compair routine could probably be written to derive the proper numbering on first window open. It would also safeguard against future menu changes but might add to the initial Market window lag.

It would work something like this...
On initial window open, iterate over the menu's data source doing text compairs to extract the index number of matches and assign those to variables.

Rewrite your menu selector code to use the derived variables rather than preset numbers.

You still have to localize your favorites and the comparison strings, but order wont be an issue.
Reply With Quote