link.py (586B)
1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\eve\client\script\ui\shared\maps\link.py 2 from eve.client.script.ui.shared.mapView import mapViewUtil 3 SCHEME = 'showinmap' 4 5 def register_link_handlers(registry): 6 registry.register(SCHEME, handle_show_in_map_link) 7 8 9 def handle_show_in_map_link(url): 10 solar_system_ids = parse_show_in_map_url(url) 11 mapViewUtil.OpenMap(interestID=solar_system_ids[0]) 12 13 14 def parse_show_in_map_url(url): 15 content = url[url.index(':') + 1:] 16 return [ int(solar_system_id) for solar_system_id in content.split('//') ]