conversationwithuihighlights.py (1582B)
1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\packages\conversations\conversationswithhighlights\conversationwithuihighlights.py 2 from conversations.conversation import LineOfDialogue, Conversation 3 4 class LineOfDialogueWithUiHighlights(LineOfDialogue): 5 6 def __init__(self, agent_id, text_message_id, sound_id, hints, ui_highlights, space_object_highlights, menu_highlights, ui_blinks, music_trigger, scene_path = None, variables = None): 7 self.ui_highlights = ui_highlights 8 self.space_object_highlights = space_object_highlights 9 self.menu_highlights = menu_highlights 10 self.ui_blinks = ui_blinks 11 LineOfDialogue.__init__(self, agent_id, text_message_id, sound_id, hints, music_trigger, scene_path=scene_path, variables=variables) 12 13 14 class ConversationWithUiHighlights(Conversation): 15 16 def __init__(self, *args, **kwargs): 17 Conversation.__init__(self, *args, **kwargs) 18 19 def next(self): 20 line = self._line_iterator.next() 21 ui_highlights = line.uiHighlights 22 ui_blinks = getattr(line, 'uiBlinks', []) 23 space_object_highlights = line.spaceObjectHighlights 24 menu_highlights = line.menuHighlights 25 hints = line.lineHints 26 sound = line.sound or '' 27 scene_path = line.scenePath or None 28 music_trigger = line.musicTrigger or '' 29 return LineOfDialogueWithUiHighlights(line.agentID, line.text, sound, hints, ui_highlights, space_object_highlights, menu_highlights, ui_blinks, music_trigger, scene_path=scene_path, variables=self.variables)