Implement searching in the ship browser

This commit is contained in:
cncfanatics
2010-08-21 20:26:39 +02:00
parent 4bd7e7c47e
commit d29a7e66c8
2 changed files with 40 additions and 0 deletions

View File

@@ -77,6 +77,13 @@ class Market():
ships.append((item.ID, item.name, item.race))
return ships
def searchShip(self, name):
results = eos.db.searchItems(name)
for item in results:
if item.category.name == "Ship":
return (item.group.ID, item.ID)
def getMarketRoot(self):
"""
Get the root of the market tree.