askForUndock.py (689B)
1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\eve\client\script\ui\station\askForUndock.py 2 import carbonui.const as uiconst 3 from player_messaging.client.ui_message import prompt_player_fsd_dialog 4 5 def IsOkToBoardWithModulesLackingSkills(dogmaLocation): 6 if settings.user.suppress.Get('suppress.AskUndockWithModulesLackingSkill', None) is None: 7 try: 8 if dogmaLocation.GetModulesLackingSkills(): 9 if prompt_player_fsd_dialog('AskUndockWithModulesLackingSkill', {}, uiconst.YESNO, suppress=uiconst.ID_YES) != uiconst.ID_YES: 10 return False 11 except KeyError: 12 return False 13 14 return True