showInMapButton.py (727B)
1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\eve\client\script\ui\control\utilButtons\showInMapButton.py 2 from eve.client.script.ui.control.glowSprite import GlowSprite 3 from localization import GetByLabel 4 from eve.client.script.ui.shared.mapView.mapViewUtil import OpenMap 5 6 class ShowInMapButton(GlowSprite): 7 default_texturePath = 'res:/ui/Texture/Icons/show_in_map_20.png' 8 default_width = 20 9 default_height = 20 10 11 def ApplyAttributes(self, attributes): 12 GlowSprite.ApplyAttributes(self, attributes) 13 self.itemID = attributes.itemID 14 self.hint = GetByLabel('UI/Commands/ShowLocationOnMap') 15 16 def OnClick(self, *args): 17 OpenMap(interestID=self.itemID)